json import in typescript code example
Example: Cannot find module './data.json'. Consider using '--resolveJsonModule' to import module with '.json' extension
add to tsconfig.json
{
...
"resolveJsonModule": true
}
}
add to tsconfig.json
{
...
"resolveJsonModule": true
}
}