You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tl;dr:
For now, use react-navigation's master branch here on github, and make sure you manually upgrade React to the dependency version specified by RN 0.43.
domisolo, robhogan, JodusNodus, CvBlixen, atshakil and 3 more
Unfortunately, even with these fixes there are still plenty of Flow errors, e.g:
node_modules/react-navigation/src/views/CardStack.js:534
534: <SceneView
^ property `navigation`. Property not found in
521: <View style={styles.container}>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ props of React element `View`
node_modules/react-navigation/src/views/CardStack.js:534
534: <SceneView
^ property `screenProps`. Property not found in
521: <View style={styles.container}>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ props of React element `View`
@joemckie Saw these errors as well. when i upgraded react-native to 0.43.1 using react-native-git-upgrade it appeared to bump my flow-bin version from 0.38.0 -> 0.40.0. before this upgrade i did not have flow errors coming from react-navigation.
@thurt yeah it looks like there may have been some changes in how the React$Element or React$Class type is handled in between those versions? If it's not on the radar of the maintainers I'll take a look into it when I get a chance.
这应该是v1.0.0-beta.7版本的小错误,忘记清除不必要的代码。Header.js中引入了ReactComponentWithPureRenderMixin,但后面未发现对这个引入的使用,只需要删除第12行的代码即可,亲测有效!
Delete node_modules\react-navigation\src\views\Header.js line 12 codes:
import ReactComponentWithPureRenderMixin from 'react/lib/ReactComponentWithPureRenderMixin';
jszcl, MarnoDev, fredsun, diegocstn, zaureus and 12 moretanys123, OhCoder, jack-hate-titanic, locorocorolling and beiyu98fredsun, immatt2015 and OhCoderzenyr, TyrealGray and malinkangMarnoDev, fredsun, immatt2015, OhCoder, MrBackKom and 1 more
Guys, Im also facing the below error while trying to build an android app :
UnableToResolveError: Unable to resolve module react/lib/ReactComponentWithPureRenderMixin from c:\Users\chand\manager\node_modules\react-addons-pure-render-mixin\index.js: Module does not exist in the module map or in these directories:
c:\Users\chand\manager\node_modules\react\lib
, c:\Users\chand\node_modules\react\lib
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)
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?
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,
then
rm -rf node_modules && npm install ,
rm -rf android/build && rm -rf ios/build ,
3.react-native run-ios or react-native run-android
thank you very much @Dhrin
like @jamieparkinson said in my package.json just fixed a slew of errors that just attacked me, and none of them looked related. Involved LinkedStateMixin, ReactComponentTreeHook, it was just weird.
And I got down this entire rabbit hole over trying to use < FlatList >
Activity
VictorVolovik commentedon Apr 5, 2017
Same issues with node 6.10.1, npm 4+, mac os.
hilkeheremans commentedon Apr 5, 2017
See #901 and after that see #908
tl;dr:
For now, use
react-navigation
's master branch here on github, and make sure you manually upgrade React to the dependency version specified by RN 0.43.hilkeheremans commentedon Apr 5, 2017
Also linked to #906
ryanbennettvoid commentedon Apr 5, 2017
@hilkeheremans's tip fixed the issue.
In your
package.json
, replace the react-navigation dependency with this:then do
npm install
Note: this is just a temporary fix.
thurt commentedon Apr 6, 2017
@ryanbennettvoid @hilkeheremans suggest you don't use master.
use the fix #809, commit hash 7edd9a7, until the next version is released.
joemckie commentedon Apr 6, 2017
Unfortunately, even with these fixes there are still plenty of Flow errors, e.g:
Most of these are from the return type of
_renderInnerCard
.Current specs:
thurt commentedon Apr 7, 2017
note: the below comment only affects flow users
@joemckie Saw these errors as well. when i upgraded react-native to 0.43.1 using
react-native-git-upgrade
it appeared to bump my flow-bin version from 0.38.0 -> 0.40.0. before this upgrade i did not have flow errors coming from react-navigation.Dhrin commentedon Apr 7, 2017
This work on me
"react": "16.0.0-alpha.3",
"react-native": "0.43.2",
"react-navigation": "git+https://github.com/react-community/react-navigation.git#7edd9a7"
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
joemckie commentedon Apr 7, 2017
@thurt yeah it looks like there may have been some changes in how the
React$Element
orReact$Class
type is handled in between those versions? If it's not on the radar of the maintainers I'll take a look into it when I get a chance.JeyWong commentedon Apr 8, 2017
这应该是v1.0.0-beta.7版本的小错误,忘记清除不必要的代码。Header.js中引入了ReactComponentWithPureRenderMixin,但后面未发现对这个引入的使用,只需要删除第12行的代码即可,亲测有效!
Delete node_modules\react-navigation\src\views\Header.js line 12 codes:
import ReactComponentWithPureRenderMixin from 'react/lib/ReactComponentWithPureRenderMixin';
wip, trying to figure out if react-navigation plays nice with connect…
30 remaining items
Chandhru08 commentedon Apr 22, 2017
Guys, Im also facing the below error while trying to build an android app :
UnableToResolveError: Unable to resolve module
react/lib/ReactComponentWithPureRenderMixin
fromc:\Users\chand\manager\node_modules\react-addons-pure-render-mixin\index.js
: Module does not exist in the module map or in these directories:c:\Users\chand\manager\node_modules\react\lib
, c:\Users\chand\node_modules\react\lib
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 commentedon Apr 23, 2017
What is going on. Why Grabbou is creating a loop between #1181 and #923 ?
jamieparkinson commentedon Apr 23, 2017
@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)
Chandhru08 commentedon Apr 23, 2017
@jamieparkinson
Thank you for explaining.
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?
jamieparkinson commentedon Apr 23, 2017
Just replace the
react-navigation
item, that should be sufficient. So somewhere underdependencies
you'll have something like: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!
shooterRao commentedon Apr 24, 2017
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,
then
3.react-native run-ios or react-native run-android
thank you very much @Dhrin
wswoodruff commentedon Apr 26, 2017
Setting
like @jamieparkinson said in my package.json just
fixed
a slew of errors that just attacked me, and none of them looked related. Involved LinkedStateMixin, ReactComponentTreeHook, it was just weird.And I got down this entire rabbit hole over trying to use < FlatList >
epinapala commentedon Apr 26, 2017
Finally the below worked for me :
followed by
rm -rf node_modules && npm install
lifez commentedon Apr 26, 2017
Same here with
and
Already try with
react-native
0.43.4
got the same errormanan commentedon Apr 26, 2017
@lifez I am using the latter with 0.43.4 and it works fine!
Did you try:
rm -rf node_modules && npm install
And then reloading the screen multiple times?
benjick commentedon Apr 26, 2017
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
grabbou commentedon Apr 26, 2017
New release will be published today containing a fix.
I am going to
lock
this issue to prevent unnecessary notifications.