fix(deps): Fix TS2786 ResizableBox JSX element type error#86
Merged
Conversation
Issue: - The CI pipeline fails with TS2786: 'ResizableBox' cannot be used as a JSX component. - The 'refs' property is missing in the type definitions for older class components (like ResizableBox) due to conflicting or mismatched React type versions across dependencies. - A .yarn/install-state.gz file was accidentally tracked, posing a merge conflict risk. Fix & Changes: - Added a 'resolutions' block in package.json to force '@types/react' and '@types/react-dom' to '^18.3.1'. This enforces a unified version of React types across all transitive dependencies, satisfying the type checker for older class components. - Updated package 'name' to 'MacMock' and 'description' to 'Mac OS Simulator'. - Corrected the repository URL to 'git@github.com:AmitRaikwar-in/MacMock.git'. - Added '.yarn/install-state.gz' to .gitignore and removed it from the Git index.
Issue: - Leftover development console.log and console.warn statements were cluttering the browser console. - Unnecessary logs in the fullscreen wrapper and UserLogin flow were triggering on standard UI interactions. Fix: - Removed debug logs to ensure a clean console output and improve code cleanliness. Changes: - App.tsx: Removed console.warn statements from the try-catch blocks handling fullscreen rejections, replacing them with empty catch handlers. - UserLogin.tsx: Removed console.log tracking login attempts/success states, and the console.warn for incorrect passwords from the handleLogin callback.
a753f0a to
adf477c
Compare
Issue: - The CI pipeline fails with TS2786: 'ResizableBox' cannot be used as a JSX component. - This is caused by a conflict between React 18 types and the older TypeScript version (4.9.5), which is too strict about component return types for older class components. Fix: - Upgraded TypeScript to ^5.4.5, which allows components to return React.ReactNode. - Unified and updated React types to ^18.3.3 across dependencies, devDependencies, and resolutions. - Moved @types/react and @types/react-dom from dependencies to devDependencies. - Updated @types/node to ^18.19.0 for better compatibility.
add1c3c to
438f8b3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Force @types/react and @types/react-dom to ^18.3.1 via resolutions to fix conflicting type definitions causing missing 'refs' property errors on older class components like ResizableBox. Also update package name, description, and repository URL.