TypeError: Cannot read properties of undefined (reading ‘NormalModule‘)
ERRORTypeError: Cannot read properties of undefined (reading 'NormalModule')TypeError: Cannot read properties of undefined (reading 'NormalModule')at VueLoaderPlugin.apply (/Users/ylmac/github/erabbit
文章共192字 · 阅读需要大约1分钟
一键AI生成摘要,助你高效阅读
问答
·
ERROR TypeError: Cannot read properties of undefined (reading 'NormalModule')
TypeError: Cannot read properties of undefined (reading 'NormalModule')
at VueLoaderPlugin.apply (/Users/ylmac/github/erabbit-client-ts/node_modules/vue-loader-v16/dist/pluginWebpack5.js:44:47)
at webpack (/Users/ylmac/github/erabbit-client-ts/node_modules/@vue/cli-service/node_modules/webpack/lib/webpack.js:51:13)
at serve (/Users/ylmac/github/erabbit-client-ts/node_modules/@vue/cli-service/lib/commands/serve.js:163:22)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
问题产生原因1
删除了某些依赖,例如 less less-loader
问题解决:
使用vue脚手架 vue create
创建新的工程,
将新的node_modules覆盖老的node_modules
更多推荐
已为社区贡献5条内容
所有评论(0)