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