#Fake IntelliSense TypeScript errors in VSCode when building a NextJS (react) project

9 messages · Page 1 of 1 (latest)

unique yacht
#

I have a NextJS project that I'm using typescript for and while it both on my MacBook and my windows pc, it gives me fake intellisense errors on my pc and I can't figure out why for the life of me.

I'm attaching a picture of all the errors and my tsconfig. Please help me these errors are killing me lol.

{
  "compilerOptions": {
    "target": "es5",
    "lib": [
      "dom",
      "dom.iterable",
      "esnext"
    ],
    "allowJs": true,
    "skipLibCheck": true,
    "strict": true,
    "forceConsistentCasingInFileNames": true,
    "noEmit": true,
    "esModuleInterop": true,
    "module": "esnext",
    "moduleResolution": "node",
    "resolveJsonModule": true,
    "isolatedModules": true,
    "jsx": "preserve",
    "incremental": true,
    "baseUrl": ".",
    "paths": {
      "@/*": [
        "./src/*"
      ]
    }
  },
  "include": [
    "next-env.d.ts",
    "**/*.ts",
    "**/*.tsx",
  ],
  "exclude": [
    "node_modules"
  ]
}
wary flower
#

do they persist after restarting the ts server?

unique yacht
#

okay just restarted the server

#

still persists

wary flower
#

that would also restart the ts server so that works
(to restart just the ts server, use the command palette, cmd/ctrl+shift+p)

unique yacht
#

yeah I just looked up a stackoverflow post on how to do it LOL but thank you

wary flower
#

idrk anything else that could help, sorry

unique yacht
#

no worries