-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Update examples and documentations for upstream-driven API changes #2669
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
Comments
We haven't had a chance to update the examples yet - we will do so soon. |
(I am a little confused with the chang log...) |
Use 1.13.x for now. |
👌 |
the master branch has new API that our own internals aren't using yet, so the master branch spits out the warnings until we can finish working on all of it.
|
I can confirm I don't see this anymore after upgrading to history 1.13.1 and react-router 1.0.2. |
@thenickcox, thanks. I used your version numbers and it helped :) |
"babel-loader": "^6.2.0",
"history": "^1.16.0",
"isomorphic-fetch": "^2.2.0",
"koa": "^1.1.2",
"react": "^0.14.3",
"react-dom": "^0.14.3",
"react-redux": "^4.0.1",
"react-router": "^1.0.2",
"redux": "^3.0.5",
"redux-logger": "^2.2.1",
"redux-thunk": "^1.0.2",
"webpack": "^1.12.9" I use when I down to 1.1.3 it is fixed. @thenickcox thanks. |
And that's why the peer dependency says 1.13.x! |
Use the one npm tells you to.
|
Shouldn't this be packaged as a normal dependency, not a peer? |
Not for the current version. For the next one, yes. |
My console is still full of warnings |
@sercaninaler Make sure you have |
These are installed: But still getting error on; Is it because I have Babel 6 as compiler? |
You have a caret range on history. It must be exactly 1.13.1. Do not install history 1.14.0 or higher right now. |
I'd like to add a vote of support for a bugfix release to the |
0.13.x doesn't use history. |
Sorry, I confused the version numbers -- I meant the |
It's fixed in the 1.0.x branch. @ryanflorence needs to package it up and release as 1.0.3. |
Now It's ok, but we wait for the release, but thanks so much for the great effort. |
So the bug in |
Until 2.0.0, we never directly used Now that we're going to start exporting our own history singletons in 2.0.0, it's been moved back to a regular dependency. Unfortunately, NPM 3 has made the peerDep experience rocky. We would have kept it as a peerDep on 2.0.0 if we didn't go the singleton route (pun intended), but I know I probably would have worked on some NPM PRs to improve that UX quite a bit. |
Thanks for the explanation, much appreciated. I might also suggest updating the README with the specific version of |
In #2697 the author of that issue points to two points in the If I can install In that case, the README of this repo should be updated to communicate loud and clear VERSION X of |
The peer dep issue is getting fixed for now as soon as we cut 1.0.3. There's not really much more to discuss here - the way we import hash history in v1.0.x meant that the peer dependency made the most sense. |
From my package.json
I am still getting a sh*tload of warnings. What is the correct setup? Is there such a thing? I'm beginning to think my nightmare is never going to end. Constantly trying to upgrade innumerable interdependant components in search of a stable, working system. This most recent search started with Babel 6 (oh the horror) and has been going now for nigh on two months. |
That is the correct setup on 1.0.x. Make sure you have the actual correct package versions installed. |
Yep, Those are the installed versions alright. Looking at the source of lib/Link.js, on line 122 I see:
which is causing some of the warnings. Is that not right? |
@stephensong Welcome to the Node ecosystem! 😉 Easiest way to check that you've got the right versions installed: If you don't see the right ones, run |
As I said previously, those are the installed versions.
Honestly ... |
You had listed what was in package.json, but that's not a hard requirement (npm/node doesn't behave like Bundler in Rubyland and load dependencies based on a config file). What are one of the warnings you are getting? We don't normally emit warnings with those versions (Note: the location one is expected) |
Surely you jest. The system issues warnings about it's own code in the 'fixed' version. I can see why you can say it is expected? Not just expected, but inevitable, yes? Why not just fix it? I can't speak for anybody else, of course, but it most certainly not expected by me. Is this one also to be expected?
|
The first warning is explicitly commented out in v1.17.0, which is why we asked if you had the correct version installed: https://github.com/rackt/history/blob/v1.17.0/modules/useQueries.js#L118 The latter one is indicative of your trying to do something that won't work. |
ok. my humblest apologies. I had some sort of unwanted caching effect going on with my (newly updated of course) hmr stuff, which somehow meant that what was being executed was not actually what was on the disk. Fwiw (not very much I admit) in my defence, I was objecting to this line from Tim:
which, as it turns out, is not actually true is it. Anyways, many thanks for your assistance in resolving my issue. Now on to the next problem on my list. Some day (hopefully in this calendar year) I will be able to actually get some more work done. I have to believe it to be so. ; - ) |
In the context of our test suite, yes, the |
Ok, sorry again, my mistake. When you said "the location one" I incorrectly thought you were referring to the "use a location descriptor instead" bit. Regarding, this one:
looking at my code it seems to arise from the fact that I have wrapped my Router in a Root element, and then wrapped that with a call to redux connect. (see code at bottom). I don't think I am actually changing the routes, but the test
fails somehow. Is this the wrong way to integrate redux and react-router, and, if so, what is the right way? many tias, gary
|
I would get rid of the This is probably better served by Stack Overflow, to be honest. Only @taion and I really have eyes on this issue. You'll get a lot more eyeballs on SO and people there are incentivized by karma points and such. |
I am interested in the huge-app example, but when I run it on my PC,

it shows many errors, how do I fix it?
The text was updated successfully, but these errors were encountered: