vue-cli3 的 [Vue warn]: You are using the runtime-only build of Vue where the template compiler 的問題解決
最近使用vue-cli3的腳手架生成專案,發現從配置完後vue-router的出現一個錯誤,
[Vue warn]: 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.config.js的檔案,
module.exports = {
runtimeCompiler: true
}
重新 yarn serve 啟動一下專案 報錯就GG了
相關推薦
vue-cli3 的 [Vue warn]: You are using the runtime-only build of Vue where the template compiler 的問題解決
最近使用vue-cli3的腳手架生成專案,發現從配置完後vue-router的出現一個錯誤, [Vue warn]: You are using the runtime-only build of Vue where the template compiler is not avai
webpack打包vue2.0,[Vue warn]: You are using the runtime-only build of Vue where the template compiler
[Vue warn]: You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templa
Vue 2.0 warn:You are using the runtime-only build of Vue where the template compiler is not availabl
在用webpack打包過程中,遇到以上的問題。Vue版本為2.5.17,查詢資料後發現是webpack.config.js的引數設定錯誤。需要設定vue-esm.js,如下所示 resolve:{ alias:{ v
vue報錯:Component template should contain exactly one root element. If you are using v-if on multiple elements, use v-else-if to chain them instead.
顯示 sin ont img root png ima pan 如果 在.vue文件中引入了 element-ui 的 table 和 pagination 組件後,報錯:Component template should contain exactly one root
Android Error:Failed to complete Gradle execution. Cause: The version of Gradle you are using (3.3)
Android 打包錯誤: Error:Failed to complete Gradle execution. Cause: The version of Gradle you are using (3.3) does not support the forTasks() me
You are using pip version 10.0.1, however version 18.1 is available. You should consider upgrading via the 'python -m pip install --upgrade pip
pip提示: You are using pip version 10.0.1, however version 18.1 is available.You should consider upgrading via the 'python -m pip install --upgrade pip' c
Maven打包異常Unable to locate the Javac Compiler in:Please ensure you are using JDK 1.4 or above and
最近maven打包專案時出現以下異常: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project com.xxx: Comp
NPM 報錯--fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module
fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module 解決:升級npm npm info graceful-fs
Pycharm 中You are using pip version 10.0.1, however version 18.1 is available. You should consider upgrading via the 'python -m pip install --upgra
今天執行程式的時候出現了: You are using pip version 10.0.1, however version 18.1 is available.You should consider upgrading via the 'python -m pip install --upgrade p
關於docker使用run命令加上引數-it時出現the input device is not a TTY. If you are using mintty, try prefixing the
最近在用docker時建立redis的映象時,使用命令docker run -it --name redis-master redis /bin/bash出現問題the input device is not a TTY. If you are using mintty,
Android Error:Failed to complete Gradle execution. Cause: The version of Gradle you are using (3.3)
Android 打包錯誤: Error:Failed to complete Gradle execution. Cause: The version of Gradle you are usin
mysql更新字段值提示You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable safe mode
error without 使用 using ble mod code span set 1 引言 當更新字段缺少where語句時,mysql會提示一下錯誤代碼: Error Code: 1175. You are using safe update mode and yo
成功解決You are using pip version 9.0.1, however version 9.0.3 is available. You should consider upgra
available blog nts pytho 命令 完美 ever iss term 解決問題 You are using pip version 9.0.3, however version 10.0.1 is available.You should conside
解決 You are using pip version 7.1.2, however version 18.0 is available.報錯
完美 bsp -- 安裝目錄 方法 exe win .exe 嘗試 Windows下安裝 Pyhton的mysql庫時 命令行一直報 You are using pip version 7.1.2, however version 18.0 is available
更新資料庫中資料時出現: Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable safe m
在資料庫中更新資料時報錯: You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable safe mode, toggle
[python問題] You are using pip version 7.1.2, however version 18.1 is available
在windows環境下在安裝paramiko的時候 ,使用命令python -m pip install paramiko 一直報錯 You are using pip version 7.1.2, however version 18.1 is available 解決辦法,pip版本升級。在Py
Maven報錯Please ensure you are using JDK 1.4 or above and not a JRE解決方法!
https://www.cnblogs.com/shihua513/p/6163682.html 在eclipse下用maven編譯時,很有可能出現以下錯誤: Please ensure you are using JDK 1.4 or above andnot a JRE (the co
You are using pip version 10.0.1, however version 18.1 is available. You should consider upgrading v
You are using pip version 10.0.1, however version 18.1 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' comma
成功解決PIP安裝模組報錯,You are using pip version 9.0.1, however version xxx is available
在PIP安裝模組時,發現報以下錯誤: You are using pip version 9.0.1, however version 18.1 is available. You should consider upgrading via the 'python -m p
MySQL Workbench批量修改資料報錯:Error Code: 1175. You are using safe update mode and you tried to update a t
批量修改資料SQL:update sys_menu set menu_extralink = true 錯誤資訊: Error Code: 1175. You are using safe update mode and you tried to upd