Now, we get a type error in line 2. TypeScript doesn't let us import a JSON module out of the box, just like that. This was a conscious design decision made by the TypeScript team: pulling in large JSON files could potentially consume a lot of memory, which is why we need to opt into that feature by enabling the --resolveJsonModule compiler flag:

Having people to consciously opt into this would imply the user understands the cost.

Let's head over to our tsconfig.json file and enable the resolveJsonModule option there: