vue安装过vue-jsonp之后,启动项目时,报Cannot read property 'install' of undefined

查了一下资料发现是插件错误,重新卸载和安装之后一样报错,

后来才知道是引用的问题

执行vue-jsonp 插件时报错 :Cannot read property 'install' of undefined

 

 换成

执行vue-jsonp 插件时报错 :Cannot read property 'install' of undefined

 

 所以以后出现这种问题时,并非是插件的原因,也可能是引用的原因。

不是什么大问题,就是很多时候明明知道哪里出现问题,却一直没有考虑到正点上。

归因:

  1. 插件错误,重新卸载 npm uninstall xxx 之后,重新安装
  2. 如果还有问题,即引用问题

相关文章:

  • 2022-12-23
  • 2021-06-09
  • 2021-05-08
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
  • 2021-09-17
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-11
  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案