error: property stock_location should not exist
Error: property stock_location should not exist
at /Users/xxx/backend/node_modules/@medusajs/medusa/dist/utils/validator.js:153:31
at step (/Users/xxx/backend/node_modules/@medusajs/medusa/dist/utils/validator.js:44:23)
at Object.next (/Users/xxx/backend/node_modules/@medusajs/medusa/dist/utils/validator.js:25:53)
at fulfilled (/Users/xxx/backend/node_modules/@medusajs/medusa/dist/utils/validator.js:16:58)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
type: 'invalid_data',
code: undefined,
date: 2024-03-27T12:30:25.706Z
}
Steps to reproduce
Error is shown
However if in the variants section you edit the variant and do the same no errors
https://github.com/medusajs/medusa/assets/1039118/a286a876-30b4-4e0f-8ef4-3d7e414422c6
error
env