zoukankan      html  css  js  c++  java
  • 关于Vue警告

    控制台出现报错:

    [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.

    翻译一下:  [Vue警告]:您正在使用Vue的仅运行时版本,而模板编译器不可用。 可以将模板预编译为渲染函数,也可以使用包含编译器的内部版本。

    解决方法:

      配置项目,在项目根目录下建立一个 vue.config.js的文件

      文件内的代码如下:

    1 module.exports = {
    2     configureWebpack: {
    3         resolve: {
    4             alias: {
    5                 'vue$': 'vue/dist/vue.esm.js'
    6             }
    7         }
    8     }
    9 }

      重启项目即可

  • 相关阅读:
    Android兼容性测试CTS
    Tkinter
    初探socket
    性能监控2
    HTTP
    python实现接口自动化1
    pip安装超时问题
    一行 Python
    Python 面向对象进阶
    Python 面向对象编程基础
  • 原文地址:https://www.cnblogs.com/strongerPian/p/13289179.html
Copyright © 2011-2022 走看看