SoftwareBrothers / adminjs

AdminJS is an admin panel for apps written in node.js
https://adminjs.co
MIT License
8.06k stars 646 forks source link

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

Closed stijnlw closed 1 week ago

stijnlw commented 2 months ago

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

github-actions[bot] commented 1 week ago

:tada: This issue has been resolved in version 7.8.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket: