美文网首页
Vue-Router 错误:Uncaught (in promi

Vue-Router 错误:Uncaught (in promi

作者: 一杆梅子酒 | 来源:发表于2022-04-05 12:15 被阅读0次

Vue-Router 错误

Uncaught (in promise) TypeError: api.now is not a function
    at eval (vue-router.esm-bundler.js?6c02:2489:1)
    at eval (vue-router.esm-bundler.js?6c02:3296:1)
    at Array.forEach (<anonymous>)
    at triggerError (vue-router.esm-bundler.js?6c02:3296:1)
    at eval (vue-router.esm-bundler.js?6c02:3037:1)

解决方案

  1. 删除 node_modules
  2. 重新安装依赖 npm i

相关文章

网友评论

      本文标题:Vue-Router 错误:Uncaught (in promi

      本文链接:https://www.haomeiwen.com/subject/gkjksrtx.html