Skip to content
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

[bug]v3+vite+elementPlus主应用加载子应用报错 #2479

Open
714151483 opened this issue Apr 25, 2023 · 0 comments
Open

[bug]v3+vite+elementPlus主应用加载子应用报错 #2479

714151483 opened this issue Apr 25, 2023 · 0 comments

Comments

@714151483
Copy link

v3+vite+elementPlus主应用加载子应用报错

主子应用同样是v3+vite+elementPlus,加载子应用时报Uncaught (in promise) TypeError: e.getBoundingClientRect is not a function的错误,多切换几次后加载正常,但偶尔也会出现,子应用打包配置如下:
build: {
minify: "terser",
terserOptions: {
compress: {
//生产环境时移除console
drop_console: true,
drop_debugger: true,
},
},
reportCompressedSize: false,
sourcemap: false,
outDir: 'admin',
target: 'esnext',
lib: {
entry: path.resolve(__dirname, 'src/main.ts'),
name: 'admin',
fileName: (format) => app.js,
formats: ['umd']
}
},

Mini Showcase Repository(REQUIRED)

Provide a mini GitHub repository which can reproduce the issue.

How To Reproduce

**1.加载主应用菜单

**2.切换子应用菜单后报错.
image

Context

  • qiankun Version: 2.8.4
  • Platform Version: mac 13.2.1
  • Browser Version: chrome 版本 112.0.5615.49(正式版本) (arm64)
@714151483 714151483 changed the title v3+vite+elementPlus主应用加载子应用报错 [bug]v3+vite+elementPlus主应用加载子应用报错 Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant