Skip to content
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

ApolloError: ProductVariant optionIds must include one optionId from each of the groups #3390

Open
max-bruhn opened this issue Mar 2, 2025 · 0 comments
Labels
type: bug 🐛 Something isn't working

Comments

@max-bruhn
Copy link

Describe the bug
When saving a product with variant, I get the error:

ApolloError: ProductVariant optionIds must include one optionId from each of the groups: test
at new T (index.js:39:28)
at QueryManager.js:126:47
at Ui (asyncMap.js:22:31)
at asyncMap.js:11:72
at new n (zone.js:1425:21)
at Object.then (asyncMap.js:11:24)
at Object.next (asyncMap.js:24:49)
at Ne (module.js:132:18)
at ge (module.js:176:3)
at Te.next (module.js:225:5)

I saw someone else had this error 2 years ago:
#2326

To Reproduce
Steps to reproduce the behavior:

Fresh install, Create new product.
if i dont touch the variants it works but if I add an Option (like in this example: test) and Option values
when I then save I get that error.

What is also weird, when I then go back to the Products overview I see many new products added with 0 variants.

Expected behavior
Should save the product variant without issue.

@vendure/core": "3.1.3"
Nodejs version: 22.12.0
Database: Postgres

Image Image
@max-bruhn max-bruhn added the type: bug 🐛 Something isn't working label Mar 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant