启动单个组件的问题

来源:4-2 单页面应用Demo1

慕粉3439875

2019-10-29 10:51

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

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.


写回答 关注

1回答

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

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

    慕粉4305...

    区别在哪啊?

    2020-05-03 16:35:44

    共 2 条回复 >

3小时速成 Vue2.x 核心技术

带你快速学习最流行的前端框架vue2.x的核心技术

82559 学习 · 487 问题

查看课程

相似问题