You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ERROR] Cannot use non-default import "a" with a standard JSON module main.js:1:20: 1 │ export { default as a } from "./a.json" assert { type: "json" }; ╵ ^ This is considered an import of a standard JSON module because of the import assertion here: main.js:1:49: 1 │ export { default as a } from "./a.json" assert { type: "json" }; ╵ ~~~~~~~~~~~~ You can either keep the import assertion and only use the "default" import, or you can remove the import assertion and use the "a" import (which is non-standard behavior).
Given
returns the error
However, this is not using a non default import.
https://hyrious.me/esbuild-repl/?version=0.17.17&mode=build&modules=%5B%5B%22main.js%22%2C%22export+%7B+default+as+a+%7D+from+%5C%22.%2Fa.json%5C%22+assert+%7B+type%3A+%5C%22json%5C%22+%7D%3B%22%2C1%5D%5D&buildOptions=%7B%22bundle%22%3Atrue%2C%22format%22%3A%22esm%22%2C%22splitting%22%3Atrue%7D
The text was updated successfully, but these errors were encountered: