使用chunk 打包后跳转页面报错

#1

打完包只能显示默认的第一个页面。 后面的页面一跳转就报错。

Uncaught TypeError: Cannot read property 'call' of undefined
    at t (common.js?a24db67…:1)
    at app.js?a24db67…:10
    at window.webpackJsonp (common.js?a24db67…:1)
    at itIndex.min.js:1
t @ common.js?a24db67…:1
(anonymous) @ app.js?a24db67…:10
window.webpackJsonp @ common.js?a24db67…:1
(anonymous) @ itIndex.min.js:1

路由

const ForgetP = (nextState, cb) => {
  console.log('hh');
  require.ensure([], (require) => {
    cb(null,require('../pages/default/ForgetP').default);
  }, 'defaultForgetP');
}
<Router history={history}>
        <Route path="/" getComponent={Root} onEnter={routerEnter}>
         <IndexRoute getComponent={Default.RootIndex}/>
          <Route path="defaults" getComponent={Default.Index}>
          <IndexRoute getComponent={Default.RootIndex}/>
           <Route path="register" getComponent={Default.Register} title="注册"/>
           <Route path="forgetp" getComponent={Default.ForgetP} title="忘记密码"/>
          <Route path="notFount" getComponent={Default.NotFound}/>
          -<Route path="error" getComponent={Default.Error}/>
        </Route>
       <Route>
</Route>

跳转的时候 hh 能打印出来。。就是没有页面

#2

为什么我的格式有人改,但是不回答问题呢。。

#3

请问解决了吗