Gajus Kuizinas
Gajus Kuizinas
> I'm trying to introduce css-modules into an old code base. I have the es6 babel preset running (that's why imports work), but code is linted without modules support and...
I have spent tons of time rewriting flow-runtime, and then lost all my work when I lost my laptop. So... a bit of a bummer that was. I will get...
Contributions are welcome.
> @gajus could we please get an updated release that is compatible with the latest css-loader? :/ If someone raises a PR, I will happily review it and integrate it.
Do you have any other custom configuration? This would indicate a mismatch of the `context` configuration. https://github.com/gajus/babel-plugin-react-css-modules#options Which should _just work_ with default `create-react-app` setup.
Are you using Windows by any chance?
Never tested this with Windows. My gut feeling is that the paths are resolved differently in the webpack config and in the Babel config. As far as I can think,...
> Seems like it is caused by this .replace(/\\/g, "/") in generic-names: https://github.com/css-modules/generic-names/blob/master/index.js#L36. Should I open an issue there? Doesn't look like they have any release notes or proper commit...
Thank you for the detective work. I will leave this issue open until v3 CRA is released so that others can quickly find it.
@evenfrost Are you available to debug this/ raise a PR if there is an issue?