avera
1
If am receiving this error when running the vtex link
command:
Webpack for react@3.x builder finished in 464ms with errors:
[at-loader] TS2688: Cannot find type definition file for 'node'
What could be the issue here? Has anyone seen this before?
1 Like
avera
2
I found the solution! Here are the steps to fix it:
- Execute VTEX setup command
- Delete the node_modules folder
- Go to react folder on your console
- Execute yarn add @types/node --save-dev
- Go to tsconfig.json and ADD:
“types”: [“node”]
- Go back to parent folder
- Execute VTEX link again
This is how I solve this message.
A hug!
7 Likes
system
Closed
3
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.