yarn why v1.22.17
[1/4] 🤔 Why do we have the module "webpack"...?
[2/4] 🚚 Initialising dependency graph...
[3/4] 🔍 Finding dependency...
[4/4] 🚡 Calculating file sizes...
=> Found "webpack@4.44.2"
info Reasons this module exists
- "react-scripts" depends on it
- Hoisted from "react-scripts#webpack"
info Disk size without dependencies: "3.57MB"
info Disk size with unique dependencies: "13.64MB"
info Disk size with transitive dependencies: "33.61MB"
info Number of shared dependencies: 140
=> Found "frappe-gantt-react#webpack@4.29.6"
info Reasons this module exists
- "frappe-gantt-react#react-scripts" depends on it
- Hoisted from "frappe-gantt-react#react-scripts#webpack"
info Disk size without dependencies: "10.34MB"
info Disk size with unique dependencies: "20.45MB"
info Disk size with transitive dependencies: "40.43MB"
info Number of shared dependencies: 141
✨ Done in 0.60s.
8条答案
按热度按时间093gszye1#
你是否已经删除了
node_modules
文件夹并重新安装?polkgigr2#
我遇到了相同的问题,我尝试升级到
v5.0.0
,但后来出现了 JS 内存溢出异常。所以我手动删除了package-lock.json
并删除了文件夹node_modules
,然后从头开始运行npm i
。现在我也在npm run start
、npm run build
和所有 CI/CD 管道上遇到了相同的错误。有什么建议吗?qmelpv7a3#
我遇到了相同的错误。
erhoui1w4#
你的项目文件夹外有node_modules吗?
41ik7eoe5#
不,与
src
、public
和package.json
处于同一水平。7kjnsjlb6#
运行
npm why webpack
时,你得到了什么输出?(如果你使用yarn,运行yarn why webpack
时也问同样的问题)ukdjmx9f7#
72qzrwbm8#
升级 react-scripts 以修复问题