#Gettings errors while creating build
9 messages · Page 1 of 1 (latest)
Not with that info. You need to post the actual errors
Sure
info - Linting and checking validity of types ..Failed to compile.
./src/lib/data/index.ts:20:3
Type error: Type 'PricedProduct[] | never[]' is not assignable to type 'Product[]'.
Type 'PricedProduct[]' is not assignable to type 'Product[]'.
Property 'beforeInsert' is missing in type 'PricedProduct' but required in type 'Product'.
18 | .catch((_) => [])
19 |
20 | return products
| ^
21 | }
22 |
23 | // get global data used in header and footer
error Command failed with exit code 1.
This issue will remain till next release?
No, you need to fix it yourself in your storefront. Or you can pull the changes from the storefront starter.
For my storefront I just copied over the changes manually from this latest commit:
https://github.com/medusajs/nextjs-starter-medusa/commit/fc83e9fda9242d7f5b96ec99f61a7c21fc4bcab6
Thanks! Latrapo
Thanks! kosek