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

fix(validation): import json directly to avoid issues with bundlers #170

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sudo-alexslater
Copy link

@seriousme
Copy link
Owner

Hi,

the linter errors can probably be fixed by running npm run test as this will automatically run npm run format.

Another problem is that import assert { type: "json"} has been removed from node 22 and later, see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import
Its succesor is import with { type: "json"} however that might not be available on all LTS versions yet.

Kind regards,
Hans

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.

Bundled index JS with webpack or esbuild unrunnable
2 participants