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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay