#25861·strapi

fix: typescript v7 will not allow `moduleResolution` `node`

Author: dargmuesliCreated Mar 30, 2026Updated Sep 25, 2026
Labelsissue: bugsource: typescriptversion: 5

Node Version

n/a

Package Manager

Other

Package Manager Version

n/a

Strapi Version

5.40.ß

Operating System

Other

Database

Other

Javascript or Typescript

Typescript

Reproduction URL

https://github.com/dargmuesli/creal_strapi/pull/141 // https://github.com/dargmuesli/creal_strapi/actions/runs/23729339027/job/69119637272#step:7:401

Bug Description

Typescript v6 has just been released which deprecates --moduleResolution node (a.k.a. --moduleResolution node10): https://devblogs.microsoft.com/typescript/announcing-typescript-6-0/#deprecated:---moduleresolution-node-(a.k.a.---moduleresolution-node10)

For me this issues arises for @strapi/typescript-utils/tsconfigs/server which still references the deprecated module resolution. As the naming mentions "server", I'd propose to change the default from node to nodenext across the strapi monorepo.

Steps to Reproduce

Have a tsconfig.json like this:

json
{
  "extends": "@strapi/typescript-utils/tsconfigs/server",
  "compilerOptions": {
    "outDir": "dist",
    "rootDir": "."
  },
  "include": ...,
  "exclude": ...
}

Try to compile with Typescript v6 -> error.

Expected Behavior

Compiling with typescript v6 works per default.

Logs

bash

Code Snippets

No response

Media

No response

Additional information

You can add the module and moduleResolution keys to a project's tsconfig.json for the keys to be overridden downstream:

json
{
  "extends": "@strapi/typescript-utils/tsconfigs/server",
  "compilerOptions": {
    "module": "nodenext",
    "moduleResolution": "nodenext",
    "outDir": "dist",
    "rootDir": "."
  },
  "include": ...,
  "exclude": ...
}

Confirmation Checklist