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

Node v20.11 logs an experimental warning about import assertions #527

Closed
cinxmo opened this issue Jan 12, 2024 · 1 comment · Fixed by #580
Closed

Node v20.11 logs an experimental warning about import assertions #527

cinxmo opened this issue Jan 12, 2024 · 1 comment · Fixed by #580
Assignees
Labels
bug Something isn’t working

Comments

@cinxmo
Copy link
Contributor

cinxmo commented Jan 12, 2024

After running yarn dev this warning appears:
ExperimentalWarning: Use importAttributes instead of importAssertions

@cinxmo cinxmo added the bug Something isn’t working label Jan 12, 2024
@cinxmo cinxmo self-assigned this Jan 12, 2024
@mbostock mbostock changed the title Node v20.11 shows warning Node v20.11 logs an experimental warning about import assertions Jan 16, 2024
@mbostock
Copy link
Member

This warning is coming from tsx, so I don’t think we can do anything about it (other than suppressing the warning). Also, we can’t upgrade tsx because of privatenumber/tsx#433, so we are stuck on 4.2.1. Overall, it seems like tsx is causing lots of problems in terms of our distribution, so I think we should consider compiling to JavaScript on publish to remove the runtime dependency on tsx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn’t working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants