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;
用心写代码,不辜负程序员之名。