SoftwareBrothers / adminjs

AdminJS is an admin panel for apps written in node.js

Home Page:https://adminjs.co

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

stijnlw opened this issue ยท comments

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

๐ŸŽ‰ This issue has been resolved in version 7.8.2 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€