Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Storefront Does Not Build #353

Open
j540 opened this issue Aug 4, 2024 · 1 comment
Open

New Storefront Does Not Build #353

j540 opened this issue Aug 4, 2024 · 1 comment

Comments

@j540
Copy link

j540 commented Aug 4, 2024

Node v22.0.0

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

`npm run build

[email protected] 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 | <AccordionPrimitive.Header className="px-1">
59 |


60 |

Linting and checking validity of types ...% `

@anzweidrej
Copy link

anzweidrej commented Aug 5, 2024

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,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants