medusajs / nextjs-starter-medusa

A performant frontend ecommerce starter template with Next.js 14 and Medusa.
https://next.medusajs.com/
MIT License
1.62k stars 435 forks source link

New Storefront Does Not Build #353

Open j540 opened 1 month ago

j540 commented 1 month ago

Node v22.0.0

New storefront clone does not build. Is this just me or did something change about the repo?

`npm run build

medusa-next@1.0.3 build next build

next.config.js {} ▲ Next.js 14.0.4

Browserslist: caniuse-lite is outdated. Please run: npx update-browserslist-db@latest Why you should do it regularly: https://github.com/browserslist/update-db#readme Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest --update-db Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating ✓ Creating an optimized production build
✓ Compiled successfully Linting and checking validity of types ..Failed to compile.

./src/modules/products/components/product-tabs/accordion.tsx:57:8 Type error: Unused '@ts-expect-error' directive.

55 | )} 56 | >

57 | {/ @ts-expect-error /} | ^ 58 | 59 |

60 |
Linting and checking validity of types ...% `

anzweidrej commented 1 month ago

Hi @j540

Since those declarations are probably leftovers for testing purposes, I guess you can just remove all those "@ts-expect-error" lines from ./src/modules/products/components/product-tabs/accordion.tsx to proceed with build phase.

Br,