Skip to content

Not compatible with nextjs #3

@SHAGGYER

Description

@SHAGGYER

When importing CustomDialog, I get an error. My code is:

const CustomDialogPromise = import("react-st-modal").then(
  (module) => module.CustomDialog
);

The error is:

SyntaxError: Cannot use import statement outside a module

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions