简体   繁体   English

无法加载在“package.json » eslint-config-react-app »”中声明的插件“react”:输入意外结束

[英]Failed to load plugin 'react' declared in 'package.json » eslint-config-react-app » ': Unexpected end of input

I created a react project, and it has been working but it just started bringing up this error Failed to load plugin 'react' declared in 'package.json » eslint-config-react-app » D:\Dev\fegig\omega\trade\node_modules\eslint-config-react-app\base.js': Unexpected end of input , i have tried re-saving my package.json file but it only fixed it temporarily我创建了一个反应项目,它一直在工作,但它刚刚开始出现这个错误Failed to load plugin 'react' declared in 'package.json » eslint-config-react-app » D:\Dev\fegig\omega\ trade\node_modules\eslint-config-react-app\base.js':输入意外结束,我尝试重新保存我的 package.json 文件,但它只是暂时修复了它

Please any ideas on how to fix this?请就如何解决这个问题提出任何想法? error image错误图像在此处输入图像描述

Try deleting the node module folder, and again install all of them, by running npm install, or yarn, depending on the type of package manager you are using.尝试删除节点模块文件夹,然后通过运行 npm install 或 yarn 再次安装所有这些文件夹,具体取决于您使用的 package 管理器的类型。

If you are linting make sure your syntax is correct in your package.json file you may be missing a comma or something simple like that.如果您正在检查,请确保您的 package.json 文件中的语法正确,您可能缺少逗号或类似的简单内容。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法加载在“package.json » eslint-config-react-app”中声明的插件“jsx-a11y”:意外的令牌 = - Failed to load plugin 'jsx-a11y' declared in 'package.json » eslint-config-react-app': Unexpected token = 无法加载在“package.json » eslint-config-react-app”中声明的插件“import”:找不到模块“typescript/package.json” - Failed to load plugin 'import' declared in 'package.json » eslint-config-react-app': Cannot find module 'typescript/package.json' 无法加载在“package.json » eslint-config-react-app/jest”中声明的插件“jest”:无法读取未定义的属性(读取“meta”) - Failed to load plugin 'jest' declared in 'package.json » eslint-config-react-app/jest': Cannot read properties of undefined (reading 'meta') 无法加载在“package.json » eslint-config-react-app”中声明的插件“flowtype”:找不到模块“eslint/use-at-your-own-risk” - Failed to load plugin 'flowtype' declared in 'package.json » eslint-config-react-app': Cannot find module 'eslint/use-at-your-own-risk' 插件“react”中的错误在“package.json » eslint-config-react-app 之间发生冲突 - ERROR in Plugin "react" was conflicted between "package.json » eslint-config-react-app 插件“react”在“package.json » eslint-config-react-app 之间发生冲突 - Plugin "react" was conflicted between "package.json » eslint-config-react-app 部署 React 应用程序时出错,它一直在说 &lt;&lt; Plugin "react" was conflicted between "package.json » eslint-config-react-app » &gt;&gt; - Error when deploying react app and it keeps sayings << Plugin "react" was conflicted between "package.json » eslint-config-react-app » >> 无法加载在 'package.json » eslint-config-react-app#overrides[0]' 中声明的解析器 '@typescript-eslint/parser':找不到模块 'typescript' - Failed to load parser '@typescript-eslint/parser' declared in 'package.json » eslint-config-react-app#overrides[0]': Cannot find module 'typescript' 如何解决这个错误:package.json » eslint-config-react-app/jest#overrides[0]: Environment key "jest/globals" is unknown - How to solve this error: package.json » eslint-config-react-app/jest#overrides[0]: Environment key "jest/globals" is unknown Atom &amp; eslint:找不到模块 'eslint-config-react-app' - Atom & eslint: Cannot find module 'eslint-config-react-app'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM