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

Whenever I use babel-plugin-react-css-modules, I get errors from babel-loader #285

Open
calebpitan opened this issue Mar 13, 2020 · 0 comments

Comments

@calebpitan
Copy link

Whenever I use babel-plugin-react-css-modules, I get errors from babel-loader, but without using the plugin in my babel config, everything seems to work fine. I was using react-css-modules before trying to migrate to this one. Everything also works fine with react-css-modules, but now it braeks.

This is the error from npm

ERROR in ./js/components/index.js
Module build failed (from ../node_modules/babel-loader/lib/index.js):
SyntaxError: classEscape at position 19
    |[A-Za-z_\-\u{00a0}-
              ^
    at bail (C:\Caleb\spotroll\node_modules\regjsparser\parser.js:1118:13)
    at parseClassAtomNoDash (C:\Caleb\spotroll\node_modules\regjsparser\parser.js:1098:11)
    at parseClassAtom (C:\Caleb\spotroll\node_modules\regjsparser\parser.js:1083:16)
    at parseNonemptyClassRangesNoDash (C:\Caleb\spotroll\node_modules\regjsparser\parser.js:1062:17)
    at parseHelperClassRanges (C:\Caleb\spotroll\node_modules\regjsparser\parser.js:1027:13)
    at parseNonemptyClassRanges (C:\Caleb\spotroll\node_modules\regjsparser\parser.js:1053:14)
    at parseClassRanges (C:\Caleb\spotroll\node_modules\regjsparser\parser.js:997:15)
    at parseHelperClassRanges (C:\Caleb\spotroll\node_modules\regjsparser\parser.js:1016:27)
    at parseNonemptyClassRanges (C:\Caleb\spotroll\node_modules\regjsparser\parser.js:1053:14)
    at parseClassRanges (C:\Caleb\spotroll\node_modules\regjsparser\parser.js:997:15)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant