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