Answers for "Cannot find module '..data/courses.json'. Consider using '--resolveJsonModule' to import module with '.json' extensi"

5

Cannot find module './data.json'. Consider using '--resolveJsonModule' to import module with '.json' extension

add to tsconfig.json

{
	...
    "resolveJsonModule": true
  }
}
Posted by: Guest on July-30-2020

Code answers related to "Cannot find module '..data/courses.json'. Consider using '--resolveJsonModule' to import module with '.json' extensi"

Code answers related to "Javascript"

Browse Popular Code Answers by Language