After recent update vs code transpiling stopped working: tsc is not recognized as internal or external command

老子叫甜甜 提交于 2019-12-12 02:42:13

问题


The title says all, anyway, after update yesterday visual code studio is not transpiling ts files to js saying tsc is not recognized asa external or internal command


回答1:


In your settings, set the location of the typescript sdk

The setting can now take absolute and relative paths.

I have typescript installed locally in my projects, so my stting looks like

 {
     "typescript.tsdk": "./node_modules/typescript/lib"
 }

I use VSCode 0.10.5 and TS 1.7.5 which are the latest at time of writing



来源:https://stackoverflow.com/questions/34430205/after-recent-update-vs-code-transpiling-stopped-working-tsc-is-not-recognized-a

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!