简体   繁体   English

无法解决找不到插件“proposal-class-properties”

[英]Unable to resolve Could not find plugin “proposal-class-properties”

I have cloned a new project and after npm install, when I m doing npm start getting bellow error.我克隆了一个新项目,在安装 npm 后,当我在执行 npm 时开始出现以下错误。

"Could not find plugin "proposal-class-properties". Ensure there is an entry in./available-plugins.js for it" I have searched for help here , but could not resolve. “找不到插件“proposal-class-properties”。确保在./available-plugins.js 中有一个条目”我在这里搜索了帮助,但无法解决。

It was told by my friend that he is not getting this error for the same project on hi environment.我的朋友告诉我,他在 hi 环境中的同一个项目没有收到此错误。 Can someone help me in resolving this.有人可以帮我解决这个问题。 在此处输入图像描述

Try adding a resolutions folder to package.json:尝试将分辨率文件夹添加到 package.json:

"resolutions": { "@babel/preset-env": "7.5.5" }

Then:然后:

run npx npm-force-resolutions

Lastly run an npm or yarn install:最后运行 npm 或 yarn install:

npm install

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

相关问题 找不到插件“proposal-class-static-block” - Could not find plugin "proposal-class-static-block" 错误:找不到模块“@babel/plugin-proposal-class-properties” - Error: Cannot find module '@babel/plugin-proposal-class-properties' 使用 Firebase 在 CodeSandbox 上找不到/安装 babel 插件“proposal-decorators” - Could not find/install babel plugin 'proposal-decorators' on CodeSandbox with Firebase @ babel / plugin-proposal-class-properties不起作用 - @babel/plugin-proposal-class-properties doesn't work 带有 Babel 的 ESLint:在 .eslintrc 中未找到声明的 plugin-proposal-class-properties - ESLint with Babel: plugin-proposal-class-properties not found declared in .eslintrc Power BI 自定义 D3 图表找不到插件“提案数字分隔符” - Power BI custom D3 chart Could not find plugin "proposal-numeric-separator" 当前未启用对实验语法“classProperties”的支持 (8:16)。 添加@babel/plugin-proposal-class-properties - Support for the experimental syntax 'classProperties' isn't currently enabled (8:16). Add @babel/plugin-proposal-class-properties @babel/plugin-proposal-class-properties 仍然失败,“classProperties 当前未启用” - @babel/plugin-proposal-class-properties Still Fails with "classProperties isn't currently enabled" 无法解析类中的方法 - unable to resolve method in class 构造函数参数属性的 ECMAScript 提案 - ECMAScript proposal for constructor parameter properties
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM