Closed SpencerCDixon closed 8 years ago
After writing tests to confirm the file was being copied over it appeared that there was somewhat of an error with this line being copied over:
persistState(window.location.href.match(/[?&]debug_session=([^&]+)\b/))
The \b
threw errors in my tests so I had to escape it twice. I ran npm link to symlink the generator and use my own local version and it copied over the configureStore file fine. Is there something that needs to be done for Yeoman to use the latest version of the templates?
:+1: thanks man!
Updated configure store to use new redux-devtools configuration. Fixes problem of 'Uncaught TypeError: store.getState is not a function'
It would work using
node server.js
but with runningnpm start
orDEBUG=true npm start
the app was failing. Updating the store configuration using their readme seemed to fix it for me locally.I'm very skeptical as to why moving it from a require to an import actually fixed the problem. Don't know enough about Node/ES6 yet to know why though...
When the generator runs on a fresh install this is what the configureStore.js looks like:
Seems like the real issue is it's just not applying the template properly. Its adding createStore as an argument to compose which is just wrong.