I had a similar problem when trying to import json from a file in a typescript project.
I used
import * as data from "module/path/filename.json"
instead of
const data = require("module/path/filename.json")
and it worked.
I had a similar problem when trying to import json from a file in a typescript project.
I used
import * as data from "module/path/filename.json"
instead of
const data = require("module/path/filename.json")
and it worked.