-
Notifications
You must be signed in to change notification settings - Fork 44
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
SyntaxError: Unexpected token { #98
Comments
Actually should, but looks like it was a hasty release :) I noticed, that you use the |
I marked the 4.1.0 version with beta tag and moved latest to 4.0.6 to make some investigation. So hopefully it won't break the existing builds |
@sullenor - this error get thrown in the server. It's almost as if babel isn't transpiling ES2015 code. my webpack configuration, assumes anything in node_modules is already transpiled. So natively node 4.1.0 doesn't support destructuring which is this line right here I think before you package it, you should transpile it. |
Hi, I published version 4.2.1 with updates. Hope will solve your issue. |
Hi, noticed the same thing after an upgrade of I use downgrading to My setup is very close to https://github.com/pascalduez/react-module-boilerplate/blob/master/babel.config.js I will try to reproduce in this repo. I'm pretty sure all the impacted styles uses |
Hi, thank you for the feedback. I'll try to look in to it. In the recent update I replaced parser plugin with the |
The recent updates are breaking our build/libs one after the other, since it's in the same semver range. Now on some libs we have composes errors like:
Where the actual code is just |
With the latest version
4.1.0
, I get this error. Is it not compatible with older node versions?[1] /mnt/workspace/XXXXX/node_modules/css-modules-require-hook/lib/index.js:3
[1] const {assign, identity, negate, camelCase: camelCaseFunc, mapKeys} = require('lodash');
[1] ^
[1]
[1] SyntaxError: Unexpected token {
[1] at exports.runInThisContext (vm.js:53:16)
[1] at Module._compile (module.js:374:25)
[1] at Module._extensions..js (module.js:417:10)
[1] at Object.require.extensions.(anonymous function) [as .js] (/mnt/workspace/XXXXX/node_modules/babel-register/lib/node.js:152:7)
[1] at Module.load (module.js:344:32)
[1] at Function.Module._load (module.js:301:12)
[1] at Module.require (module.js:354:17)
[1] at require (internal/module.js:12:17)
[1] at Plugin.manipulateOptions (/mnt/workspace/XXXXX/node_modules/babel-plugin-css-modules-transform/build/index.js:150:13)
[1] at File.buildPluginsForOptions (/mnt/workspace/XXXXX/node_modules/babel-core/lib/transformation/file/index.js:280:16)
[1] scripts/start_prod.sh integration exited with code 0
The text was updated successfully, but these errors were encountered: