Error: Caccont find name 'process'
-
Hi, i changed my quasar Project for using typescript. After Installation and all changes i got some errors.
Now i have one Error i cant solve:
TS2591: Cannot find name ‘process’. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig.i installt npm i @types/node and added it to the config but nothing changed.
Current Config:
{
“compilerOptions”: {
“allowJs”: true,
“sourceMap”: true,
“target”: “es6”,
“strict”: true,
“experimentalDecorators”: true,
“module”: “esnext”,
“moduleResolution”: “node”,
“baseUrl”: “.”,
“types”: [
“quasar”
]
},
“exclude”: [“node_modules”]
}Current TS Version: 3.5.3
Current env.d.ts:
declare namespace NodeJS {
interface ProcessEnv {
NODE_ENV: string
VUE_ROUTER_MODE: ‘hash’ | ‘history’ | ‘abstract’ | undefined
VUE_ROUTER_BASE: string | undefined
}
}Can anyone help me to fix the Problem?
-
Have the same issue.
After installing @types/node with:
npm install --save-dev ts-loader typescript @types/node
I get this issue and need to install the typescript extension again:
app:extension️ Quasar App Extension “@quasar/typescript” is missing…
-
Better ask this in our discord’s typescript channel. https://discordapp.com/channels/415874313728688138/596276596319453207
-
You need to add “node” in types property, in tsconfig.json