You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uncaught runtime errors:
×
ERROR
Cannot read properties of null (reading 'contains')
TypeError: Cannot read properties of null (reading 'contains')
at HTMLHeadElement.appendChildOrInsertBefore [as appendChild] (webpack-internal:///./node_modules/.pnpm/[email protected]/node_modules/qiankun/es/sandbox/patchers/dynamicAppend/common.js:247:44)
at __webpack_require__.l (http://localhost:8081/js/app.js:557:41)
at __webpack_require__.f.j (http://localhost:8081/js/app.js:1015:37)
at eval (http://localhost:8081/js/app.js:464:40)
at Array.reduce (<anonymous>)
at __webpack_require__.e (http://localhost:8081/js/app.js:463:67)
at fn.e (http://localhost:8081/js/app.js:655:50)
at component (webpack-internal:///./src/router/index.ts:24:40)
at extractComponentsGuards (webpack-internal:///./node_modules/.pnpm/[email protected][email protected]/node_modules/vue-router/dist/vue-router.esm-bundler.js:1844:32)
at eval (webpack-internal:///./node_modules/.pnpm/[email protected][email protected]/node_modules/vue-router/dist/vue-router.esm-bundler.js:2813:16)
问题描述
子项目,在vue-router中使用异步组件,加载时报错。
环境
platform: windows 10
node: 16.20.0
pnpm: 8.6.6
qiankun: 2.10.14
vue: 3.2.13
vue-router: 4.0.3
最小可复现程序
https://github.com/Zhang2Henry/qiankun-bug-report
复现步骤
其他信息
已经初步调试过,是因为主应用的 appWrapper 中没有生成 < qiankun-head > 元素,导致子应用动态加载 script 时,没能找到 container。
The text was updated successfully, but these errors were encountered: