问答详情
源自:4-2 单页面应用Demo1

启动单个组件的问题

启动单个组件时遇到问题:

Module build failed (from ./node_modules/_vue-loader@13.7.3@vue-loader/index.js):

TypeError: Cannot read property 'vue' of undefined

    at Object.module.exports (F:\app\Node.js\node_global\my-project\node_modules\_vue-loader@13.7.3@vue-loader\lib\loader.js:61:18)


You may use special comments to disable some warnings.

Use // eslint-disable-next-line to ignore the next line.

Use /* eslint-disable */ to ignore all warnings in a file.


提问者:慕粉3439875 2019-10-29 10:51

个回答

  • 慕粉3439875
    2019-10-29 12:26:50

    找到原因了,没用vue ui创建项目,而是用webpack创建的项目,所以报错