Skip to content

Package "onnxruntime-react-native" does not contain a valid config plugin #548

@abhineet-bansal

Description

@abhineet-bansal

I cannot get the ONNX Runtime React Native Expo Example Application to work as is. I started with a fresh setup and followed instructions in the README.

Here are the problematic steps and the errors I encountered.

  1. npx expo install onnxruntime-react-native
success Saved 1 new dependency.
info Direct dependencies
└─ [email protected]
info All dependencies
└─ [email protected]
✨  Done in 1.50s.
Skipping config plugin check: Package "onnxruntime-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
  1. npx expo prebuild
CommandError: Package "onnxruntime-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

I couldn't find a resolution to this issue by trying things myself or looking online.

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