Typescript 4.5 resolveJsonModule should also work with node12 and nodenext module and resolveTypes ยท Issue #46362 ยท microsoft/TypeScript (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

@frank-dspeed

Description

@frank-dspeed

Bug Report

๐Ÿ”Ž Search Terms

resolveJsonModule typescript 4.5 node node12 nodenext

๐Ÿ•— Version & Regression Information

4.5 +

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