VueRouter报错:Uncaught TypeError: Object(…) is not a function

Uncaught TypeError: Object(…) is not a function
记录一下VueRouter报错及解决方式 这里是使用VueRouter以后控制台报错了 报错信息:Uncaught TypeError: Object(…) is not a function 经过反复尝试发现是vue-router版本过高,所以报错 在package.json文件中查看版本号,vue-router版本是4.0.12
只需要将vue-router版本降低就不会报错了 在终端输入 npm i [email protected] 希望能帮助大家~

VueRouter报错:Uncaught TypeError: Object(…) is not a function最先出现在Python成神之路

版权声明:
作者:ht
链接:https://www.techfm.club/p/16663.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>