TypeScript diagnostics: Cannot disable TS71007 error

Problem

TS71007 TypeScript diagnostic warning (Props must be serializable for components in the "use client" entry file) cannot be disabled from IntelliJ IDEA, even after disabling the bundled Next.js plugin, TSLint/ESLint plugins and inspections, invalidating caches, and reinstalling the IDE. The warning remains present in the editor regardless of these actions.

Cause [Optional]

The TS71007 diagnostic is issued by the Next.js Typescript plugin, controlled via the plugins entry in the project’s tsconfig.json file. Disabling the bundled Next.js plugin in the IDE does not affect the operation of the Next.js TypeScript language service if it is present in the tsconfig.json configuration.

Resolution

Remove the following section from the plugins array in your project tsconfig.json:

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

After making this change, re-open the project in IntelliJ IDEA. The TS71007 diagnostic warnings from the Next.js TypeScript plugin will be disabled.

See Next.js TypeScript IDE Plugin Documentation for additional reference.

0 out of 0 found this helpful

Please sign in to leave a comment.

Have more questions?

Submit a request