#Unable to find type declarations in VSCode + CodeSandbox across all devices + browsers

4 messages · Page 1 of 1 (latest)

median radish
#

Hi, I have several years experience developing with React and today I've been hit with an issue where I'm getting no Type resolution functioning at all in VS Code + in CodeSandbox.

All external libraries at the top of my file are showing the 2307 error, and this is consistent on VS Code and in-browser in CodeSandbox. These libraries are correctly versioned in a saved package.json, locally I've ran the correct install commands (yarn) and CodeSandbox normally handles installs automatically, although it is still failing to resolve the types.

Upon seeing this I attempted to try CodeSandbox on Incognito + different browsers to see if it was a browser-specific problem, however it's happening for me on all browsers. I then went and turned on my laptop and the issue was also occurring on my laptop. I then proceeded to try Stackblitz and the same problem occurs for all major libraries.

I've checked NPM status and this Discord and I don't see anyone reporting this issue today so I don't think this is an outage. Trying to Google this specific error gives unhelpful advice as usually it's because 1) the library the other user is using doesn't have type definitions or 2) typos/incorrect library installed.

What might be causing this issue? Is this something network related, like my fetch to npm is being blocked somehow? How do I debug this?