1. 程式人生 > >TypeError: Cannot read property 'vue' of undefined

TypeError: Cannot read property 'vue' of undefined

![在使用webpack打包的時候遇到的這個錯誤,網上沒找到解決的方法,望各路大神留步,看一下如何解決
ERROR in ./src/login.vue
Module build failed (from ./node_modules/[email protected]@vue-loader/index.js):
TypeError: Cannot read property ‘vue’ of undefined
at Object.module.exports (F:\VistualStudioCode\threess\[email protected]@vue-loader\lib\loader.js:61:18)
@ ./src/main.js 7:13-35
@ multi ./node_modules/

[email protected]@webpack-dev-server/client?http://localhost:3000 (webpack)/hot/dev-server.js ./src
/main.js
(https://img-blog.csdnimg.cn/20181221113630105.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzM2Mzk1ODU2,size_16,color_FFFFFF,t_70)