You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im following the example from here to create a product: https://docs.medusajs.com/resources/commerce-modules/product
I see this: message: 'Product "Medusa Shirt" has variants with missing options: [Black Shirt]', name: 'Error', stack: 'Error: Product "Medusa Shirt" has variants with missing options: [Black Shirt]\n' +
With the example, there aren't options in product, Ive tried with it and changed like:
const products = await productService.createProducts([
{
title: "Medusahhhhhhhhhhhhhhhhhhhhh Shirt",
options: [
{
title: "Color121",
values: ["black1111"], // not from docs
},
],
variants: [
{
title: "Blackttttttttttttttt Shirt",
options: [
{
value: "black1111",
},
],
},
],
},
]);
still the same.
And like that:
const products = await productService.createProducts([
{
title: "Medusahhhhhhhhhhhhhhhhhhhhh Shirt",
options: [
{
title: "Color121", // Define the option title for the product
values: ["black1111"], // Provide the possible values for the option
},
],
variants: [
{
title: "Color121", // Variant title
option: 'black1111',
value: 'black1111',
options: ["black1111"],
},
],
},
]);
`error: Product "Medusahhhhhhhhhhhhhhhhhhhhh Shirt" has variants with missing options: [Color121]`
How can this issue be resolved?
...
Are you interested in working on this issue?
I would like to fix this issue
The text was updated successfully, but these errors were encountered:
What Medusa version and documentation are you using?
v2
Preliminary Checks
Issue Summary
Im following the example from here to create a product: https://docs.medusajs.com/resources/commerce-modules/product
I see this:
message: 'Product "Medusa Shirt" has variants with missing options: [Black Shirt]', name: 'Error', stack: 'Error: Product "Medusa Shirt" has variants with missing options: [Black Shirt]\n' +
With the example, there aren't options in product, Ive tried with it and changed like:
How can this issue be resolved?
...
Are you interested in working on this issue?
The text was updated successfully, but these errors were encountered: