Loadable.Capture not reporting any modules
问题 This is essentially all my code. I am running Hapi and trying to use react-loadable to server render my React application. I have added a lot of the missing pieces to the code here. const location = req.url.pathname const context = {} const modules = [] const Router = () => ( <Switch> <Route exact path="/" component={Home} /> <Route path="/login" component={Login} /> <Route path="/me" component={Profile} /> <Route component={NotFound} /> </Switch> ) const App = () => ( <StaticRouter location=