OneBite.Dev - Coding blog in a bite size

How to resolve Option --resolveJsonModule cannot be specified without node module resolution strategy.ts

This is how to resolve Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy.ts error on typescript tsconfig.json file

This is how to resolve Option ‘—resolveJsonModule’ cannot be specified without ‘node’ module resolution strategy.ts error on typescript tsconfig.json file

How to solve this issue?

What we need is adding

"moduleResolution": "node",

inside compilerOptions property in tsconfig.json file

Read about module resolution in typescript

typescript