Angular 8 and importing Json
"resolveJsonModule": true,"esModuleInterop": true,
should be placed under compilerOptions
in tsconfig.json
, as per documentation.
See the example here.
In my case the good old commputer science approach worked, just restart Visual Studio Code.
Even using LppEdd solution which is the docs. The only solution for me was to add // @ts-ignore The I was able to get json file successfully.
Version: 8