Answers for "consider using '--resolvejsonmodule' to import module with '.json' extension angular"

2

Consider using '--resolveJsonModule

add "resolveJsonModule": true key in tsconfig.json

{
  "compilerOptions": {
    "target": "es2015",
    "module": "commonjs",
    "strict": true,
    "moduleResolution": "node",
    "resolveJsonModule": true
  }
}
Posted by: Guest on January-20-2021

Code answers related to "consider using '--resolvejsonmodule' to import module with '.json' extension angular"

Code answers related to "Javascript"

Browse Popular Code Answers by Language