【发布时间】:2017-05-21 01:40:35
【问题描述】:
我已经使用 VueJS 2 开发了几个星期,并尝试部署到生产环境,但遇到了问题。我想在不同的系统上进行测试,所以我删除了我的 node_modules 文件夹并重建了我的依赖项(npm install)。但是,当我现在 npm run 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
这怎么可能?
【问题讨论】:
标签: vuejs2