-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[Bug]: v2.0.6 An error occurred while preparing project: Error: Command failed: npx medusa db:migrate #10289
Comments
@jzyds can't seem to reproduce this. Can you provide a step by step instruction? |
Hi, same thing is happening.
|
After upgrading medusa and medusa cli, this the above error comes up. Are we meant to run it after starting medusa with npx medusa develop? |
Can you share the results of |
|
You seem to have |
Yup, that resolved it. Thank you. Steps: Edited Migration successful. |
If I can toss in my 2 cents, it would be a good idea to add this as note on V. 2.05 :) |
@whitewhitehu follow these steps exactly by @julianengel, including removing node modules :) |
yes i del node modules dir and re install |
Can you share the full error message you're getting? and the result of |
[Removed by admin] error msg :
|
Thats not correct @whitewhitehu, please run this exactly:
|
i'm sorry ,Wrong directory this node_modules/@medusajs file list
|
Can you also share the package.json? @whitewhitehu |
ok , this my package.json
|
Can't seem to be able to reproduce this, can you open a reproduction repo for me to try? |
Same issue. Removing node modules didn't help. In package.json only @medusajs/cli, no @medusajs/medusa-cli.
ls -l node_modules/@medusajs/
|
@alexanderoskin can you provide a reproducible repo? |
Run
|
@riqwan issue was on Node v23.1.0. Related issue nodejs/node#55538 After upgrading to v23.3.0 issue is solved. |
@alexanderoskin i see, I can't reproduce it. Can you share your npx / yarn , node and OS version? |
I see, good catch! 🚀 |
@whitewhitehu can you give this a shot? If not, can you share which versions you're using? |
Closing this for now, feel free to reopen if any of them don't work! :) |
Fix: #10318 |
Package.json file
Node.js version
v23.1.0
Database and its version
PostgreSQL 16
Operating system name and version
macos
Browser name
No response
What happended?
A error occurred while running npx medusa db:migrate
···
An error occurred while preparing project: Error: Command failed: npx medusa db:migrate
···
TypeError: Cannot set property path of # which has only a getter
Expected behavior
No error
Actual behavior
An error occurred
Link to reproduction repo
https://github.com/medusajs/medusa-starter-default
The text was updated successfully, but these errors were encountered: