Skip to content

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

@alessbarb

Description

@alessbarb

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/custom-components@2.0.1

Regards,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions