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

vue报错export 'default' (imported as 'VueRouter') was not found in 'vue-router'

发布时间 2023-12-01 11:40:14作者: 西瓜南瓜哈密瓜

直接使用npm install vue-router -save安装的路由,运行报错

 经排查后发现是安装的vue-router版本太高

  • 使用 npm uninstall vue-router 卸载之前安装的路由
  • 使用 npm i vue-router@3.5.2 安装低版本的路由

问题解决!!!

 

    本栏目推荐文章
  • vue---循环方式以及跳出循环
  • 【五期李伟平】CCF-A(AAAI'21)Game of Gradients: Mitigating Irrelevant Clients in Federated Learning
  • vue-quill编辑器vue2版
  • vue-quill编辑器网页版
  • 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. ==》引用了未使用的方法导致
  • Python中出现"No module named 'requests'"的图文解决办法
  • ERROR 2059 (HY000): Authentication plugin 'caching_sha2_password'
  • mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION; ERROR 1410 (42000): You are not allowed to create a user with GRANT
  • vue模板的首次渲染,和重新渲染,有哪些区别?
  • 【Vue2】金额范围查询项
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们