Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System assumes spread operator enabled #4

Closed
kkinder opened this issue Apr 17, 2018 · 2 comments
Closed

System assumes spread operator enabled #4

kkinder opened this issue Apr 17, 2018 · 2 comments
Labels
enhancement New feature or request

Comments

@kkinder
Copy link

kkinder commented Apr 17, 2018

After following the install instructions, when you run run dev, you'll get this.

npm run dev

> example-chrome-text@1.0.0 dev /home/ken/playground/example-chrome-text
> webpack --config ./build/webpack.dev.js --hide-modules

/home/ken/playground/example-chrome-text/build/webpack.base.js:47
...cssLoaders(),
^^^

SyntaxError: Unexpected token ...
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/ken/playground/example-chrome-text/build/webpack.dev.js:4:21)

It appears the default babel config doesn't enable the spread operator.

@ALiangLiang
Copy link
Owner

ALiangLiang commented Apr 18, 2018

um...... I think you need Nodejs version equal or upper than 8. Because this part is belong to webpack script instead of babel.

But I will update that for compatible with nodejs6.

@ALiangLiang ALiangLiang added the enhancement New feature or request label Apr 18, 2018
@kkinder
Copy link
Author

kkinder commented Apr 18, 2018

Ah, upgrading Node did the trick. Thanks!

@kkinder kkinder closed this as completed Apr 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants