Module '"vue"' has no exported member 'xxxx'. Did you mean 'Xxxx'? TS2305: Module ‘"…/…/node_modules/vue/dist/vue"’ has no exported member xxxx


问题描述:

Module '"vue"' has no exported member 'xxxx'. Did you mean 'Xxxx'?

TS2305: Module ‘"…/…/node_modules/vue/dist/vue"’ has no exported member xxxx

= - = 大概就描述成这样吧,关键字够多应该就能搜到了。

原因:

typescript 3.9.3版本问题,更新为typecript4.3.5版本解决。

解决:

具体操作:

删掉node_modules;

删掉package-lock.json;

修改 package.json 文件中typescript节点为  "typescript": "4.3.5";

npm i;

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM