generated from blockmatic-icebox/powerstack
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Description
We are encountering build-blocking TypeScript errors after updating to the latest versions of React, TypeScript, and Next.js. Temporary @ts-ignore
flags have been added to suppress these errors, but this is not a sustainable solution as it masks underlying issues with the TypeScript configuration.
Affected Areas:
- Files where
@ts-ignore
is used, such as:packages/ui/components/base/tooltip.tsx
packages/ui/components/base/dialog.tsx
apps/web/components/ui/tooltip.tsx
apps/web/components/ui/dialog.tsx
- Other components interacting with
React.ElementRef
andReact.ComponentPropsWithoutRef
.
Possible Causes:
- Inconsistent
tsconfig.json
settings across packages, especially withcompilerOptions
. - Conflicting
moduleResolution
settings ("node"
,"bundler"
,"NodeNext"
) leading to type conflicts. - Outdated or mismatched versions of
@types/react
,typescript
, andreact
.
Action Items
-
Audit TypeScript Configurations:
- Align
tsconfig.json
files across the project to use consistentcompilerOptions
. - Ensure that
moduleResolution
is set appropriately for the project's needs.
- Align
-
Update Dependencies:
- Verify and update the versions of
typescript
,react
,next
, and their corresponding type definitions. - Make sure that all packages reference compatible versions.
- Verify and update the versions of
-
Remove
@ts-ignore
Flags:- After resolving configuration issues, remove the
@ts-ignore
comments to enforce proper type checking.
- After resolving configuration issues, remove the
-
Testing:
- Perform a full build and run the test suite to confirm that the issues have been resolved.
References
- Pull Request: #425
- Commit: c7ac4eb
- Related Comment: Link to your comment
Assignee
Metadata
Metadata
Assignees
Labels
No labels