-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@umijs/plugin-qiankun使用问题,求解答 #35
Comments
给出复现步骤 |
子应用app.js如下配置: |
1.导航到子项目刷新页面经常出现这个错误: |
能给一个可以复现的 repo 地址吗 @bingo618 |
主项目: 我是部署在oss对象存储上的,由于在访问时带路径的页面时如(http://bin.ananlab.com/app1)刷新页面会出现404。所以我配置了404页默认是index.html,来解决这个问题。不知道上面的报错是不是跟部署有关。 |
@tmp指向umi生成的临时目录pages/.umi,webpack alias,你可以执行npx umi inspect > dev.log,查看 |
@bingo618 代码跑不起来,资源找不到 参考这个把子应用的 publicPath 配上 https://github.com/umijs/qiankun/wiki/FAQ#why-dynamic-imported-assets-missing |
@kuitos |
先把子应用dll设为false,解决 |
@shengbeiniao 设置成false是不跨域,但开发编译会很慢,所以才想问一下什么原因 |
@kuitos 请问一下,主项目使用 |
umi plugin 只是帮你做了一些封装,底层还是基于 qiankun,子项目只要符合qiankun的接入要求就行 |
@kuitos 没有找到app2的资源是因为我的demo只用了一个子项目,主项目未把app2的配置项删除。问题已解决,谢谢 |
@umijs/plugin-qiankun
实例中,子应用app.js中@tmp/umi
是什么模块,不明白。会一直报下面错误:
VM44:1 Uncaught app1: Application 'app1' died in status LOADING_SOURCE_CODE: You need to export the functional lifecycles in app1 entry
The text was updated successfully, but these errors were encountered: