[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'
All you have to do to fix is change 'assert' to 'with'
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 ๐ฆ๐