您的位置:首页 > 产品设计 > UI/UE

You are using the runtime-only build of Vue where the template compiler is not available. Either pre

2017-09-30 00:00 876 查看
摘要: You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.

vue在开发过程中会遇到You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.
(found in Root).这个的报错,我在vue的package.json把"main": "dist/vue.runtime.common.js",改为了"main": "dist/vue.js","module": "dist/vue.runtime.esm.js",改为了"module": "dist/vue.js",之后就不报错了





特别应该注意的是,需要先把项目停掉,然后再重启这个错误才会消失,已验证
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  vue runtime.common
相关文章推荐