laravel-shopify
laravel-shopify copied to clipboard
Auth:user->name and utils Issues while Upgrading v12.x to v17.x
Hello,
I have upgraded the 12.0 to 17.3.1 version and all steps follow from here: https://github.com/osiset/laravel-shopify/wiki/Upgrading
After all, things are done when I reload the store page I got the below error:
and
Uncaught ReferenceError: utils is not defined
- Package Version: v17.3.1
- Laravel Version: v7.30.6
- PHP Version: v7.4.3
I have checked many things but have not found any solution can you please help me?
It could be a number of things with that big of an upgrade.
Recently I upgraded from v11 and one the big adjustments I needed to make is that API responses do not return as objects anymore (ie: $response->body) but as arrays (ie: $response["body"]["container"]). From your error message I am thinking it might be that.
utils
is the AppBridge Utils package, that has the getSessionToken()
. If you are using a custom base blade template, you might need to check to make sure you have added in the additional changes from default.blade