首页 > 其他分享 >启动vue项目报错——ERROR Error loading vue.config.js: ERROR TypeError: defineConfig is not a function

启动vue项目报错——ERROR Error loading vue.config.js: ERROR TypeError: defineConfig is not a function

时间:2023-10-09 21:11:56浏览次数:32  
标签:loading vue 报错 ERROR config defineConfig

问题描述

在我引入echarts模块之前是ok的,引入之后就启动失败了;

问题解决

一般情况下,都是该项目的版本与本机cmd里面的版本不对应导致的;

只需要使用这个命令npm upgrade,更新版本,一直yes下去,就能够解决这个问题啦!

标签:loading,vue,报错,ERROR,config,defineConfig
From: https://www.cnblogs.com/liuzijin/p/17753144.html

相关文章

  • Vue组件各个属性执行顺序问题
    转自:https://blog.csdn.net/m0_62763606/article/details/131694339       在制作波动短视频效果时,在data中定义了一个变量,默认值为null。后来该变量在mounted中被赋值,而后在watch侦听属性中使用立即侦听时使用了该变量却显示为null,后发现这关系到各个组件属性执行顺序问......
  • Listener refused the connection with the following error: ORA-12514
    1.问题在使用OracleSQLDeveloper时,遇到以下问题:状态:失败-测试失败:Listenerrefusedtheconnectionwiththefollowingerror:ORA-12514,TNS:listenerdoesnotcurrentlyknowofservicerequestedinconnectdescriptor(CONNECTION_ID=w++gsIkwQB+f4YlRCo9RvQ==)......
  • swagger2启动报错
    1.添加注解:@EnableSwagger2注解能将swagger的配置文件导入ioc容器,使用容器管理swagger相关的各种核心类,并使我们能通过yml或properties文件能修改默认配置:@Import({Swagger2DocumentationConfiguration.class})public@interfaceEnableSwagger2{}...@EnableSwagger2能......
  • vue 监视器watch
    监听器案例简单写法:简单写法案例完整写法:完整写法案例:......
  • UE5.1 One or more errors occurred. (Found no script module records.)
    问题UE5.1源码版本烘培资源,提示缺少SDK,通过日志查看,错误打印如下:Unhandledexception:Oneormoreerrorsoccurred.(Foundnoscriptmodulerecords.)UATHelper:正在安装Sdk(Windows):Initializingscriptmodules...UATHelper:正在安装Sdk(Windows):Unhandledexceptio......
  • MAC Office 插件异常 Run-time error '53'
    问题描述:Office版本和Mathtype版本不兼容,卸载mathtype后,加载项无法加载出现如下报错:Filenotfound:/Library/ApplicationSupport/Microsoft/Office365/UserContent.localized/Startup.localized/PowerPoint/MathType.bundle/Contents/MacOS/MTMacOLEshim.解决方法问题处在......
  • java fx 报错 java.lang.instrument ASSERTION FAILED ***: “!errorOutstanding“ wi
    问题描述在javafx中遇到的错误在fxml中通过了fx:controller绑定了控制器在控制的controller里面使用了FXMLLoader.load获取这个fxml文件出现报错java.lang.instrumentASSERTIONFAILED***:"!errorOutstanding"withmessagetransformmethodcallfailedat......
  • RuntimeError: dictionary changed size during iteration
    RuntimeError:dictionarychangedsizeduringiteration解决办法-CSDN博客字典遍历时,不允许修改修改前forkeyinsys.modules.keys():ifkey.startswith('selenium'):delsys.modules[key]改成listforkeyinlist(sys.modules.keys())......
  • vue3+ts中使用echarts
    1. 下载npminstall-Secharts2.使用方法一(推荐使用)<divclass="echart_box"ref="echartDom"></div><scriptsetuplang="ts">import*asechartsfrom"echarts";constechartDom=ref()//使用ref创建虚拟DOM引......
  • 使用vue-router添加动态路由时遇到的坑
    在开发后台管理的时候,用户登录时需要根据权限来分配路由,这时候可以在路由守卫里通过router.addRoute()方法动态添加路由。importrouterfrom'./router'importstorefrom'./store'importstoragefrom'@/utils/storage'import{asyncRoute}from"@/router/routers";......