Skip to content

Typescript 4.5 resolveJsonModule should also work with node12 and nodenext module and resolveTypesย #46362

@frank-dspeed

Description

@frank-dspeed

Bug Report

๐Ÿ”Ž Search Terms

resolveJsonModule typescript 4.5 node node12 nodenext

๐Ÿ•— Version & Regression Information

4.5 +

โฏ Playground Link

Playground link with relevant code

๐Ÿ’ป Code

set resolveJsonModule true and moduleResolution node12 or nodenext in the tsconfig.json

๐Ÿ™ Actual behavior

Errors

TS5070: Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy.

๐Ÿ™‚ Expected behavior

should work with node12 and nodenext also

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFix AvailableA PR has been opened for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions