#Gettings errors while creating build

9 messages · Page 1 of 1 (latest)

rugged atlas
#

Hi, hope you guys are doing great. i have upgraded my frontend and after updating to latest version i am getting typeScript errors, can you guys help me to start my work again.

shell matrix
#

Not with that info. You need to post the actual errors

rugged atlas
#

Sure

rugged atlas
#

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.

shell matrix
rugged atlas
#

This issue will remain till next release?

pearl belfry
rugged atlas
#

Thanks! Latrapo

rugged atlas
#

Thanks! kosek