umijs / umi

A framework in react community ✨
https://umijs.org
MIT License
15.3k stars 2.65k forks source link

[Bug] 加载页面时有时候一直显示loading,手动刷新可恢复 #6712

Closed quicklearning123 closed 3 years ago

quicklearning123 commented 3 years ago

What happens?

  dynamicImport: {
    loading: '@ant-design/pro-layout/es/PageLoading',
  },

image

Mini Showcase Repository(REQUIRED)

Please provide a repository using yarn create @umijs/umi-app then upload to your GitHub 请提供一个可复现的仓库,使用 yarn create @umijs/umi-app 创建,并上传到你的 GitHub 仓库

How To Reproduce

Steps to reproduce the behavior: 1. 2.

Expected behavior 1. 2.

Context

github-actions[bot] commented 3 years ago

Hello @quicklearning123. In order to facilitate location and troubleshooting, we need you to provide a realistic example. Please forking these link codesandbox umi or using yarn create @umijs/umi-app to create and upload it to your GitHub repository.

你好 @quicklearning123, 为了方便定位和排查问题,我们需要你提供一个重现实例,请提供一个尽可能精简的链接 codesandbox umi 或使用 yarn create @umijs/umi-app 创建,并上传到你的 GitHub 仓库。

github-actions[bot] commented 3 years ago

Since the issue was labeled with Need Reproduce, but no response in 3 days. This issue will be closed. If you have any questions, you can comment and reply. 由于该 issue 被标记为需要可复现步骤,却 3 天未收到回应。现关闭 issue,若有任何问题,可评论回复。

xiaoshui222 commented 3 years ago

What happens?

  dynamicImport: {
    loading: '@ant-design/pro-layout/es/PageLoading',
  },

image

Mini Showcase Repository(REQUIRED)

Please provide a repository using yarn create @umijs/umi-app then upload to your GitHub 请提供一个可复现的仓库,使用 yarn create @umijs/umi-app 创建,并上传到你的 GitHub 仓库

How To Reproduce

Steps to reproduce the behavior: 1. 2.

Expected behavior 1. 2.

Context

  • Umi Version: 3.3.7
  • Node Version: 14
  • Platform:mac

请问你解决了吗,我也是这样

Jeannette0217 commented 2 years ago

我也遇到这种无限loading ,手动刷新的问题

huyawei commented 2 years ago

老哥解决了没,我现在都不是手动刷新的问题了 卡loading 有的模块 刷了也没用

huyawei commented 2 years ago

现在服务器构建如果把构建缓存留着偶尔还会卡图片

marong1997 commented 1 year ago

我这边的项目有这个问题 , 表现:点击切换左侧路由菜单 有的菜单会展示内容(无接口调用的页面) 有的菜单一直展示loading 点击切换菜单会发现js文件加载了 。但是返回值是一个很简单的结构 image

复现很不稳定、 分享下umirc配置吧 。 ` import { defineConfig } from 'umi'; import routes from './src/routes'; import theme from './src/config/theme'; import webpackConfig from './src/config/plugin.config.js';

export default defineConfig({ nodeModulesTransform: { type: 'none', }, hash: true, layout: { title: '', navTheme: 'dark', name: 'ant-design-pro', theme: 'PRO', locale: true, showBreadcrumb: true, siderWidth: 208, layout: 'side', contentWidth: 'Fluid', fixedHeader: false, fixSiderbar: true, colorWeak: false, pwa: false, iconfontUrl: '', }, routes, targets: { ie: 11 }, access: { strictMode: true, }, esbuild: {}, fastRefresh: {}, proxy: { '/m1': { target: 'https://mock.apifox.cn/', changeOrigin: true, }, }, alias: { service: '@/services', requestUrl: '@/services/config', config: '@/config', tools: '@/utils/tools', components: '@/components', hooks: '@/utils/hooks', }, dynamicImport: { loading: '@ant-design/pro-layout/es/PageLoading', }, theme, }); `

marong1997 commented 1 year ago

老哥解决了没,我现在都不是手动刷新的问题了 卡loading 有的模块 刷了也没用

请问你们的问题解决了吗?

zhidali commented 1 year ago

现在还有这个问题,偶现 umi:3.5.20 react: 17.x

marong1997 commented 1 year ago

现在还有这个问题,偶现 umi:3.5.20 react: 17.x

我的是 umi 3.5.30 react: 17.x