Is it possible to import a JSON file without specifying the extension in typescript
?
For instance, if I have a file named file.json
, and this is my TypeScript code:
import jsonData from './file'
.
However, I am encountering an error: [ts] Cannot find module './file'.