You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@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 const {assign, identity, negate, camelCase: camelCaseFunc, mapKeys} = require('lodash');
I think before you package it, you should transpile it.
noticed the same thing after an upgrade of css-modules-require-hook to 4.2.1, I have several components with no styles anymore: var styles = {}; in compiled code.
I'm pretty sure all the impacted styles uses compose with external files: composes foo from '../Foo.css';
Something to do with the recent postcss-modules-resolve-imports update?
Hi, thank you for the feedback. I'll try to look in to it.
In the recent update I replaced parser plugin with the postcss-modules-resolve-imports to simplify the composition handling and provide some possibilities for resolving modules in future.
Activity
mightyaleksey commentedon Aug 11, 2017
Actually should, but looks like it was a hasty release :)
I noticed, that you use the
babel-plugin-css-modules-transform. Can you show me the your setup?mightyaleksey commentedon Aug 11, 2017
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
bpnetguy commentedon Aug 25, 2017
@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
const {assign, identity, negate, camelCase: camelCaseFunc, mapKeys} = require('lodash');I think before you package it, you should transpile it.
bpnetguy commentedon Aug 25, 2017
mightyaleksey commentedon Sep 10, 2017
Hi, I published version 4.2.1 with updates. Hope will solve your issue.
pascalduez commentedon Sep 13, 2017
Hi,
noticed the same thing after an upgrade of
css-modules-require-hookto4.2.1, I have several components with no styles anymore:var styles = {};in compiled code.I use
babel-plugin-css-modules-transform.downgrading to
4.0.6all fine again.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
composewith external files:composes foo from '../Foo.css';Something to do with the recent
postcss-modules-resolve-importsupdate?mightyaleksey commentedon Sep 14, 2017
Hi, thank you for the feedback. I'll try to look in to it.
In the recent update I replaced parser plugin with the
postcss-modules-resolve-importsto simplify the composition handling and provide some possibilities for resolving modules in future.pascalduez commentedon Oct 2, 2017
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
.foobar.