-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Unable to resolve module react/lib/ReactComponentWithPureRenderMixin
#923
Comments
Same issues with node 6.10.1, npm 4+, mac os. |
Also linked to #906 |
@hilkeheremans's tip fixed the issue. In your
then do Note: this is just a temporary fix. |
現在リリースされているものが Native 0.43 系で動かないため、 master から取得する react-navigation/react-navigation#923
@ryanbennettvoid @hilkeheremans suggest you don't use master. use the fix #809, commit hash 7edd9a7, until the next version is released.
|
Unfortunately, even with these fixes there are still plenty of Flow errors, e.g:
Most of these are from the return type of Current specs:
|
note: the below comment only affects flow users @joemckie Saw these errors as well. when i upgraded react-native to 0.43.1 using |
This work on me "react": "16.0.0-alpha.3", then rm -rf node_modules && npm install Clean ios/android build folder: rm -rf android/build && rm -rf ios/build After that, just run as usual: react-native run-ios or react-native run-android |
@thurt yeah it looks like there may have been some changes in how the |
这应该是v1.0.0-beta.7版本的小错误,忘记清除不必要的代码。Header.js中引入了ReactComponentWithPureRenderMixin,但后面未发现对这个引入的使用,只需要删除第12行的代码即可,亲测有效! |
I can verify that this works for me: {
"react": "16.0.0-alpha.6",
"react-native": "0.43.3",
"react-navigation": "git+https://github.com/react-community/react-navigation.git#7edd9a7"
} |
@RWOverdijk's solution works. It kind of sucks that this has to be so complicated considering I just upgraded my app to RN 0.43.3 and I'm getting warnings in the console about NavigationExperimental yet react-navigation doesn't seem to be ready for prime time. |
Easiest way to get a tab-bar plus title nav going. Needs custom master pin for now, see react-navigation/react-navigation#923 Also, react-native-swiper captures all swiping events, which means it’s not straightforward to add UI specific swipes such as “unfriend”.
Easiest way to get a tab-bar plus title nav going. Needs custom master pin for now, see react-navigation/react-navigation#923 Also, react-native-swiper captures all swiping events, which means it’s not straightforward to add UI specific swipes such as “unfriend”.
Great! This worked for me "dependencies": { |
This works for me when I perform a local build on my machine. But I'm having trouble to get it to work with Mobile Center.
|
Editing the |
@barvin How do you edit the |
|
I am going to close this issue since |
So, is the solution to do the following: "dependencies": {
"react": "^16.0.0-alpha.6",
"react-native": "^0.43.3",
"react-navigation": "git+https://github.com/react-community/react-navigation.git"
} Because when I do that my build fails :-/ |
@nonameolsson The following works for me:
You can also check out this tutorial which goes over using the different navigators (this is where the package.json excerpt is from). |
@nazmulidris Thanks! Will try that! |
@nonameolsson You're most welcome. Here's a link to the package.json file. |
@nazmulidris i also chang the dependencies but still get error |
Still the same error after change the dependencies in package.json { |
Confirmed working with using
I can now see icons after doing this too! :) |
|
Just using the repo url didn't solve it for me. I had to use a specific commit hash. |
This has been fixed in the latest version. Try using 1.0.0-beta.8 |
Guys, Im also facing the below error while trying to build an android app : I confused by reading all over the top to bottom in this page. Can anybody explain what steps needs to be followed in short? |
@Chandhru08 github is just automatically noting that he referenced this in another issue 🙂 In short, you just need to update your dependency (for react-navigation) to something a bit more recent than the current release that's on NPM - for example, see #923 (comment) |
@jamieparkinson I just have this confusion now, do I have to remove other dependency items which are present in Package.json file or should I add it with existing items? |
Just replace the
And that needs to be replaced with, for example:
Then you can follow the other steps in #923 (comment). I hope that works OK for you! |
Today I have encountered the same problem,Later, I found React-navigation": "1.0.0-beta.7 is not supported react-native version 0.43.4,so you can modify "react-native": "0.43.3" in package.json,
|
Setting
like @jamieparkinson said in my package.json just And I got down this entire rabbit hole over trying to use < FlatList > |
Finally the below worked for me : "react": "16.0.0-alpha.6",
"react-native": "0.43.4",
"react-navigation": "git+https://github.com/react-community/react-navigation.git#7edd9a7"
followed by |
Same here with
and
Already try with |
@lifez I am using the latter with 0.43.4 and it works fine! Did you try: And then reloading the screen multiple times? |
Why not just publish a new release to NPM with this cherrypicked? How do I do this with yarn? Changed package.json, deleted my lockfile, re-installed but still the same problem |
New release will be published today containing a fix. I am going to |
UnableToResolveError: Unable to resolve module
react/lib/ReactComponentWithPureRenderMixin
from/node_modules/react-navigation/src/views/Header.js
The text was updated successfully, but these errors were encountered: