Next.js Discord

Discord Forum

Disable next cli to automatically enable `strictNullChecks` property in tsconfig

Unanswered
Britannia Petite posted this in #help-forum
Open in Discord
Britannia PetiteOP
Whenever I run dev or build command the CLI automatically enabled strictNullChecks property in tsconfig.json file.

How can I disable it from happening?

4 Replies

Britannia PetiteOP
@joulev maybe try explicitly adding `"strictNullChecks": false` in `tsconfig.json`
Britannia PetiteOP
next cli still overrides it
@Britannia Petite next cli still overrides it
That’s bizarre. Does "false" as a string work?