Open zhou0219 opened 12 months ago
👋 Hi @zhou0219 !
Can you share some more information about the problem you're experiencing?
Specifically:
Is your app a channel?
@MitchLillie @henrytao-me I converted my app to a channel last week and started getting this error. I wasn't getting it before
Any updates on this? We are seeing this behaviour on version 3.7.9
NavigationMenu
component doesn't work with sale channels right now. To unblock you, I would suggest the following:
NavigationMenu
component doesn't work with sale channels right now. To unblock you, I would suggest the following:
- If you still use App Bridge v3.x, please use Channel Menu action directly without React https://shopify.dev/docs/api/app-bridge/previous-versions/actions/menu/channel
- You could switch to use the new App Bridge with custom element https://shopify.dev/docs/api/app-bridge-library/reference/navigation-menu
We managed to fix our issue. For what it's worth, though, unless we're missing something your second option is a non-starter for anyone using next.js and typescript. It's not actually possible to use the custom element because it is not a valid jsx element due to being lowercase. If you ignore the compiler warnings and add it to next's Head component, it moves the component to the body tag as it is not a valid jsx component.
- You could switch to use the new App Bridge with custom element https://shopify.dev/docs/api/app-bridge-library/reference/navigation-menu
That does not work. It just creates plain links and not React links that use the router.
When I use NavigationMenu,
it appears
I want to know what permissions should be added to solve this problem