問題描述:
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;