Can I import json file without the extension in typescript?
for example, I have file.json, and this is my typescript file:
import jsonData from './file'.
But I got an error: [ts] Cannot find module './file'.
try "./file.json" instead of "./file"
or
read json file using fs.readFile("./file.json"), then parse it with JSON.parse()
module: esnext