Skip to content
This repository has been archived by the owner on Mar 27, 2018. It is now read-only.

Syntax error in estraverse/package.json: Unexpected token #32

Open
GeekAb opened this issue Oct 3, 2016 · 1 comment
Open

Syntax error in estraverse/package.json: Unexpected token #32

GeekAb opened this issue Oct 3, 2016 · 1 comment

Comments

@GeekAb
Copy link

GeekAb commented Oct 3, 2016

I am getting following error while

[rollup]
Error: Error transforming
picker.js/node_modules/estraverse/package.json with 'babel' plugin: picker.js/node_modules/estraverse/package.json: Unexpected token (2:9)

[16:04:56] 'rollup:iife' errored after 12 s
[16:04:56] SyntaxError: picker.js/node_modules/estraverse/package.json: Unexpected token (2:9)
1 | {

2 | "_args": [
| ^
3 | [
4 | {
5 | "raw": "estraverse@^4.2.0",

I think its because of the format of package.json but not able to fix it. Any solution?

@rosskevin
Copy link
Member

Unfortunately that is one reason I stopped with this experiment. For this to work well, we would need better control of dependencies for recipes using a monorepo structure, see #30.

  1. you can npm shrinkwrap and lock the version of the offending module at a known good version
  2. you can turn on debug: true in the Rollup recipe options in your gulpfile.babel.js which will print out a full rollup configuration. Copy that from the console and use rollup directly instead of this project (recommended).

Much the underlying dependencies this project uses can be used directly for your needs, this project just simplifies the configuration. Turning on debug will often times yield the underlying configuration which will ease the transition away from here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants