Vue-Router 错误:Uncaught (in promise) TypeError: api.now is not a function

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 ()
    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 promise) TypeError: api.now is not a function)