webpack打包vue2.0,[Vue warn]: You are using the runtime-only build of Vue where the template compiler
2017-08-28 17:02
916 查看
[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 )
当出现如下问题时:
在webpack配置文件中添加:
(跟module,input等属性同一级)
即可
(found in )
当出现如下问题时:
在webpack配置文件中添加:
(跟module,input等属性同一级)
resolve: { alias: { 'vue': 'vue/dist/vue.js' } }
即可
相关文章推荐
- You are using the runtime-only build of Vue where the template compiler is not available. Either pre
- [Vue warn]: You are using the runtime-only build of Vue where the templa
- Maven打包异常Unable to locate the Javac Compiler in:Please ensure you are using JDK 1.4 or above and
- You are attempting to build with the incorrect version of java.
- Are you looking for a way to get the entire text of a word document into a RichEdit without using the Clipboard?
- webpack打包遇到locals[0] does not appear to be a `module` object with Hot Module replacement API enabled. You should disable react-transform-hmr in production by using `env` section in Babel configuration
- vue父子组件嵌套的时候遇到 - Component template should contain exactly one root element. If you are using v-i
- rror 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 mode, toggle the option in Preferences -> SQL Editor and reconnec
- You are using version 6.4.1 of the AdMob SDK which is non-compliant with the Google Play Ad Policy
- 93.You are using flat files as the data source for one of your data warehousing applications. To opt
- Error:Failed to complete Gradle execution. Cause: The version of Gradle you are using (2.14.1) does
- vue webpack build 打包过滤console.log()日志
- Ⅲ vue2.0 webpack打包
- Error:Failed to complete Gradle execution. Cause: The version of Gradle you are using (3.3) does no
- Android studio 3.0 Warning:One of the plugins you are using supports Java 8 language features. To t
- IIS Error:404.2 The page you are requesting cannot be served because of the ISAPI and CGI Restriction list settings on the Web server
- Ubuntu11.10安装Qt,提示“You need a C++ compiler. Please install it using the System Pack
- webpack打包vue2.0项目时必现问题。
- vue-cli npm run build空白页的两个坑 webpack gzip文件压缩优化打包文件
- You are attempting to build with the incorrect version of java.