You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
设置了vendor后,build会报错,但是webpack-dev-server本地跑就不会有问题。
报错如下:
Error: Entry index depends on ${本地路径}/node_modules/antd-dayjs-webpack-plugin/src/init-dayjs-webpack-plugin-entry.js, but this entry was not found
at Compilation.seal (${本地路径}/node_modules/webpack/lib/Compilation.js:2310:13)
at ${本地路径}/node_modules/webpack/lib/Compiler.js:1080:20
at ${本地路径}/node_modules/webpack/lib/Compilation.js:2186:4
at _next2 (eval at create (${本地路径}/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), :35:1)
at eval (eval at create (${本地路径}/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), :71:1)
at ${本地路径}/node_modules/webpack/lib/FlagDependencyExportsPlugin.js:374:11
at ${本地路径}/node_modules/neo-async/async.js:2830:7
at Object.each (${本地路径}/node_modules/neo-async/async.js:2850:39)
at ${本地路径}/node_modules/webpack/lib/FlagDependencyExportsPlugin.js:353:18
at ${本地路径}/node_modules/neo-async/async.js:2830:7
webpack config:
设置了vendor后,build会报错,但是webpack-dev-server本地跑就不会有问题。
报错如下:
Error: Entry index depends on ${本地路径}/node_modules/antd-dayjs-webpack-plugin/src/init-dayjs-webpack-plugin-entry.js, but this entry was not found
at Compilation.seal (${本地路径}/node_modules/webpack/lib/Compilation.js:2310:13)
at ${本地路径}/node_modules/webpack/lib/Compiler.js:1080:20
at ${本地路径}/node_modules/webpack/lib/Compilation.js:2186:4
at _next2 (eval at create (${本地路径}/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), :35:1)
at eval (eval at create (${本地路径}/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), :71:1)
at ${本地路径}/node_modules/webpack/lib/FlagDependencyExportsPlugin.js:374:11
at ${本地路径}/node_modules/neo-async/async.js:2830:7
at Object.each (${本地路径}/node_modules/neo-async/async.js:2850:39)
at ${本地路径}/node_modules/webpack/lib/FlagDependencyExportsPlugin.js:353:18
at ${本地路径}/node_modules/neo-async/async.js:2830:7
如果取消vendor就不会有问题。
请问下是vendor的原因还是我vendor配置的原因呢,或者我应该怎么排查这个问题哇。
我去报错的文件里打了一些log,对比了本地运行和build的内容,看起来是一样的。麻烦大佬空了看看。如果需要完整webpack配置的话,我再贴。目前自己测试来看,应该是vendor的原因。
先谢谢大佬的插件和指导 😁
The text was updated successfully, but these errors were encountered: