插件中的错误“ React; quot”在“ package.json» Eslint-Config-react-App

发布于 2025-01-23 11:30:36 字数 364 浏览 4 评论 0原文

我在Oracle Linux 7上创建了一个.NET Core React项目。在我从Web访问应用程序时,在安装了所有必要的依赖项后,我遇到了以下错误。

插件中的错误在“ package.json.json»eSlint-config-reAct-app»/home/opc/amnathrig/node_modules/eslint-config-react-react-app/base.js”和“ baseconfig»baseconfig» /USR/lib/node_modules/reaeact-scripts/node_modules/eslint-config-react-app-app/base.js'。

错误消息很明确,但我不知道该如何解决。

I created a .NET Core React project on Oracle Linux 7. After installing all the necessary dependencies I ran into the following error in the console when I access the app from the web.

ERROR in Plugin "react" was conflicted between "package.json » eslint-config-react-app » /home/opc/amnathrig/node_modules/eslint-config-react-app/base.js" and "BaseConfig » /usr/lib/node_modules/react-scripts/node_modules/eslint-config-react-app/base.js".

The error message is clear but I have no idea how to get around it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

我正在将软件包安装到主要应用程序目录而不是客户端文件夹。我考虑过删除这个问题,但是如果有人遇到这个问题,这可能是原因。

I was installing packages to the main application directory instead of the ClientApp folder. I thought about deleting the question but in the event someone else runs into this problem, this may be the cause.

决绝 2025-01-30 11:30:36

请使用npm Update -G其中g是全局。

please use npm update -g where g is global.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文