-
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
线上环境报错[qiankun]: You need to export lifecycle functions in /xxx entry,但是本地开发则是能正常的访问 #2833
Comments
由于缺乏足够的信息(github、stackblitz、codesandbox等可复现仓库),我们暂时关闭了该 Issue。请修改(不要回复) Issue 提供最小重现以重新开启。谢谢。如果只是单独的技术咨询,可移步 https://qiankun.umijs.org/#-community 交流~ |
lodash V4和V5对于async function的判断结果不同导致的,本地子应用是没有配置lodash的,但是其他依赖使用了lodash V5,故而本地是正常的;但是环境上底座配置了lodash V4的映射,所以环境上访问的是lodash V4. 归因: |
你好,我也遇到了这个问题 能帮我指一下代码中的错误吗 |
可以看一下你碰到的现象,我们来讨论分析下。 |
同时建议看一下single-spa的报错,没准里边会提供一些思路的。 |
What happens?
本地开发的时候,通过webpack 5配置的proxy直接访问环境是能进入到该微服务的,但是出包部署后访问该微服务就会提示错误[qiankun]: You need to export lifecycle functions in /signature entry
同时,在环境上发现,所有页面资源均已请求并返回成功。
Mini Showcase Repository(REQUIRED)
webpack output配置:
path: path.resolve(__dirname, './build'),
filename: '[name].[fullhash].js',
publicPath: '/public/dist/xxx/website/',
clean: true,
library:
${packageName}
,libraryTarget: 'umd',
uniqueName:
webpackJsonp_${packageName}
index入口文件:
bootstrap、unmount、mount钩子函数都已配置并export
The text was updated successfully, but these errors were encountered: