Shopify / hydrogen-v1

React-based framework for building dynamic, Shopify-powered custom storefronts.
https://shopify.github.io/hydrogen-v1/
MIT License
3.75k stars 326 forks source link

"Doesn't work" (/api/hydrogen/hooks/global/usequery) #2390

Open mcvinci opened 1 year ago

mcvinci commented 1 year ago

Doesn't work

Feedback received for:

Next steps:

This is an automated GitHub issue created with feedback received on Shopify.dev.


View User Agent Details Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36
View IP Data {"asn"=>"267320", "anon"=>"0", "anonVpn"=>"0", "hostProvider"=>"0", "pubProxy"=>"0", "torExit"=>"0", "countryCode"=>"BR", "regionCode"=>"BA", "regionName"=>"Bahia", "cityName"=>"Salvador", "postalCode"=>"40000", "timeZone"=>"America/Bahia", "lat"=>"-12.86710", "long"=>"-38.48070", "ssbipAnon"=>"0", "ssbipAnonVpn"=>"0", "ssbipHostProvider"=>"0", "ssbipPubProxy"=>"0", "ssbipTorExit"=>"0"}
Metadata Please do not edit any metadata. Ask in #core-build-learn for help. --- slack_channel: hydrogen vault_team: https://vault.shopify.io/teams/2632 team_name: Hydrogen
mdunbavan commented 1 year ago

Hey,

Just saw this issue and wanted to flag that on version 1.3.0 this is giving me issues too.

On production build it is not working but locally it is absolutely fine. Looking further into it I am guessing what is being used behind the scenes for the useQuery api hook is what is breaking in production with fetch or Axios.

Anyway, it would be good to see if this was being looked into right now.

The error I get on production is below:

error: TypeError: (e.adapter || Es.adapter) is not a function