Closed vavilondev closed 16 hours ago
can i take this issue
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 3 days.
This issue was closed because it has been stalled for 3 days with no activity.
Bug report
Describe the bug
Cannot read properties of undefined (reading 'product')
When I try to select shipping option from shippo ( imported in medusa backend) withflat_rate
, everything works fine. But if it is calculated rate, then I have that error. I added some loggers to my backend and I see when I try to selectcalculated
rate option it send items array withoutvariant
field, but withvariant_id
, but in case offlat_rate
there isvariant
with full product descriptionvariant is required here: https://github.com/macder/medusa-fulfillment-shippo/blob/main/src/utils/formatters.js#L14
A clear and concise description of what the bug is.
System information
Medusa version (including plugins):
Node.js version: 18.17.0 Database: Pg Operating system: MacOS Browser (if relevant):