Skip to content

Add assert { type: "json" } to json import#7

Open
haohanyang wants to merge 1 commit intoambit-tsai:mainfrom
haohanyang:main
Open

Add assert { type: "json" } to json import#7
haohanyang wants to merge 1 commit intoambit-tsai:mainfrom
haohanyang:main

Conversation

@haohanyang
Copy link
Copy Markdown

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant