Skip to content

Package subpath './src/ClickToComponent.js' is not defined by "exports" #96

@hsyfee

Description

@hsyfee

I am using the latest version 1.1.2, and encountered the following issues when running my Next.js project, please tell me how to solve it.
I have used the versions 1.1.0 and 1.0.8 mentioned in the issues, and both report the same error.😭

node: v16.20.2
i18next: ^19.6.3
react: ^16.8.0

image

But when I modify the 'exports' path in package.json to './src/ClickToComponent.js', it reports that './src/ContextMenu.js' is not defined.
image

However, when I change the import in exports to the path in types, it seems that the corresponding file can be found, but another error is reported.
image

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