JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

TypeError: defineConfig is not a function

发布时间 2023-11-17 02:38:41作者: 长情不羁的五年

 

原因:由于用vue-cli直接创建了vue 3的项目,而里面的生态并非都是最新版,vue.config.js中的代码如下,使用了vue 3的语法:

const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true
})

  

 

 解决:输入 vue upgrade,一路向下,即可解决

    本栏目推荐文章
  • 【解决方案】Error running,Command line is too long
  • Pycharm读excel文件报错xlrd.biffh.XLRDError: Excel xlsx file not supported
  • 题解 ARC140E【Not Equal Rectangle】
  • 2024-01-13 Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. ==》引用了未使用的方法导致
  • mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION; ERROR 1410 (42000): You are not allowed to create a user with GRANT
  • org.springframework.kafka.listener.ListenerExecutionFailedException: Listener method could not be invoked with the incoming message
  • Oracle 19c 升级错误【verify_queryable_inventory returned ORA-20001: Latest xml inventory is not loaded into table】
  • Flutter 项目运行到ios模拟器报错 : Error (Xcode): SDK does not contain 'libarclite'
  • 解决TypeError: string indices must be integers, not str
  • devmapper: Thin Pool has 162394 free data blocks which is less than minimum required 163840 free data blocks
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们