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

[Bug]: Use import specifier 'with' instead of 'assert' #1663

Open
stijnlw opened this issue May 2, 2024 · 0 comments
Open

[Bug]: Use import specifier 'with' instead of 'assert' #1663

stijnlw opened this issue May 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@stijnlw
Copy link

stijnlw commented May 2, 2024

Contact Details

No response

What happened?

Since 'assert' has been removed from the spec in favor of 'with' ( see https://nodejs.org/api/esm.html#import-specifiers ) building on NodeJS 22 will throw the following error:

SyntaxError: Unexpected identifier 'assert'

image

All you have to do to fix is change 'assert' to 'with'

image

Bug prevalence

Always on NodeJS 22

AdminJS dependencies version

"adminjs": "^7.8.1",
"@adminjs/bundler": "^3.0.0",
"@adminjs/design-system": "^4.1.1",
"@adminjs/express": "^6.1.0",
"@adminjs/import-export": "^3.0.0",
"@adminjs/themes": "^1.0.1",
"@adminjs/typeorm": "^5.0.1",

What browsers do you see the problem on?

No response

Relevant log output

No response

Relevant code that's giving you issues

No response

@stijnlw stijnlw added the bug Something isn't working label May 2, 2024
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

No branches or pull requests

1 participant