medusajs / medusa

The world's most flexible commerce platform.
https://medusajs.com
MIT License
26.26k stars 2.67k forks source link

Unable to get started with medusajs #9836

Closed olawale-o closed 5 days ago

olawale-o commented 1 month ago

Bug report

Describe the bug

Could not resolve module: Workflows. Error: Loaders for module Workflows failed: Invalid URL

System information

Medusa version (including plugins): Node.js version: v20.17.0 Database: postgresSQL Operating system: MacOs BigSur Browser (if relevant):

Steps to reproduce the behavior

  1. npx create-medusa-app@latest
  2. sudo yarn dev
  3. See error Screen Shot 2024-10-28 at 11 23 33 Screen Shot 2024-10-28 at 11 23 40
Mohmdev commented 1 month ago

I had the same problem. After a series of trials and errors, I found the reason to be NODE_ENV. Since a few updates back, we were able to set it as production and I had kept it that way. However, since some of the recent updates, including the latest 2.0.0 and 2.0.1, NODE_ENV=production doesn't work anymore. The server starts successfully only when NODE_ENV is set to development. I could be wrong though, but this is how I was able to get mine to start.

olawale-o commented 1 month ago

Hi @Mohmdev It is not working. Thank you for the response. I also have an issue of starting the server with sudo yarn dev. command I wouldnt know if that is the standard. However, this is my first time of working with medusa.

medusastore commented 1 month ago

Same problem here, server on deplyoment only start when node_env is set to development, when set to production in worker mode server this error appear.

sradevski commented 1 week ago

Hi @olawale-o can you please upgrade to the latest version and see if this is still an issue?

sradevski commented 5 days ago

Closing as there hasn't been any response to it.