-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Trying to link model throws '...is not linkable on service...' error #8147
Comments
hey @intrinsic-blockchain could you share you packages preview versions please |
@adrien2p thanks for checking. Here is what I have: |
Hi @intrinsic-blockchain , can you try removing the |
@shahednasser deleting the node_modules & yarn.lock did not help. The migrations run successfully only if I comment out the files src/links/vendor-admin.ts & src/links/vendor-order.ts |
Is the issue with running or generating the migration? So if you run |
Ok but if you run |
@intrinsic-blockchain would you be able to provide us a minimal repository that reproduces this issue? |
@intrinsic-blockchain can you try to download this file and use it as https://res.cloudinary.com/dza7lstvk/raw/upload/v1721221052/OpenApi/yarn_ivml2e.lock |
Unfortunately, using this yarn.lock file too didn't help. I still get the same error. I tried testing using yarn command as well as npm to install node modules, both the times see the same issue. |
I think I know what is the issues, I am preparing a pr so that you can test as well #8194 |
Would you be able to test the snapshot generate here please |
Yes issue is resolve thanks you very much @adrien2p |
wonderful, cc @shahednasser |
I ll close this issue as it is resolved for windows users as well 👍 |
@adrien2p thanks for all the support. I can confirm that doing an |
Hey all, how can have a page to register new vender before login |
Reference: https://docs.medusajs.com/v2/resources/recipes/marketplace/examples/vendors
Bug report
I run into the following error:
Error: Key vendor_id is not linkable on service marketplaceModuleService
at register (C:\Users\hanee\Documents\medusajs\medusa-preview\node_modules@medusajs\utils\src\modules-sdk\define-link.ts:153:13)
at MedusaApp_ (C:\Users\hanee\Documents\medusajs\medusa-preview\node_modules@medusajs\modules-sdk\src\medusa-app.ts:385:30)
at async MedusaAppMigrateGenerate (C:\Users\hanee\Documents\medusajs\medusa-preview\node_modules@medusajs\modules-sdk\src\medusa-app.ts:594:34)
at async runMedusaAppMigrations (C:\Users\hanee\Documents\medusajs\medusa-preview\node_modules@medusajs\medusa\src\loaders\medusa-app.ts:127:5)
at async main (C:\Users\hanee\Documents\medusajs\medusa-preview\node_modules@medusajs\medusa\src\commands\migrate.ts:100:5)
Describe the bug
After defining models and then creating links between models, when
npx medusa migrations generate
is run, I see the following error Error: Key vendor_id is not linkable on service marketplaceModuleServiceSystem information
Medusa version (including plugins): "preview" version
Node.js version: 20.5.1
Database: postgreSQL 16
Operating system: Windows 11
Steps to reproduce the behavior
npx medusa migrations generate marketplaceModuleService
is run, you see the error Error: Key vendor_id is not linkable on service marketplaceModuleServiceExpected behavior
I expect the migration to generate and when migration is run, it should run without errors.
Screenshots
The text was updated successfully, but these errors were encountered: