Closed robguy21 closed 7 years ago
If you're not using babel to transpile import
to require
in your server side node code, you'll need to require('redux-socket.io').default
;
This is just the way that default exports work when required from commonJS. http://stackoverflow.com/questions/33704714/cant-require-default-export-value-in-babel-6-x/33705077
Hey man!
First off, thanks for the awesome work.
Onto my issue- I have a use case where I need to use redux-socket.io on the server side, but I'm immediately hitting a brick wall.
Here's my store initialization on the server...
Not sure why this is happening on the backend but the front-end is working fine, might this be an issue with
require()
vsimport
?Versions below