react-boilerplate: Promise Error when creating route to a container
I’m new to react and I decide to use this boilerplate for my first project. I don’t know if this is a bug or if I need to link some things manually, but when I create a container and a route to this new container with the generator, I get an error when I try to access this container.
The error is the following:
es6.promise.js:119 Unhandled promise rejection ReferenceError: injectAsyncReducer is not defined
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 38 (18 by maintainers)
@ralomucho What do you mean by changing the default selector? (I’m getting the same error as @jamesmbowler)
Edit: Nevermind, I figured it out. A simple way to remove the error would be to do this:
Double edit: Perhaps a good default for the template would be something like this instead? This way the errors won’t show up when nothing has changed.
Yeah, do those two things and then the
storevariable is passed into thecreateRoutesfunction. I.e. change it to this:Thanks for the solution @ralomucho. I submitted the PR as others may already have problem with this: #352