开发项目时遇到了“You are using the runtime-only build of Vue where the template compiler is not available. Either pre”这个错误,主要我在Vue.extend()中使用了模板语法,然后出现图片中的错误
解决办法,在项目根目录下新建vue.config.js文件
module.exports = {
runtimeCompiler: true
}
开发项目时遇到了“You are using the runtime-only build of Vue where the template compiler is not available. Either pre”这个错误,主要我在Vue.extend()中使用了模板语法,然后出现图片中的错误
解决办法,在项目根目录下新建vue.config.js文件
module.exports = {
runtimeCompiler: true
}