-
Notifications
You must be signed in to change notification settings - Fork 37
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
Can not import after update to 6.0.1 #55
Comments
I have the same problem |
Same problem over here. AdminJS is at version 7 but this dependency is at version 6, are we outdated? |
Same problem, did someone fix this? |
Same issue here - @dziraf any insight? The same seems to be true for @adminjs/passwords, 4.0.0 is not importable. |
@EliasGcf Since AdminJS version 7 and it's compatible packages are ESM-only, you cannot import them directly into your CommonJS Nest app. Instead, you have to use dynamic imports:
from official documentation, https://docs.adminjs.co/installation/plugins/nest p.s. But after that update, I do not able to use it on my current projects... I have so many issues with my Nest.js app after upgrade. |
combining adminjs into one big dynamic import module solved it for me:
|
@thefelixno |
AdminJS version 7 is ESM-only. In order to import it, you have to use dynamic imports.
this works fine for me, hope this helps |
I am getting this error when update to 6.0.1 version.
The text was updated successfully, but these errors were encountered: