-
Notifications
You must be signed in to change notification settings - Fork 32
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
[BUG] When upgrading to React18/Chakra2: createStylesContext is not a function #159
Comments
Hmm that is strange, that function is definitely available in
If none of those work I can take a deeper look into it. I see you have yarn listed under your |
Thanks for the quick response! We are using Yarn
And the browser error leads me here: |
I'm having the exact same issue described above ! |
Thanks @kafiln I think I've figured out what's causing issue but I'm still not sure specifically why it's happening. The part I'm confused about is why a version of I actually just tried making a test app with yarn, installing all of the dependencies from scratch, and I'm not seeing this issue. Could you search your Regardless of your answer, I'm planning to revert back to the |
Ok, I ended up fixing it by just removing the need for a styles context in the first place. The change has been published in v4.1.4. Before upgrading to it @benjamincharity I'm still curious about my question in my last comment, whether or not you have any instances of And If either of you are still having any issues after upgrading, feel free to re-open! |
Sorry for the delay @csandman - I just added this package back to my Chakra v2 app and DO see older versions of chakra system in my lock file. Looking through our dependencies and tracked it down to this item:
This was forcing a 1.x install of chakra system. Once I removed that package, Thanks again for looking into this! |
I saw this issue with |
@matthewrose it does seem odd, but my solution was just to stop using the old and new methods entirely just to not have to think about it. The Chakra docs could definitely use some work though... |
Description
After upgrading to React 18 / Chakra v2 I am hitting one last issue from this package. I am seeing this message:
I've tried rolling back but just get
useContext
errors. Any tips here would be great; I'd love to complete this upgrade :)package.json
chakra-react-select Version
4.1.3
Link to Reproduction
Of course this is a private repo so no public repro 😞
TypeScript?
Steps to reproduce
Operating System
Additional Information
The text was updated successfully, but these errors were encountered: