-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm having error though, when running in ssr mode: '[nuxt] [request error] [unhandled] [500] Cannot find module './lib/axios' #31
Comments
Experiencing the same here on fresh projects. |
The error was I set the NITRO PORT to 8000 as env variable in Netlify, when is it not needed. |
How does that even relate? For me this is happening on a local environment, fresh Nuxt 3 install.. |
If this happen on local check in medusa config of the backend the STORE_CORS and set the same port as Nuxt uses. Also set the MEDUSA_URL in the env file to the localhost:9000 by default. |
Thanks for the advice, but the medusa config itself is fine. When working with the |
Hello! I'm currently having the same issue after starting a fresh project. I followed this guide and got the same error as the title of the issue. Do you guys know about a workaround or something? BTW: I am running Nuxt on port 8000 and Medusa API on port 9000 as the default value suggests. |
Hey, I have encountered this issue some time ago but now it disapeared and was not occuring anymore. The problem I had was related to client vs browser usage of this package. When I have implemented one solution it was breaking the other one. So I decided to stay with the current one as it was not causing any problems for me. I will reopen this issue and try to experiment in the upcoming days but I will be also working on other packages so if anyone would be up for doing some reasearch please do so :) |
@Baroshem I'm a noob with anything related to open source and npm packaging, but I think it has something to do with the npm package configuration. I tested it locally and it works great. I also linked the module locally from my project and it worked flawlessly. I linked both, the Note: When I tried to run Edit: I will investigate further, if I manage to solve the issue, I will submit a PR :) |
Hey guys, @dimitrio-m created a PR with a fix (and general refactor - thanks for that! 💚) Could you check if the error persists on 0.5.0 version? |
Hello @Baroshem ! I'm glad that the PR got merged! I would like to help you maintain this module 😄 Regarding the fix, I tried importing it in a new project and it worked. I also tried importing it in a new project following the Authoring Nuxt Layers Guide and it worked there too. |
@dimitrio-m I am more than happy to see that! Feel free to suggest any changes to the module and lets make it great together! 🚀 |
Could you check if it works right now? |
For me, everything works like a charm now :) Thanks! |
it's not work,this my dependencies
|
Hey @evan959 could you please create a new issue with reproduction steps or repo? |
ok, @Baroshem I created new issuse, please take a look |
Version
nuxt-medusa
nuxt:
Reproduction Link
Steps to reproduce
What is Expected?
What is actually happening?
The text was updated successfully, but these errors were encountered: