Ts can't find process.

vue-cli 3.0.ts file

const baseUrl = process.env.NODE_ENV === "development" ? config.baseUrl.dev : config.baseUrl.pro;

prompt

// [ts] "process" 

clipboard.png

Jul.20,2021

3.0 is not clear. The 2.x cli I used when learning ts not long ago encountered this problem. I installed @ types/node at that time, and you can get it. You can try


vue-cli 3.0 do not see the ts file
, while the project created by vue-cli is run in the browser, of course, there is no process

.
Menu