umijs / umi

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

[Bug] umi@1.2.6 umi build 无响应 #12592

Closed tshanchuan closed 1 month ago

tshanchuan commented 1 month ago

What happens?

六年前老项目被人刨坟要卖掉。发现无法打包。 现在问题是: umi dev 本地可以正常运行。umi build 一直等待,没有报错也不输出日志。 项目过大业务繁多,不想升级到其他版本。看看各位同学有没有遇到过。

Mini Showcase Repository(REQUIRED)

Please provide a minimal reproduction then upload to your GitHub. 请提供 最小重现,并上传到你的 GitHub 仓库 admin.zip 业务代码已上传

How To Reproduce

Steps to reproduce the behavior: 1. 2.

Expected behavior 1. 2.

image image

{
  "private": true,
  "scripts": {
    "start": "umi dev",
    "build": "umi build"
  },
  "dependencies": {
    "@babel/polyfill": "^7.0.0-beta.44",
    "ant-design-pro": "^1.3.0",
    "babel-eslint": "^8.2.2",
    "babel-plugin-emotion": "^9.1.0",
    "babel-plugin-import": "^1.7.0",
    "babel-polyfill": "^6.26.0",
    "dva": "^2.1.0",
    "dva-loading": "^1.0.4",
    "image-compressor.js": "^1.1.3",
    "immutability-helper": "^2.7.0",
    "js-cookie": "^2.2.0",
    "maptalks": "0.39.8",
    "moment": "^2.20.1",
    "npm": "^5.8.0",
    "npm-check": "^5.7.1",
    "numeral": "^2.0.6",
    "q": "^1.5.1",
    "qs": "^6.5.1",
    "query-parse": "^2.0.0",
    "rc-form": "^2.2.0",
    "react-bmap": "^1.0.69",
    "react-cropper": "^1.0.1",
    "react-infinite-scroller": "^1.1.3",
    "react-transition-group": "^2.3.1",
    "react-wx-images-viewer": "^1.0.6",
    "socket.io-client": "^2.1.0",
    "to": "^0.2.9",
    "umi-plugin-dva": "^0.3.0",
    "umi-plugin-polyfill": "^0.1.1",
    "update": "^0.7.4"
  },
  "devDependencies": {
    "eslint": "^4.14.0",
    "eslint-config-umi": "^0.1.1",
    "eslint-plugin-flowtype": "^2.34.1",
    "eslint-plugin-import": "^2.6.0",
    "eslint-plugin-jsx-a11y": "^5.1.1",
    "eslint-plugin-react": "^7.7.0",
    "husky": "^0.12.0",
    "umi-plugin-es5-imcompatible-versions": "^0.1.0",
    "umi-plugin-routes": "^0.1.2"
  },
  "proxy": "https://rmc-admin.qiansun.online/api/"
}

Context

sorrycc commented 1 month ago

需要复现步骤,没复现看不了。

tshanchuan commented 1 month ago

admin.zip

npm i
npm i umi@1.2.6 -g
npm run start  
npm run build
tshanchuan commented 1 month ago

需要复现步骤,没复现看不了。

Windows下 build无响应,有网友在Mac下 可以build

tshanchuan commented 1 month ago

解决了,umi-plugin-dva 换成 0.9.1版本 npm install umi-plugin-dva@0.9.1 --save-dev