New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
webpack项目无法使用 #1
Comments
same problem !! |
可能项目的 webpack 配置中存在只针对
如果是这样就得具体问题具体分析啦🤷♂️,暂时没想到通过工具解决的办法 |
如果为 node_modules 下的每个文件夹使用 nosync 而不是 node_modules 本身是否有效? |
理论上是的,但是别这样弄,一来文件太多,二来有些文件名也是有固定要求的,比如 |
感谢你的回复🎉 |
如果不用软链接, 改用硬链接或许可以规避这个问题, 即 |
可以尝试 pnpm |
已经在用了,很不错,但似乎无法本质上避免node_module 黑洞。事实上,我已经放弃iCloud同步代码了😂 |
重命名node_modules之后会导致报错“You attempted to import ../node_modules.nosync/css-loader/dist/runtime/api.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.”
The text was updated successfully, but these errors were encountered: