EN
TypeScript - tsconfig.json file error: Cannot find type definition file for 'node'
1 answers
3 points
I've just created a new Nuxt 3 project (Vue.js) with tsconfig.json
file and it keeps showing me the following error:
xxxxxxxxxx
1
Cannot find type definition file for node
How can I fix this?
1 answer
3 points
You need to install the node
types.
Quick solution for npm:
xxxxxxxxxx
1
npm install --save-dev @types/node
or using yarn:
xxxxxxxxxx
1
yarn add @types/node --dev
Note:
If this doesn't fix the error, try to add
"node"
to your"types"
array intsconfig.json
file and restart your IDE.
0 commentsShow commentsAdd comment