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

7.0.0 Unexpected identifier 'assert' with Node 22 #950

Closed
marklai1998 opened this issue Oct 31, 2024 · 2 comments · Fixed by #957
Closed

7.0.0 Unexpected identifier 'assert' with Node 22 #950

marklai1998 opened this issue Oct 31, 2024 · 2 comments · Fixed by #957

Comments

@marklai1998
Copy link

Node 22 is LTS now, and import assertion is removed favor of input attributes

So when I run the command with 7.0.0, error is thrown

SyntaxError: Unexpected identifier 'assert'

@edhgoose
Copy link

edhgoose commented Nov 18, 2024

We're getting the same too :(

SyntaxError: Unexpected identifier 'assert'
    at compileSourceTextModule (node:internal/modules/esm/utils:338:16)
    at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:103:18)
    at #translate (node:internal/modules/esm/loader:433:12)
    at ModuleLoader.loadAndTranslate (node:internal/modules/esm/loader:480:27)
npx --version
10.9.0
node --version
v23.1.0

@kanadgupta
Copy link
Member

Hi there — v7.0.0-beta.11 should fix this. Thanks for flagging!

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 a pull request may close this issue.

3 participants