Import JSON into your Typescript project
In yourtsconfig.json
file. Make sure that the following options are set to true
.
resolveJsonModule
esModuleInterop
Learn how to import JSON files into your typescript (.ts, .tsx) files
tsconfig.json
file. Make sure that the following options are set to true
.
resolveJsonModule
esModuleInterop