Draft
Conversation
- Update React and React types to ^19.0.0 - Update TypeScript to ^5.9.3 - Update all dev dependencies (Rollup, ESLint, Prettier, etc.) - Update peerDependencies to support React 16-19 - Replace deprecated rollup-plugin-typescript2 with @rollup/plugin-typescript - Add standalone tsconfig.json without deprecated @samuelmeuli/tsconfig - Fix TypeScript strict mode errors (definite assignment assertions) - Update build scripts for modern Storybook - Add missing Storybook dependencies and babel presets Co-authored-by: bianchimro <234869+bianchimro@users.noreply.github.com>
- Remove babel config to use Storybook's default babel setup - Convert story files to use React.createElement instead of JSX to avoid export-order-loader parsing issues - Move decorator to preview.jsx using createElement API - Rename preview to .jsx extension - Successfully build both main library and Storybook Co-authored-by: bianchimro <234869+bianchimro@users.noreply.github.com>
Co-authored-by: bianchimro <234869+bianchimro@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update project dependencies and convert to TypeScript
Update dependencies for React 19 support
Oct 25, 2025
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.
Updates project dependencies to support React 19 while maintaining backward compatibility with React 16-18.
Dependencies
^16.9.23→^19.0.0(types:19.2.2)3.8.2→5.9.31.31.1→4.52.55.3.14→8.5.3^16.0.0→^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0Build System
rollup-plugin-typescript2with@rollup/plugin-typescripttsconfig.json(removed@samuelmeuli/tsconfigdependency)Storybook Migration
Storybook 8's
export-order-loaderparses files before babel transformation, causing JSX syntax errors. Workaround:Migrated to modern CSF format with separate
main.jsandpreview.jsxconfiguration files.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
storybook.js.org/usr/local/bin/node /home/REDACTED/work/react-magnifier/react-magnifier/node_modules/.bin/storybook build --output-dir ./dist-storybook/(dns block)/usr/local/bin/node /home/REDACTED/work/react-magnifier/react-magnifier/node_modules/.bin/storybook dev --port 3000(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.