diff --git a/src/common/router.js b/src/common/router.js index a2305f5f5a96e9618264eb4b28a6e1c21927a22c..3eac195d0fbb9320987a26d4128153203d914032 100644 --- a/src/common/router.js +++ b/src/common/router.js @@ -11,7 +11,8 @@ const dynamicWrapper = (app, models, component) => dynamic({ component: () => { const p = component(); return new Promise((resolve, reject) => { - p.then((Comp) => { + p.then((raw) => { + const Comp = raw.default || raw; resolve(props => ); }).catch(err => reject(err)); });