I’m attempting to setup a store that has different variations of the same product. During a manual product creation I have all the required fields filled out but get an error when trying to save as shown in the screen shot below. I have had this error with a local development instance as well before.
Expected behavior
Save product and variants as a draft or publish
Actual behavior
Upon clicking “save as draft” or “publish” the following error is produced and will not let anything be saved:
Error: Undefined is not an object (evaluating ‘n.inventory.map’)
Package.json file
Node.js version
v22 via Railway
Database and its version
PostgreSQL Latest via Railway
Operating system name and version
iPadOS 17.7.1
Browser name
Safari
What happended?
I’m attempting to setup a store that has different variations of the same product. During a manual product creation I have all the required fields filled out but get an error when trying to save as shown in the screen shot below. I have had this error with a local development instance as well before.
Expected behavior
Save product and variants as a draft or publish
Actual behavior
Upon clicking “save as draft” or “publish” the following error is produced and will not let anything be saved: Error: Undefined is not an object (evaluating ‘n.inventory.map’)
Link to reproduction repo
https://github.com/YoungCR/medusajs-2.0-for-railway-boilerplate