-
-
Notifications
You must be signed in to change notification settings - Fork 451
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
Spread operator failing after babel update #798
Comments
Yeah exactly, Babel isn't doing anything. That problem error is thrown by an old webpack version which doesn't understand object spread. |
@nicolo-ribaudo I'm confused as why it was working before with the same webpack version, and stopped working once I updated the babel packages ? |
Do you havea |
Yes I'm using npm and I have |
Which was the previous Babel version? If you had a lockfile updating Babel shouldn't cause anu change in acorn (the parser used by webpack) 🤔 |
Sorry for the delayed answer. This is my
|
And this is working :
|
You can check the
Make sure it is higher than |
I'm submitting a bug report
Webpack Version:
3.8.1
Babel Core Version:
7.5.0
Babel Loader Version:
8.0.6
Please tell us about your environment:
Linux
Current behavior:
Expected/desired behavior:
Should work fine since spread operator is already handled by nodejs
This is related to this issue : https://stackoverflow.com/questions/56900902/babel-with-nodejs-not-working-spread-operator
package.json:
.babelrc:
webpack.config.js:
I'm just using
NodeJS
v10+, only using babel for theimport/export
es6 module syntax for node. Spread operator should be handled by node js so I don't want babel to do anything about that.The text was updated successfully, but these errors were encountered: