Error TS2688: Cannot find type definition file for 'node'

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

I found the solution! Here are the steps to fix it:

  1. Execute VTEX setup command
  2. Delete the node_modules folder
  3. Go to react folder on your console
  4. Execute yarn add @types/node --save-dev
  5. Go to tsconfig.json and ADD:
    “types”: [“node”]
  6. Go back to parent folder
  7. Execute VTEX link again

This is how I solve this message.

A hug!

4 Likes

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.