Skip to content

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

Closed
@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