Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set type: module in package.json #18720

Closed
wants to merge 1 commit into from
Closed

Conversation

dbaynard
Copy link

Fixes #18514

I’ve tested (for free-solig-svg-icons) with sveltekit, building with the static adaptor — this change fixes the compile time error, in node.
I’ve also tested with the auto adapter — this fixes the runtime (node) error.

Sadly my understanding of the javascript ecosystem is limited; I don’t know what consequences this change might have. According to Modules: Packages | Node.js v17.5.0 Documentation, though, the additional field is recommended.

Node documentation recommends package authors explicitly set
`"type": "module"`. Without this, sveltekit (and possibly other tooling)
incorrectly treats the ES modules as CommonJS.
@dbaynard
Copy link
Author

Feel free to close, in favour of #19041

@tagliala tagliala closed this Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants