-
-
Notifications
You must be signed in to change notification settings - Fork 149
Closed
Labels
bugSomething isn't workingSomething isn't workingunconfirmedBug has not been reproduced yetBug has not been reproduced yet
Description
I have gone through the installation steps a number of times on fresh installations of Laravel and I'm unable to get the React (or vue) SPA to load.
Steps to reproduce
- Install laravel 8 or 9
- Follow the steps indicated here: https://github.com/Kyon147/laravel-shopify/wiki/Installation (without setting the SPA react setting)
- You will see the output of: "You are: example-store.myshopify.com"
Current behavior
- Set the react settings (by the way there is a typo in the wiki docs where "react" should be "REACT" according to the enum (in .env set SHOPIFY_FRONTEND_ENGINE="REACT") Line 245 Utils.php
- You will see the following:
Feedback
-
Are we supposed to get the current logged in user using the same Laravel Auth::user() function?
-
It appears that this is breaking the app bridge from loading due to there not being a user logged in -
views/layouts/default.blade.php
@if(\Osiset\ShopifyApp\Util::getShopifyConfig('appbridge_enabled') && \Osiset\ShopifyApp\Util::useNativeAppBridge())
This isn't firing because useNativeAppBridge is returning false when SHOPIFY_FRONTEND_ENGINE
is set to REACT
. This makes useNativeAppBridge()
return false.
Any help or advice here would be greatly appreciated. Thanks :)
veed76
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingunconfirmedBug has not been reproduced yetBug has not been reproduced yet