使用纱线2(纱公斤/浆果)
终端
% yarn set version berry
% yarn dlx create-react-app apple
% cd apple
% yarn start
浏览器中的
Failed to compile
Failed to load config "react-app" to extend from.
Referenced from: D:\Projects\apple\package.json
This error occurred during the build time and cannot be dismissed.
我该如何解决这个问题?
ps。纱线dlx创建-下一个应用程序工作良好。只有CRA有问题
发布于 2021-12-17 06:30:41
创建-反应-应用程序目前已包括eslint-config-app app。所以又说导致了一场冲突
Plugin "react" was conflicted between "package.json » eslint-config-react-app » C:\Users\bhalb\programming\activity-tracker\.yarn\__virtual__\eslint-config-react-app-virtual-8e12459b5a\0\cache\eslint-config-react-app-npm-7.0.0-1ad319c3be-dac130cfcb.zip\node_modules\eslint-config-react-app\base.js" and "BaseConfig » C:\Users\bhalb\programming\activity-tracker\.yarn\__virtual__\eslint-config-react-app-virtual-6f6769fb06\0\cache\eslint-config-react-app-npm-7.0.0-1ad319c3be-dac130cfcb.zip\node_modules\eslint-config-react-app\base.js".
我的解决方案是通过在nodeLinker: node-modules
中设置.yarnrc.yml
来禁用即插即用
发布于 2021-04-15 09:40:52
在yarn start
添加步骤之前,yarn add eslint-create-react-app
为我解决了这个问题
https://stackoverflow.com/questions/66400619
复制相似问题