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