Skip to content

[React-native] TypeError: undefined is not a function #333

@pablohpsilva

Description

@pablohpsilva

I am facing an issue whenever I create a new NDKEvent and try to publish it. I am creating an event of type GiftWrap (for a NIP17). Whenever I call the .publish() method, the method itself works, but something inside this method is failing and returning the error TypeError: undefined is not a function.

This error only happens when I create a production build and I run the app via TestFlight. If I try to run it via a development build and/or via expo, the error never shows and the event is published correctly.

The target production build is for iOS. I yet have to try on android to see if the issue is related to iOS only.

I’ve added sentry with the hope of finding more information about the error, but, due to minification, the error and stack trace can’t be read properly.

Any ideas on what could be the issue?

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