Closed Kushal-starr closed 4 months ago
I am experiencing the same issue when running migrations in version 1.20 with:
npx medusa migrations run
Nothing has changed regarding the project structure and the error seems to be coming directly from @medusajs
.
Could not resolve module: cartCartSalesChannelSalesChannelLink. Error: Loaders for module cartCartSalesChannelSalesChannelLink failed: Class extends value undefined is not a constructor or null
Error initializing link modules. TypeError: Cannot set properties of undefined (setting '__definition')
at MedusaModule.bootstrapLink (node_modules/@medusajs/modules-sdk/dist/medusa-module.js:234:44)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async initialize (node_modules/@medusajs/link-modules/dist/initialize/index.js:90:24)
at async initializeLinks (node_modules/@medusajs/modules-sdk/dist/medusa-app.js:92:32)
at async MedusaApp (node_modules/@medusajs/modules-sdk/dist/medusa-app.js:165:81)
[like] Kushal Jain reacted to your message:
From: Adam Honoré @.> Sent: Wednesday, March 6, 2024 5:31:59 PM To: medusajs/medusa @.> Cc: Kushal Jain @.>; Author @.> Subject: Re: [medusajs/medusa] Class extends value undefined is not a constructor or null (Issue #6553)
You don't often get email from @.*** Learn why this is importanthttps://aka.ms/LearnAboutSenderIdentification
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
I am experiencing the same issue when running migrations in version 1.20 with:
npx medusa migrations run
Nothing has changed regarding the project structure and the error seems to be coming directly from @medusajs.
Could not resolve module: cartCartSalesChannelSalesChannelLink. Error: Loaders for module cartCartSalesChannelSalesChannelLink failed: Class extends value undefined is not a constructor or null
Error initializing link modules. TypeError: Cannot set properties of undefined (setting '__definition') at MedusaModule.bootstrapLink @./modules-sdk/dist/medusa-module.js:234:44) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async initialize @./link-modules/dist/initialize/index.js:90:24) at async initializeLinks @./modules-sdk/dist/medusa-app.js:92:32) at async MedusaApp @./modules-sdk/dist/medusa-app.js:165:81)
— Reply to this email directly, view it on GitHubhttps://github.com/medusajs/medusa/issues/6553#issuecomment-1981419541, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A2SSHDYDHS7ZHAW6HIY55RDYW5HI7AVCNFSM6AAAAABEBJQCDWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBRGQYTSNJUGE. You are receiving this because you authored the thread.Message ID: @.***>
Kushal Jain Associate Software Engineer @.*** [facebook icon]https://maropost.com/ [facebook icon] https://www.facebook.com/maropost [twitter icon] https://twitter.com/Maropost [youtube icon] https://www.youtube.com/channel/UClaLFLWHKnpPleLsX5ew6yA [linkedin icon] https://ca.linkedin.com/company/maropost [instagram icon] https://www.instagram.com/maropost/ [Banner]https://maropost.com/get-started This message is confidential. It may also be privileged or otherwise protected by work product immunity or other legal rules. If you have received it by mistake, please let us know by e-mail reply and delete it from your system; you may not copy this message or disclose its contents to anyone. Please send us by fax any message containing deadlines as incoming e-mails are not screened for response deadlines. The integrity and security of this message cannot be guaranteed on the Internet.
Hey, thanks for the report! Since v2 brought a lot of architectural and API changes on the backend, we will be closing this ticket since it no longer applies to our new setup, or the issue has already been fixed. If you are still facing issues with v1, please open a new ticket and we will address it as soon as possible. Thanks! 🙏
While I'm running my staging server giving me the below error:
**Could not resolve module: cartCartSalesChannelSalesChannelLink. Error: Loaders for module cartCartSalesChannelSalesChannelLink failed: Class extends value undefined is not a constructor or null
Error initializing link modules. TypeError: Cannot set properties of undefined (setting '__definition') at MedusaModule.bootstrapLink (/var/sites/medusa-staging/medusa-api/node_modules/@medusajs/modules-sdk/dist/medusa-module.js:234:44) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async initialize (/var/sites/medusa-staging/medusa-api/node_modules/@medusajs/link-modules/dist/initialize/index.js:90:24) at async initializeLinks (/var/sites/medusa-staging/medusa-api/node_modules/@medusajs/modules-sdk/dist/medusa-app.js:92:32) at async MedusaApp (/var/sites/medusa-staging/medusa-api/node_modules/@medusajs/modules-sdk/dist/medusa-app.js:165:81)**
With the same configs my local running fine.
I haven't done any changes related to cart/salechannel mentioned above in the error.
Any helping hand will be appreciated!!!!!!