gajus / gajus/babel-plugin-react-css-modules

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

Aperta
#285 0 commenti 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
2k
Fork
159
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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)
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.