-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[Urgent] Doesn't support the latest builds of React-Native and React #1083
Comments
The https://github.com/infinitered/ignite-ir-boilerplate boilerplate has been updated to 0.45.1. Just waiting a release. You can also control the version of react native by |
Hi @skellock, i have a related issue with Ignite v2.0.0. Command: Warning from
Here is my
Am I doing something wrong? Thanks |
@edolix I can confirm this on a similar issue. On a new ignite 2.0.0 project I get following on first install:
|
Apparently the solution is to either downgrade react, or wait for RN 0.16 to become stable, as enzyme does not support alpha releases: |
@aschrijver I have downgraded React but the results are a lot of other dependencies error/warning. You have to downgrade almost "all" libraries |
Yes, I am also in the process of downgrading. Not happy about it. Getting all kinds of issues. BTW react-native is not going to change relying on alpha's. Here's their explanation: enzymejs/enzyme#893 (comment) |
@skellock Please reopen as the issue is still at play. |
@edolix I found the issue with the tests. I had to add "test": "NODE_ENV=test jest -u --no-cache" Found it out by accident, while sorting out the nightmare of getting VS Code to hit my breakpoints while debugging. Still working on it.. [UPDATE: Not sure on this anymore. Encountered millions of errors, red screens and other horrors setting up the stack. Terrible dev experience. Can now finally do some work after downgrading Node from v8 to v7 (see: stackoverflow question).] |
There’s a lot of drift in this issue. For that reason I’m going to keep this closed. Let me address what are legit issues tho. So ya, enzyme is not working with the latest React Native. It is currently being rewritten and will be available soon though. This is frustrating to me because we were happy with how our testing was going, and now we can’t use it short term. 🙁 The warnings you see when installing are because the peer dependencies of those libs don’t match. In the case of As far as red screens are concerned, I’d need to see the specific traces to help. One thing that snags me often when switching React Native versions is caches. With VS Code debugging in Node 8, yes that’s a problem. Both the node and code teams are awesome and we should see a fix soon. Addressing the horrible dev experience when all this happens, yes. It sucks. We (as a community) can do better. One of my favourite talks at Chain React a few days ago was by Brent Vatne pointing this out. That we need to do better. React Native can be frustrating to deal with fragile deps. Even the panel talk pointed this out. Good news is: we (the community at large) care. Speaking more to Ignite though. When we get foot swept by our dependencies, we need to get back up faster. We can improve here for sure. The enzyme breakage was particularly painful. |
Thanks for your help and background info! I understand your frustrations all too well, and I'll also try to contribute to the community by linking issues, answering (my own and others) stackoverflow questions, etc. For myself I've been busy about a week now trying to set things up, and no productive line of code written yet. Now looking into debugging setup (2 days, and counting). About adding the |
@skellock Thanks for the support and info and thanks @aschrijver too! |
yarn add react-native
after that
yarn add react@16.0.0-alpha.12
lets say we can ignore and do not use
enzyme, react-test-renderer, reactotron-react-native
butreact-dom
is important.Steps to reproduce it:
The text was updated successfully, but these errors were encountered: