-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Unable to run storefront in production because of build errors #7571
Comments
@sradevski I am also facing this issue with a completely clean (out of the box) install. I have created a clean install that replicates the issue here: matmar10/medusa-storefront Steps to reproduce:This is using Node
Expected behavior:
Actual behavior./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 | <div className="flex flex-col">
60 | <div className="flex w-full items-center justify-between"> Work-Around / FixYou can resolve the issue by leaving the first diff --git a/src/modules/products/components/product-tabs/accordion.tsx b/src/modules/products/components/product-tabs/accordion.tsx
index db8855a..03d837a 100644
--- a/src/modules/products/components/product-tabs/accordion.tsx
+++ b/src/modules/products/components/product-tabs/accordion.tsx
@@ -54,14 +54,12 @@ const Item: React.FC<AccordionItemProps> = ({
className
)}
>
- {/* @ts-expect-error */}
<AccordionPrimitive.Header className="px-1">
<div className="flex flex-col">
<div className="flex w-full items-center justify-between">
<div className="flex items-center gap-4">
<Text className="text-ui-fg-subtle text-sm">{title}</Text>
</div>
- {/* @ts-expect-error */}
<AccordionPrimitive.Trigger>
{customTrigger || <MorphingTrigger />}
</AccordionPrimitive.Trigger>
@@ -73,7 +71,6 @@ const Item: React.FC<AccordionItemProps> = ({
)}
</div>
</AccordionPrimitive.Header>
- {/* @ts-expect-error */}
<AccordionPrimitive.Content
forceMount={forceMountContent}
className={clx( |
I had this error as well with npm, I tried the fix above but got a different error - tried adding @medusajs/types but no luck. I deleted my .node-modules and then used yarn, yarn dev, and yarn build - it ran successfully and built the next app |
same here with node 20 |
I do
Thanks, you should edit : Keep the two firsts: one line 30 , one line 48 ** after it work |
same here with node 18.20.4 |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 3 days. |
This issue was closed because it has been stalled for 3 days with no activity. |
Preliminary Checks
Issue Summary
I get type error "Type error: Unused '@ts-expect-error' directive." when trying to run build so i can't use storefront in production mode
How can this issue be resolved?
No idea
Are you interested in working on this issue? Sorry I'm not a developer I am a e-commerce company holder testing medusa
The text was updated successfully, but these errors were encountered: