-
Notifications
You must be signed in to change notification settings - Fork 640
Error when I copy & paste the README example: history.listen is undefined #231
Comments
The example is based on |
Perhaps the README could make the version requirements clear. I went so far as to copy the versions out of the example in this repo trying to get it to work. =) |
Yeah, this has come up a couple times now. I'll add a blurb. Thanks! |
FYI, it still doesn't work (same error) with these versions: "dependencies": {
"express": "4.13.3",
"react": "0.14.5",
"react-dom": "0.14.2",
"react-redux": "4.0.0",
"react-router": "2.0.0-rc5",
"redux": "3.0.4",
"redux-logger": "2.0.4",
"redux-simple-router": "2.0.3",
"redux-thunk": "1.0.0"
} What part of the magic combination am I missing? =) |
Make sure you've got the right version actually installed. |
@timdorr @ericelliott its probably because you are loading that store on both client and server. |
I nuked my But here's the manual confirmation... |
Ah yes, @mjrussell has it. Our example is for the client only. You can use a memory history for the server. |
Ah, that sounds like it could be the culprit.. suggestions for universal apps? |
Sounds perfect. How? Are there docs? |
To simplify, I stripped history out of the server render completely, but the client render example is still borked. I think a minimal example in the
|
Fixed, but I still think a minimal example of universal route & render with |
Description
Just trying to get a simple example up and running, but I'm running into an error:
Reproduce
To reproduce, pull the broken-example branch of the Universal React Boilerplate.
OSX El Capitan v10.11.1 (15B42)
The text was updated successfully, but these errors were encountered: