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

require() of ES Module adminjs/index.js from @adminjs/custom-components/lib/components/ReferenceField.js not supported. #5

Open
alessbarb opened this issue Aug 6, 2023 · 0 comments

Comments

@alessbarb
Copy link

Hi, I hope this is the right place.

I am implementing AdminJS in a project and I found the following error:

STACK TRACE:
Error [ERR_REQUIRE_ESM]: require() of ES Module adminjs/index.js from @adminjs/custom-components/lib/components/ReferenceField.js not supported.
Instead change the require of index.js in @adminjs/custom-components/lib/components/ReferenceField.js to a dynamic import() which is available in all CommonJS modules.

I don't know if its a problem with my code or is it from @adminjs/custom-components.

I have installed @adminjs/[email protected]

Regards,

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

1 participant