JSON imports are still experimental and only supported via the --experimental-json-modules flag.

    Local JSON files can be loaded relative to import.meta.url with fs directly:

    1. import { readFile } from 'fs/promises';
    2. const json = JSON.parse(await readFile(new URL('./dat.json', import.meta.url)));

    Alterantively module.createRequire() can be used.