How I Fixed: Needs an import assertion of type JSON
Whilst updating an older Express project to use TypeScript, I came across a file where I was pulling in a JSON file directly using require. I wanted to remove the require usage and switch to import, but this was not quite as straightforward as I initially expected. It turns out that this can be demonstrated … Read more