joelanman, 1 month ago so you can't use require if package.json has type: module. This seems to work but feels like a step backwards import myData from './data.json' assert { type: 'json' } https://stackoverflow.com/a/76030578
so you can't use require if package.json has type: module. This seems to work but feels like a step backwards
require
import myData from './data.json' assert { type: 'json' }
https://stackoverflow.com/a/76030578