Cursor giving me outdated typescript errors

When using Cursor I get “The “use server” file can only export async functions.” error in my Problems section.

This error is not valid and it forced me to delete

   "plugins": [
      {
        "name": "next"
      }
    ],

from my tsconfig.json to make it go away.

When I open my project in Windsurf I do not see this error.

How is this possible, why does Cursor do this and how can I fix it?

Hello, I’m just restarting the typescript language server if outdated errors have appeared

1 Like