Skip to content

No AppBridge context provided. #18

Description

@hmpws

Thank you for your amazing work, I couldn't do my own API routing with Shopify's CLI server.

I tried using in home.js:

import { useAppBridge } from "@shopify/app-bridge-react";
const app = useAppBridge();

But I get the error:
Error: No AppBridge context provided. Your component must be wrapped in the <Provider> component from App Bridge React.

ShopifyAppBridgeProvider should do the job looking at the source code. Maybe I just did something wrong.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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