当前位置: 首页 > 知识库问答 >
问题:

"npm start"ing REACT APP导致编译错误

鲜于温书
2023-03-14

我使用的是Windows7 32位机器。已安装节点12 v12。22.1,npm 6.14。12

  1. 创建了“npx创建反应应用程序反应”

导致打开web浏览器并显示此消息。

Failed to load plugin 'import' declared in 'package.json » eslint-config-react-app': Cannot find module 'is-symbol'
Requir

e stack:
    - C:\Users\Sujith\weblearn\js\webBootCamp\react\reacting\node_modules\es-to-primitive\es2015.js
    - C:\Users\Sujith\weblearn\js\webBootCamp\react\reacting\node_modules\es-abstract\2020\ToPrimitive.js
    - C:\Users\Sujith\weblearn\js\webBootCamp\react\reacting\node_modules\es-abstract\2020\ToNumber.js
    - C:\Users\Sujith\weblearn\js\webBootCamp\react\reacting\node_modules\es-abstract\2020\ToInteger.js
    - C:\Users\Sujith\weblearn\js\webBootCamp\react\reacting\node_modules\array-includes\implementation.js
    - C:\Users\Sujith\weblearn\js\webBootCamp\react\reacting\node_modules\array-includes\index.js
    - C:\Users\Sujith\weblearn\js\webBootCamp\react\reacting\node_modules\eslint-plugin-import\lib\ExportMap.js
    - C:\Users\Sujith\weblearn\js\webBootCamp\react\reacting\node_modules\eslint-plugin-import\lib\rules\named.js
    - C:\Users\Sujith\weblearn\js\webBootCamp\react\reacting\node_modules\eslint-plugin-import\lib\index.js
    - C:\Users\Sujith\weblearn\js\webBootCamp\react\reacting\node_modules\@eslint\eslintrc\lib\config-array-factory.js
    - C:\Users\Sujith\weblearn\js\webBootCamp\react\reacting\node_modules\@eslint\eslintrc\lib\index.js
    - C:\Users\Sujith\weblearn\js\webBootCamp\react\reacting\node_modules\eslint\lib\cli-engine\cli-engine.js
    - C:\Users\Sujith\weblearn\js\webBootCamp\react\reacting\node_modules\eslint\lib\cli-engine\index.js
    - C:\Users\Sujith\weblearn\js\webBootCamp\react\reacting\node_modules\eslint\lib\api.js
    - C:\Users\Sujith\weblearn\js\webBootCamp\react\reacting\node_modules\eslint-webpack-plugin\dist\getESLint.js
    - C:\Users\Sujith\weblearn\js\webBootCamp\react\reacting\node_modules\eslint-webpack-plugin\dist\linter.js
    - C:\Users\Sujith\weblearn\js\webBootCamp\react\reacting\node_modules\eslint-webpack-plugin\dist\index.js
    - C:\Users\Sujith\weblearn\js\webBootCamp\react\reacting\node_modules\eslint-webpack-plugin\dist\cjs.js
    - C:\Users\Sujith\weblearn\js\webBootCamp\react\reacting\node_modules\react-scripts\config\webpack.config.js
    - C:\Users\Sujith\weblearn\js\webBootCamp\react\reacting\node_modules\react-scripts\scripts\start.js

请帮助我解决问题并运行应用程序。

共有1个答案

厉成仁
2023-03-14

尝试删除node_modules并再次运行npm安装。

更多信息:https://stackoverflow.com/a/39960890/14029804

 类似资料:
  • 问题内容: 对于这两个进口; 我收到此错误: 如何解决此错误? 问题答案: 该错误是由您的Eclipse配置引起的。您可以将其减少为警告。更好的是,使用不属于非公共API的Base64编码器。Apache Commons有一个,或者当您已经使用Java 1.8时,请使用。

  • 我在编译顺序时遇到编译器错误。java文件,即使它包含另一个打包类的导入语句。我不完全确定为什么会发生这种情况,但这是一个目录树,其中包含一些文件: > com/my/domain/Order.java 这个文件里面有下面的包和导入: com/my/utils/MyDate。此文件中包含以下包和导入: 编译顺序时出现编译器错误。java: 我仍然不知道如何解决这个问题后,试图从评论。这里有一些更多

  • 问题内容: 遇到一个错误地使用 而不是 在其代码中的人,它没有显示为编译错误。 是因为 是相同的 ? 问题答案: 没有编译错误,因为它是有效的(尽管相当无用) 一元运算符 ,其使用方式与以下方式相同: Java语言规范中的相关部分是Unary Plus运算符+(第15.15.3节) 。它指定调用一元运算会导致操作数的一元数值提升(第5.6.1节)。这意味着: * 如果操作数是编译时类型的,,,或,

  • 尝试与JIB(容器化您的GradleJava项目)与我的Java项目集成。 在此留档之后:https://github.com/GoogleContainerTools/jib/tree/master/jib-gradle-plugin 在我的项目中添加了以下内容: Gradle版本是:5.6.4 使用“/gradlew”构建的编译工作正常。但是,当执行“gradle jib”时,会出现以下错误:

  • 我已经开始为一个个人项目学习JavaFX,事情进展顺利,直到我遇到了创建一组文本字段的问题。据我所知,代码是正确的,我使用的IDE没有给出任何错误指示。但当我尝试运行程序时,它会抛出一长串错误,这些错误在我注释创建文本字段的代码时不会发生。当这些代码行被省略时,程序将完全按照它应该的方式运行。 我正在使用InteliJ Idea,Windows 10,Javafx SDK 14.0.1和Java

  • 我有使用jenkins的持续集成设置,还集成了用于夜间构建的selenium脚本。我也有可编辑的电子邮件通知,以便在任何构建失败的情况下发送电子邮件。 ${JELLY_SCRIPT,template=“text”} ${FAILED_TESTS} 此内容给我清晰的图片,如果有任何失败的selenium脚本与完整的StackTrace。 问题是,如果jenkins构建由于编译错误或任何其他失败原因而