Open xuchangjunjx opened 1 month ago
Error: [qiankun]: You need to export lifecycle functions in my-demo entry
// with chain chain.output.library({ name:"kb_observer_[name]", type:'umd', umdNamedDefine: true, // export: options.export, }); chain.output.chunkLoadingGlobal("webpackJsonp_my_dem0"); chain.output.uniqueName('my_demo_app'); chain.output.globalObject('this');
if change chain.output.globalObject('this'); to chain.output.globalObject('self');, will works
chain.output.globalObject('this');
chain.output.globalObject('self');
I think the UMD plugin will not change the default value of globalObject, you can override it if it it required by qiankun.
globalObject
Error: [qiankun]: You need to export lifecycle functions in my-demo entry
if change
chain.output.globalObject('this');
tochain.output.globalObject('self');
, will works