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

Fails in node22: because of assert { type: "json" }; #443

Open
jamesgpearce opened this issue Sep 13, 2024 · 3 comments
Open

Fails in node22: because of assert { type: "json" }; #443

jamesgpearce opened this issue Sep 13, 2024 · 3 comments

Comments

@jamesgpearce
Copy link

See nodejs/node#51622

This code fails at install:

import pkg from "./package.json" assert { type: "json" };

@tantaman
Copy link
Collaborator

Right, this syntax got changed to with or something?

@jamesgpearce
Copy link
Author

yeah I think so

@jamesgpearce
Copy link
Author

actually just bare seems to work: import foo from './bar.json';

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

No branches or pull requests

2 participants