Closed MisterJimson closed 7 months ago
I get the above error when importing a JSON file, even though I do use the import attribute.
Both: import file from './file.json' assert { type: 'json' }; and import file from './file.json' with { type: 'json' };
import file from './file.json' assert { type: 'json' };
import file from './file.json' with { type: 'json' };
With is the newer syntax but both should be supported.
please provide a minimal reproduction
I get the above error when importing a JSON file, even though I do use the import attribute.
Both:
import file from './file.json' assert { type: 'json' };
andimport file from './file.json' with { type: 'json' };
With is the newer syntax but both should be supported.