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

4.0.0+ is not importable #17

Closed
synic opened this issue May 11, 2023 · 3 comments
Closed

4.0.0+ is not importable #17

synic opened this issue May 11, 2023 · 3 comments

Comments

@synic
Copy link

synic commented May 11, 2023

No description provided.

@dziraf
Copy link
Contributor

dziraf commented May 12, 2023

Can you be more specific? I've just checked in our example app and it works correctly.

https://github.com/SoftwareBrothers/adminjs-example-app/blob/master/src/sources/mongoose/resources/admin.resource.ts (You have to enable new/edit to test)

Screen.Recording.2023-05-12.at.09.29.27.mov

@synic
Copy link
Author

synic commented May 12, 2023

I mean that when you type:

import passwordsFeature from '@adminjs/passwords';

It says that it cannot find the module @adminjs/passwords or it's corresponding type declarations. The same thing is happening for @adminjs/nestjs 6.0.1: SoftwareBrothers/adminjs-nestjs#55

@dziraf
Copy link
Contributor

dziraf commented May 12, 2023

This doesn't happen in our example/demo app which is also hosted on a remote environment which probably means you hadn't followed the migration guide & hadn't moved to ESM.

@dziraf dziraf closed this as completed May 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants