Skip to content

AppBridge throws error regarding shopOrigin #979

@imgntn

Description

@imgntn

Issue summary

I'm using AppBridge in an Embedded app w/ Polaris.

I'm getting an uncaught error from AppBridge regarding 'shopOrigin' -- it doesn't matter whether I defined a shopOrigin on my AppProvider or not.

Any insight?

Thanks!

Expected behavior

the app should load w/o errors

Actual behavior

this error stack

1.a2259fad.chunk.js:1
 Uncaught u {name: "AppBridgeError", message: "APP::ERROR::INVALID_CONFIG: shopOrigin must be provided", action: undefined, type: "APP::ERROR::INVALID_CONFIG", stack: "AppBridgeError: APP::ERROR::INVALID_CONFIG: shopOrigin must be provided"}
action: undefined
message: "APP::ERROR::INVALID_CONFIG: shopOrigin must be provided"
name: "AppBridgeError"
type: "APP::ERROR::INVALID_CONFIG"
stack: "AppBridgeError: APP::ERROR::INVALID_CONFIG: shopOrigin must be provided"

Specifications

  • Are you using the React components? (Y/N): Y
  • Polaris version number:
    "@shopify/app-bridge": "^1.0.7",
    "@shopify/polaris": "^3.6.0",
  • Browser: Chrome
  • Device: PC
  • Operating System: Windows

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