Baroshem / nuxt-medusa

🛍️ Medusa module for Nuxt
https://nuxt-medusa.vercel.app
MIT License
130 stars 10 forks source link

Strackblitz playground link not working #19

Open matej-marjanovic opened 1 year ago

matej-marjanovic commented 1 year ago

Version

nuxt-medusa: 0.4.0 nuxt: 3.3.1

Reproduction Link

https://stackblitz.com/github/baroshem/nuxt-medusa?file=.stackblitz%2Fnuxt.config.ts

Steps to reproduce

Trying the StackBlitz playground link.

What is Expected?

Playground link to work.

What is actually happening?

If you click on the "Play online" link it leads to a 500 server error when it tries to run on Stackblitz. I'm not sure though if it's a Stackblitz issue or if it's related to the project.

Terminal

[Vue warn]: Unhandled error during execution of setup function                   16:38:44
  at <App>                                                                       16:38:33
[Vue warn]: Unhandled error during execution of setup function                   16:38:51
  at <App>

Website

500
socket hang up

at TLSSocket.socketOnEnd (https://zzmikvlmzgithub-zrex.w-credentialless.staticblitz.com/blitz.95b70c8d.js:35:1190418)
at EventEmitter.emit (https://zzmikvlmzgithub-zrex.w-credentialless.staticblitz.com/blitz.95b70c8d.js:35:156946)
at endReadableNT (https://zzmikvlmzgithub-zrex.w-credentialless.staticblitz.com/blitz.95b70c8d.js:35:731158)
at _0x3ce3ef (https://zzmikvlmzgithub-zrex.w-credentialless.staticblitz.com/blitz.95b70c8d.js:44:150831)
at https://zzmikvlmzgithub-zrex.w-credentialless.staticblitz.com/blitz.95b70c8d.js:44:150614
Baroshem commented 11 months ago

Hey,

Sorry but I completely missed your issue. The issue is caused by the fact that the provided link to the Medusa api does not accept connections from this Stackblitz due to CORS configuration. I will ask the Medusa team to provide me with one of their public api's