typescript error - cannot find name 'process'

前端 未结 1 476
醉话见心
醉话见心 2021-01-17 08:45

I am setting up a new project with express+ typescript and facing typescript error - cann\'t find name \'processs\'

package.json

\"dependencies\": {
         


        
相关标签:
1条回答
  • 2021-01-17 09:20

    Your new configuration looks right. Although, you probably have to restart typescript language server if it still uses previous version of the tsconfig. In order to do this in VS Code, you do Ctrl+Shift+P and Reload Window or TypeScript: Restart TS server if available.

    Also you don't need tsc package in your dependencies, because it is deprecated now, and typescript package comes with tsc executable.

    0 讨论(0)
提交回复
热议问题