Vite transpiling bug Before export const data = await import(pathToJSONFile, { with: { type: 'json' } }); After export const data = await import(pathToJSONFile, { assert: { type: 'json' } });