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

在较低版本Chrome开发时,无限转圈,无法到达登录页的问题 #2800

Closed
4 tasks done
uncarbon97 opened this issue May 24, 2023 · 0 comments
Closed
4 tasks done

Comments

@uncarbon97
Copy link

【主要是给后来者指引以解决问题】

  • 已阅读 文档.
  • 确保您的代码已是最新或者所报告的 Bug 在最新版本中可以重现. (部分 Bug 可能已经在最近的代码中修复)
  • 已在 Issues 中搜索了相关的关键词
  • 不是 ant design vue 组件库的 Bug

描述 Bug

自Vben引入UnoCSS后,在较低版本的Chrome(如v87版本)开发时,会出现无限转圈,无法进入登录页

复现 Bug

使用 Chrome 87.0.4280.88 Windows x64版,运行最新代码即可

解决办法

在查阅UnoCSS仓库后找到issue

在Vben工程的internal/vite-config/src/config/common.ts文件增加:

plugins: [
    UnoCSS({
      presets: [presetUno(), presetTypography()],
      // Helio: 避免在较低版本Chrome(如v87)下开发时,无限转圈,无法到达登录页的问题
      hmrTopLevelAwait: false,
    }),
  ],

系统信息

  • 操作系统:
  • Node 版本:
  • 包管理器 (npm/yarn/pnpm) 及其版本:
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

2 participants