react-gauge-chart icon indicating copy to clipboard operation
react-gauge-chart copied to clipboard

CSS unexpected token

Open scottmay2020 opened this issue 5 years ago • 2 comments

Simple npm install and attempt to run breaks application returning this message:

`/node_modules/react-gauge-chart/dist/GaugeChart/style.css:1 .percent-text{ ^

SyntaxError: Unexpected token . at Module._compile (internal/modules/cjs/loader.js:721:23) at Module._extensions..js (internal/modules/cjs/loader.js:787:10) at Object.newLoader [as .js]`

scottmay2020 avatar Feb 10 '20 13:02 scottmay2020

Going to guess you're using webpack, but not configured to handle vanilla css and only SCSS. If so, adjust your css/scss testing rules like so : test: /\.s?css$/,

Webpack will now be able to bring in the vanilla CSS.

aaroncrawford avatar Feb 21 '20 06:02 aaroncrawford

Just reporting a similar issue but with withCss and using Next.js

ctrlaltdylan avatar May 01 '20 19:05 ctrlaltdylan