[qiankun]Uncaught Error application ‘vue2‘ died in status LOADING_SOURCE_CODE [qiankun] You need t
code Error in application status you source loading
2023-09-11 14:16:27 时间
enviroment
主应用 vue-cli搭建
微应用1 vue+webpack
微应用2 umi3
error
启动主应用控制台报错
Uncaught Error: application ‘vue2’ died in status LOADING_SOURCE_CODE: [qiankun] You need to export lifecycle functions in vue2 entry
reason
qiankun 抛出这个错误是因为无法从微应用的 entry js 中识别出其导出的生命周期钩子。
resolution
参考 官方FAQ第一个问题
https://qiankun.umijs.org/zh/faq
微应用1的解决办法
在vue入口文件添加生命周期的钩子
在webpack打包配置添加如下webpack配置
相关文章
- Leetcode: Gray Code
- CLGeocoder Error Domain=kCLErrorDomain Code=2
- Error Code : 1456 Recursive limit 0 (as set by the max_sp_recursion_depth variable) was exceeded for routine pro_app_rs_right_update···
- Error while trying to retrieve text for error ORA-12705
- Error:java: Compilation failed: internal java compiler error 解决办法
- 【连接】mac使用Microsoft Remote Desktop Beta 远程win Error code: 0x104
- 【解决方案】ERROR: lib/bridge_generated.dart:837:9: Error: The parameter ‘ptr‘ of the method ‘FlutterRustB
- Error running 'dt-assets-monitor [clean]': Cannot run program "C:Program Files (x86)Javajdk1.8.0_73binjava.exe" (in directory "E:codedt-assets-monitor")
- Java学习-066-Mybatis + druid 报错: com.alibaba.druid.sql.parser.ParserException: syntax error, error in :'code LIKE "%"?"%"
- npm ERR! code ENOENT问题解决方法
- MonoDevelop with Visual Studio to Linux and Mac OSX maintaining a single code base for all platforms.
- The incident LOST_EVENTS occured on the master. Message: error writing to the binary log, Error_code
- mysql数据库导入sql文件时提示“Error Code: 1153 - Got a packet bigger than 'max_allowed_packet' bytes”解决办法
- 报错 - Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lex failed with exit code 1
- How to fix “HTTP Status Code 505 – HTTP Version Not Supported” error?--转
- phpstorm failed to create jvm:error code -6 解决办法 解决方法
- 【AI学习笔记】Error: ffmpeg error (see stderr output for detail)
- VM370:1 Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail cloud function service error code -504002, error
- OpenCV Error: Unspecified error (could not find a writer for the specified extension) in imwrite