-
Notifications
You must be signed in to change notification settings - Fork 31
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
chore: upgrade react version from 18 to 19 #63
Conversation
"require": "./dist/index.js", | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.cjs", | ||
"import": "./dist/index.js", | ||
"source": "./src/index.ts", | ||
"default": "./dist/index.js" | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"main": "./dist/index.js", | ||
"module": "./dist/index.mjs", | ||
"main": "./dist/index.cjs", | ||
"module": "./dist/index.js", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you know why these changes are needed? the previous values match what we have in the monorepo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to run the build script with no success, with this error message
`when I run yarn build I have these errors
[ERROR]
- package.json with 'type: "module"' - 'exports["."].require' must end with ".cjs"
- package.json with 'type: "module"' - 'exports["."].import' must end with ".js"`
So I followed the error message and fixed the extensions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you!
What does it do?
Upgrade the react and react dom version from 18 to 19 (and react testing library to v16)
Why is it needed?
To uniform the react versions in the strapi repos
How to test it?
Use the blocks-react-renderer in your FE to consume the Blocks text editor data