Skip to content

resolveJsonModule is not defaulted to true when module is nodenext #2652

Description

@abrahamguo

Steps to reproduce

TS:

import packageJson from './package.json' with { type: 'json' };

Result:

"module": tsc 5.9.3 tsgo 7.0.0-dev.20260203.1
"node20"
"nodenext" Consider using '--resolveJsonModule' to import module with '.json' extension.

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions