Skip to content

INVALID_PLUGIN_IMPORT on EAS build #1915

@gpawlik

Description

@gpawlik

Describe the bug
I get this error when creating a build via Expo EAS. I am on the newest version of Expo (53.0.7) and @stripe/stripe-react-native (0.45.0). I have installed the library as indicated in the docs https://github.com/stripe/stripe-react-native?tab=readme-ov-file#expo

 PluginError: Package "@stripe/stripe-react-native" does not contain a valid
    config plugin.
    Learn more: https://docs.expo.dev/guides/config-plugins/#creating-a-plugin

    Cannot use import statement outside a module
    Code: INVALID_PLUGIN_IMPORT

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