首页 > 解决方案 > 无法读取未定义 CompileError 的属性“toLowerCase”:从 CSS 选择器 .invert-color 开始

问题描述

我有一个项目在我运行时运行良好,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.
...

标签: javascriptnode.jsreactjsnpmyarnpkg

解决方案


推荐阅读