Comments (19)
@intrinsic-blockchain can you try to download this file and use it as yarn.lock
in your project, re-install the dependencies, and try again?
https://res.cloudinary.com/dza7lstvk/raw/upload/v1721221052/OpenApi/yarn_ivml2e.lock
from medusa.
wonderful, cc @shahednasser
from medusa.
hey @intrinsic-blockchain could you share you packages preview versions please
from medusa.
@adrien2p thanks for checking. Here is what I have:
@medusajs/[email protected]
@medusajs/[email protected]
from medusa.
Hi @intrinsic-blockchain , can you try removing the node_modules
and yarn.lock
files and trying again? This could be due to an outdated preview version.
from medusa.
@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
from medusa.
Is the issue with running or generating the migration? So if you run npx medusa migrations run
do the links also cause an error?
from medusa.
Issue is with generating the migration with the command npx medusa migrations generate marketplaceModuleService
. I think its unable to create the link between vendor & product models. Same with vendor-order models. It throws the Error: Key vendor_id is not linkable on service marketplaceModuleService error.
If its helpful this is what I have in vendor-product.ts in src/links folder,
hovering over MarketplaceModule.linkable.vendor shows this.
(property) vendor: {
id: {
serviceName: "marketplaceModuleService";
field: "vendor";
linkable: "vendor_id";
primaryKey: "id";
};
toJSON: () => {
serviceName: "marketplaceModuleService";
field: "vendor";
linkable: "vendor_id";
primaryKey: "id";
};
}
from medusa.
Ok but if you run npx medusa migrations run
(with the link files) you see no errors right?
from medusa.
I see this error WITH the links files
from medusa.
@intrinsic-blockchain would you be able to provide us a minimal repository that reproduces this issue?
from medusa.
@adrien2p here it is: https://github.com/intrinsic-blockchain/medusa-preview
from medusa.
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.
from medusa.
Getting same error while generating migrations
from medusa.
I think I know what is the issues, I am preparing a pr so that you can test as well #8194
from medusa.
Would you be able to test the snapshot generate here please
from medusa.
Yes issue is resolve thanks you very much @adrien2p
from medusa.
Related Issues (20)
- [FRAM-2573] [] Test Linear sync
- [FRAM-2575] Test Linear sync
- [FRAM-2576] test linear sync
- Lack of RTL Support in Medusa Admin UI HOT 1
- EISDIR: illegal operation on a directory HOT 5
- [v1.x] - Sales Channels feature is mandatory when retrieving a Product on the Admin API Route ? HOT 3
- Organizing categories leads to error HOT 13
- Cart without `completed_at` while completed HOT 4
- Not Able to create Variants inside the Product after the Product has been created HOT 1
- Injection zones are not suggested HOT 2
- Localization issue in admin dashboard UI HOT 6
- Create new medusajs project fails | PaymentModuleService HOT 5
- Issue running migration using mikro-orm: Error: SASL: SCRAM-SERVER-FIRST-MESSAGE: client password must be a string HOT 2
- Pull current remote links using useRemoteQueryStep. HOT 3
- medusa migrations command does not accept "generate" argument HOT 2
- Incorrect Popover z-index in Edit Variant modal HOT 6
- Configuration of Backend URL in Local File Service HOT 2
- Flickering when show prompt HOT 2
- Timestamp "created_at" can't be removed by using Fields Operator HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from medusa.