Fork me on GitHub

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;

 

posted @ 2022-03-08 18:31  思考的大腿  阅读(5615)  评论(0编辑  收藏  举报