As shown in the gif, whenever I copy code or get recommended code from Cursor, the imports always show an error like “Cannot find module x or its corresponding type declarations.” Once I force a refresh, the issue resolves, but it’s really annoying. Am I the only one experiencing this?
As I mentioned before, extensions have nothing to do with this error. I disabled all extensions, and the same issue still occurs.
This also happens with any project I create, so it’s not related to the tsconfig file. A freshly created React/Next.js project gives me the same errors.
I fixed this for now by setting "typescript.tsserver.experimental.enableProjectDiagnostics" to false.
It’s not ideal since now only opened files report errors. Hopefully, the team can eventually resolve this because it’s a big drawback for me and makes me want to go back to vs code.
Another issue I’ve noticed is that in VS Code, when I copy my component, no errors are shown. But when I use Cursor, errors are thrown for the imports and JSX for a few seconds. It’s not a huge issue, but I would rather not see that every time I copy files. I would assume these issues are relatd.