Skip to content

Package file not found problem. #5

@khyun-digital-x

Description

@khyun-digital-x

When I try to use it in 'react-native' I get an error.

Error message:
"However, this package itself specifies a main module field that cannot be resolved."

Change '"main": "./lib/cjs/index.ts"' to '"main": "./lib/cjs/index.js"' in the library's "package.json" and it will work.

I write this in case someone else has the same problem as me.

thank you

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