Consider using '--resolveJsonModule' to import module code example
Example: Consider using '--resolveJsonModule
add "resolveJsonModule": true key in tsconfig.json
{
"compilerOptions": {
"target": "es2015",
"module": "commonjs",
"strict": true,
"moduleResolution": "node",
"resolveJsonModule": true
}
}