shadowrealm-api icon indicating copy to clipboard operation
shadowrealm-api copied to clipboard

Add `assert { type: "json" }` to json import

Open haohanyang opened this issue 4 months ago • 0 comments

I ran into the error ERR_IMPORT_ASSERTION_TYPE_MISSING when running npm run build (node version v18.17.1). Adding assert { type: "json" } seems to fix it.

Ref: https://stackoverflow.com/questions/70106880/err-import-assertion-type-missing-for-import-of-json-file

haohanyang avatar Oct 13 '24 18:10 haohanyang