TS2823
Import attributes are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'.
Broken Code ❌
import marketData from '../fixtures/2023-07-SHOP-USD.json' with { type: 'json' };Solution:
Update your tsconfig.json file to set the --module option to esnext.
Fixed Code ✔️
{
"compilerOptions": {
"module": "esnext"
}
}This change enables support for import attributes.
