I am struggling with the following error:
error TS2591: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.
baseUrl: process.env.TEST
// environment.prod.ts
import 'dotenv/config';
export const environment = {
production: true,
baseUrl: process.env.TEST
};
//.env
TEST=whatever
I've already installed @types/node and dotenv, the problem is the IDE on typescript files is telling me there is something wrong with TEST, what am I missing?
dotenvand@types/node,tsc environment.prod.tsshouldn't give you any error.