alibaba/rax

微信小程序开启 分包 , web 端报错[Question]

chenShengKang opened this issue · 0 comments

微信小程序开启 分包 , web 端报错 , 小程序端可以使用
src/app.js
import { runApp } from 'rax-app'; runApp();

src/app.json
{ "routes": [ { "source": "pages/Main/app", "miniappMain": true }, { "source": "pages/Park/app" } ] }

报错信息
`
error in ./src/app.json

Module build failed (from ./node_modules/build-plugin-rax-app/lib/Loaders/RouteLoader.js):
Error: There need path field in this route: [object Object]
at getComponentName (F:\wCode\lc-park-rax\lc-park\node_modules\build-plugin-rax-app\lib\Loaders\RouteLoader.js:104:15)
at F:\wCode\lc-park-rax\lc-park\node_modules\build-plugin-rax-app\lib\Loaders\RouteLoader.js:83:179
at Array.forEach ()
at Object.addDynamicImportRouteExpression (F:\wCode\lc-park-rax\lc-park\node_modules\build-plugin-rax-app\lib\Loaders\RouteLoader.js:82:20)
at Object.default_1 (F:\wCode\lc-park-rax\lc-park\node_modules\build-plugin-rax-app\lib\Loaders\RouteLoader.js:46:260)

✖ Web
`