You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building the storefront with npm run build or next build I get the following error,
$ cd storefront
$ npm run build
> medusa-next@1.0.3 build
> next build
next.config.js {
"reactStrictMode": true,
"images": {
"domains": [
"medusa-public-images.s3.eu-west-1.amazonaws.com",
"localhost"
]
},
"env": {}
}
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
Bug report
Describe the bug
When building the
storefront
withnpm run build
ornext build
I get the following error,System information
Medusa version (including plugins): 1.3.7
Node.js version: 18
Database:
Operating system: Ubuntu 22.04
Browser (if relevant):
Steps to reproduce the behavior
storefront
The text was updated successfully, but these errors were encountered: