TS2880
Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'.
Broken Code ❌
import jsonData from './data.json' assert { type: 'json' };This error occurs because import assertions have been replaced by import attributes in modern TypeScript versions (starting from v5.3).
Fixed Code ✔️
Use with { type: "json" } instead:
import jsonData from './data.json' with { type: 'json' };