VueJS重新安装依赖项

时间:2017-01-06 10:03:49

标签: vuejs2

我已经使用VueJS 2进行了几周的开发,并尝试部署进行生产,但遇到了问题。我想在另一个系统上进行测试,因此删除了我的node_modules文件夹并重建了我的依赖项(npm install)。但是,当我现在运行dev时,它不再起作用了。我的package.json中没有任何改变。我的网页给了我以下错误:

您正在开发模式下运行Vue。 确保在部署生产时打开生产模式。 请参阅https://vuejs.org/guide/deployment.html

上的更多提示
(unknown) ReferenceError: _h is not defined
at Proxy.render (eval at (app.js:1596), :3:14658)
at VueComponent.Vue._render (eval at (app.js:606), :3096:22)
at VueComponent.eval (eval at (app.js:606), :2464:21)
at Watcher.get (eval at (app.js:606), :1663:27)
at new Watcher (eval at (app.js:606), :1655:12)
at VueComponent.Vue._mount (eval at (app.js:606), :2463:19)
at VueComponent.Vue$3.$mount (eval at (app.js:606), :6104:15)
at VueComponent.Vue$3.$mount (eval at (app.js:606), :8494:16)
at init (eval at (app.js:606), :2777:11)
at createComponent (eval at (app.js:606), :4120:9)
logError

这怎么可能?

1 个答案:

答案 0 :(得分:0)

该错误似乎来自vue-template-compiler,也称为here。解决方案可以是将vue降级到之前的2.1.5,因为这是引入错误的地方(也将vue-template-compiler降级到相同的版本)。

我发现另外一个引用here指向this提交。

相关问题