Search code examples
typescriptvue.jsintellij-ideanuxt.js

Intellij Nuxt error: TS2589: Type instantiation is excessively deep and possibly infinite


I'm trying Nuxt 3 for the first time. I've created a basic app following the Getting Started instructions for the Content module https://content.nuxtjs.org/get-started.

In Intellij, the modules declaration in nuxt.config.ts gives the error:

TS2589: Type instantiation is excessively deep and possibly infinite.

enter image description here

Intellij: 2023.1 (Ultimate Edition) Build #IU-231.8109.175, built on March 28, 202

Typescript Config:

NodeInterpreter: 18.7.0

Typescript: Bundled 4.8.4

enter image description here

Any ideas please?


Solution

  • Must be a problem with [email protected]; I was able get rid of the issue by installing [email protected]: npm i [email protected] --save-dev and choosing it instead of 4.8.4 in Settings | Languages & Frameworks | TypeScript