-
Notifications
You must be signed in to change notification settings - Fork 1k
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(deps): bump setup of Chakra UI to V2 #7649
chore(deps): bump setup of Chakra UI to V2 #7649
Conversation
16 replays were recorded for b28c0d1. 16 Passed
requireAuth graphql checks
|
9bd78ce
to
302159f
Compare
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.
Looks good @virtuoushub, and looks like this really is all the changes we'll have to make on the framework's side. There's a few more breaking changes, but those are only relevant if you're using specific Chakra components. We'll just have to refer users to Chakra's migration guide in the release notes.
> Version 2 of Chakra UI is only compatible with React 18. If you are still needing to use React 17 or earlier, please use version 1 of Chakra UI. see also: - https://chakra-ui.com/getting-started - redwoodjs#4992 (comment) - redwoodjs#5614
Co-authored-by: Dominic Saadi <[email protected]>
6e55215
to
b28c0d1
Compare
The following paragraphs are written for a potential benefit to @virtuoushub and @jtoar - no need to comment (or even read) any of that: I will test the Redwood 4.2 (do I need to get some newer version ?) with Chakra latest and report back here. The recommendation "If you are still needing to use React 17 or earlier, please use version 1 of Chakra UI." may not be very helpful as I spent some time to try that path and the documentation for Chakra v1 and Redwood ( Running the minimal RedwoodJS app results with the message:
This is not surprising, since my RW app defined the dependencies as
My interpretation is that @jtoar's comment suggests that the current RW release does not address the React's 18 issue Also notice to @dennemark with respect to his comment at discord
I believe that you did not look at the devtools console, right? |
Hi @adriatic, thanks for your comment. Is there something specific with this PR which is causing issues with your project? Also friendly reminder React 18 support in Redwood is currently experimental, so please use it at your own risk.
Redwood 5+ (
Is this documented somewhere? Was not aware of a broken Chakra integration. Also what is meant by broken? is it that
Shows up in the console? Because depending on the version combinations used, that is the expected behavior.
While the current Looking at your https://github.com/adriatic/rw-chakra I did not notice any Please either upgrade redwood to |
results with adding the Chakra UI v 2.x libraries. I discussed this with Chakra team member Lazar Nikolov
|
Added later:
|
* 'main' of github.com:redwoodjs/redwood: (21 commits) chore(deps): update dependency @types/uuid to v9.0.1 (redwoodjs#7680) chore(deps): update dependency @replayio/playwright to v0.3.23 (redwoodjs#7677) chore(deps): update dependency @npmcli/arborist to v6.2.3 (redwoodjs#7675) chore(deps): update dependency @envelop/types to v3.0.2 (redwoodjs#7674) chore: add codemod for clerk fix in v4.2.0 (redwoodjs#7676) chore(deps): update dependency @clerk/types to v3.28.1 (redwoodjs#7652) chore(deps): update dependency @envelop/testing to v5.0.6 (redwoodjs#7673) Update directives.md (redwoodjs#7670) fix(deps): update dependency vscode-languageserver-types to v3.17.3 (redwoodjs#7636) Fix `yarn rw exec` to set nonzero exit code on error (redwoodjs#7660) fix(deps): update dependency core-js to v3.28.0 (redwoodjs#7666) fix(deps): update dependency @clerk/clerk-sdk-node to v4.7.4 (redwoodjs#7663) fix(deps): update dependency vite to v4.1.3 (redwoodjs#7664) fix(deps): update dependency @fastify/url-data to v5.3.1 (redwoodjs#7665) fix(deps): update dependency yargs to v17.7.1 (redwoodjs#7667) fix(clerk): Remove privateMetadata property from getCurrentUser (redwoodjs#7668) chore(deps): update dependency esbuild to v0.17.10 (redwoodjs#7662) chore(deps): bump setup of Chakra UI to V2 (redwoodjs#7649) Forms: Export EmptyAsValue (redwoodjs#7656) Update useRequireAuth docs to v4 auth (redwoodjs#7646) ...
Hi again @adriatic, fwiw due to formatting I had a really difficult time following your response thread. That being said to address:
I am unable to reproduce this behavior. Do you have a reproduction repo? I am unable to help without one. For reference #5614 is used in Redwood v4.x and below (for the most part) and is there for the explicit purpose to pin Chakra UI to v1. Here is what I see when running that command: ➜ yarn redwood setup ui chakra-ui
✔ Installing packages...
✔ Install @chakra-ui/react@^1, @emotion/react@^11, @emotion/styled@^11, framer-motion@^6
... resulting {
...
"dependencies": {
"@chakra-ui/react": "^1",
"@emotion/react": "^11",
"@emotion/styled": "^11",
"@redwoodjs/forms": "4.2.0",
"@redwoodjs/router": "4.2.0",
"@redwoodjs/web": "4.2.0",
"framer-motion": "^6",
"prop-types": "15.8.1",
...
},
...
} In case it helps clarify things, the PR we are currently commenting on bumps Chakra UI to V2 because we will be bumping to React 18 in Redwood v5 (#4992). Currently there is no way to specify which version of a library to install via If there was something missing in that document that you think others can benefit from, I encourage you to document it (can be done here: https://github.com/redwoodjs/redwood/blob/main/docs/docs/cli-commands.md#setup-ui). If you want to explicitly set a version, please use For example I modified their example slightly so that we pin chakra to v1. fwiw this is what #5614 does:
Also while I get your comments are Chakra related, I think we are getting into unrelated territory to this PR. Unless it is related to this PR, if you think something is broken; please open a separate issue and add additional references where necessary. |
see also:
@chakra-ui/react
#5614