【问题标题】:Whenever I create a react app, it fails to compile每当我创建一个反应应用程序时,它都无法编译
【发布时间】:2021-05-10 14:28:29
【问题描述】:

运行 npx create-react-app 然后 npm start 后,我​​不断收到此错误

./src/index.css (./node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!./node_modules/postcss-loader/src??postcss!./src/index.css)
TypeError: Cannot read property 'prefix_exceptions' of undefined
    at Array.map (<anonymous>)

我已尝试重新安装多次,但无法解决此错误。

【问题讨论】:

  • 你安装了哪个版本的 Node.js?

标签: node.js reactjs


【解决方案1】:

不确定是什么问题,但是安装和启动 yarn 绕过了这个问题。

【讨论】:

    猜你喜欢
    • 2021-08-29
    • 1970-01-01
    • 2022-01-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-07-14
    • 2020-12-04
    • 1970-01-01
    相关资源
    最近更新 更多