Closed zohfur closed 1 month ago
Issue is resolved by installing graphql via npm install graphql
, but https://docs.medusajs.com/v2 does not label this as a requirement / prerequisite and the script does not install it on its own, so still a bug IMO.
Issue is resolved by installing graphql via
npm install graphql
, but https://docs.medusajs.com/v2 does not label this as a requirement / prerequisite and the script does not install it on its own, so still a bug IMO.
I had the same issue. Did not solved the issue installig npm install graphql
neither npm install -g graphql
. I copied manually the graphql directory into preview package installation cache. For example:
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\Users\\USER\\AppData\\Local\\npm-cache\\_npx\\faeeb6a9cda0cafd\\node_modules\\@medusajs\\utils\\dist\\common\\graphql-relations-entity-map.js'
]
The target folder where you may copy the graphql package would be: C:\\Users\\USER\\AppData\\Local\\npm-cache\\_npx\\faeeb6a9cda0cafd\\node_modules
.
I hope this workaround will help.
Thank you for reporting this. We're looking to resolve this issue soon and push out a new release to fix it
Issue should be fixed now, can you try again?
Issue should be fixed now, can you try again?
I can confirim the latest prview release's installation process works as expected. (create-medusa-app@1.2.9-preview-20240925062017)
Great thanks! WIll close this issue, feel free to re-open it @zohfur if you keep facing it.
Bug report
Describe the bug
Upon trying to run
npx create-medusa-app@preview
, npx installscreate-medusa-app@1.2.9-preview-20240924183656
which promptly crashes.System information
Medusa version (including plugins): create-medusa-app@1.2.9-preview-20240924183656 Node.js version: v22.8.0 Database: postgres:12.20-alpine3.20 Operating system: Windows 11 Pro build 22631
Steps to reproduce the behavior
npx create-medusa-app@preview
ornpx create-medusa-app@1.2.9-preview-20240924183656
Code snippets