Closed jasan-s closed 7 years ago
Can you check the official react-router example and compare against that?
Yes, i have. The example imports multiple routes into one file and uses childRoutes to add them. whereas my routes are all defined in one routes file. But the syntax appears to be the same. I just don't get the generated chunks.
whereas my routes are all defined in one routes file.
Maybe that's the key here? Could you try the same idea as the official example? Just a single route would be enough. If that works, then we have something to proceed with.
thanks, tried that but nothing. I posted on stack overflow hopefully it gets solved.
Ok, another direction. Pick up the working example and move from that towards your solution. If that works, then it could be something on the configuration level. At least then you have something to compare.
Time to close. Please note that webpack 2 provides import(...).then
kind of syntax. The current version of the book has the setup if you are interested.
is there something wrong in my routes file: