Closed xiaoxiangmoe closed 4 years ago
Thanks, confirmed, I'm not sure if this is a bug in PostCSS or PostCSS-JSX and will require more investigation
It sounds like this is is trying to parse a cjs file with the css parser. I suspect the issue is in postcss-syntax, which recognises .js
and .mjs
files as things that should use the postcss-jsx parser, but doesn't account for .cjs
files.
https://github.com/gucong3000/postcss-syntax/pull/45 is a PR to add .cjs support
stylelint.vscode-stylelint
extensiona.cjs
fileit show error:
error will disappear if rename file from
a.cjs
intoa.js
.