DEV Community

Smart Home Dan
Smart Home Dan

Posted on

Turborepo and ts(2307) Error - Cannot find module 'abc' or its corresponding type declarations.ts(2307)

When using Turborepo in VSCode, I have found that sometimes VScode starts throwing up 2307 errors. This is because it can't seem to see the modules installed at the root level inside a package.

Turns out this is entirely just a weird Typescript issue, not Turborepo or VSCode

https://github.com/vercel/turbo/issues/4771

Solution: Cntl + Shift + P > Restart TS Server

Should clear the errors

Top comments (0)