无法读取未定义 CompileError 的属性“toLowerCase”:从 CSS 选择器 .invert-color 开始

iam*_*sha 5 javascript node.js npm reactjs yarnpkg

我有一个项目,当我运行时工作正常,但当我运行或npm start 时失败并出现此错误npm run buildyarn build

Failed to compile.

Cannot read property 'toLowerCase' of undefined
CompileError: Begins at CSS selector .invert-color .form-checkbox input:checked,.invert-color .form-radio input:checked


npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! open-react-template@0.1.0 build: `react-scripts build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the open-react-template@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
...

Run Code Online (Sandbox Code Playgroud)