Skip to content

Build for qiankun tips error #2

@xuchangjunjx

Description

@xuchangjunjx

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions