-
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
Chakra UI set up is incompatible with initial project template #5601
Comments
We're discussing this here: #5570 (comment) As a temporary workaround, you can change this line in -"@chakra-ui/react": "^2.0.2",
+"@chakra-ui/react": "^1.3.0", |
FYI for anyone coming here, I got this working with: -"@chakra-ui/react": "^2.0.2",
+"@chakra-ui/react": "^1.8.8", Full config: "dependencies": {
"@chakra-ui/icons": "^2.0.0",
"@chakra-ui/react": "^1.8.8",
...
},
"devDependencies": {
"@chakra-ui/storybook-addon": "^1.0.3"
} |
Is there already an upgrade plan to React 18 or are there any showstoppers for that? Asking b/c we would love to update our existing project to Chakra UI 2.x to utilize the new storybook addon. |
Creating a new project with
yarn create redwood-app <name>
followed by setting up the project with Chakra UI causes errors in the web project.It seems that the version of Chakra being installed by the setup CLI is dependent on
useId
from React which was only introduced in React 18.Upgrading React to version 18 in the web project seems to resolve this.
Steps to reproduce
yarn create redwood-app chakra-test
cd chakra-test
yarn rw setup ui chakra-ui
yarn rw dev
Expected outcome
The Redwood welcome page is displayed
Actual outcome
An error is thrown
The text was updated successfully, but these errors were encountered: