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

🧐[问题] 紧急! 需要帮助 关于只升级了@ant-design/pro-table版本导致无法build #8804

Open
A9074o opened this issue Oct 18, 2024 · 0 comments

Comments

@A9074o
Copy link

A9074o commented Oct 18, 2024

🧐 问题描述

我们项目是4年搭建的之前用的antdpro; 之前的@ant-design/pro-table版本是2.25.1;
然后今天有些需求需要更新版本,然后我将版本更新到了2.80.8;
版本更新以后发现 build 命令一直没办法正常打完包。
image
然后就一直提示JavaScript堆内存不足的问题。
image
我试过将node内存改为32G,结果是包正常打完了,估计打了10分钟左右,但是包的体积达到了1G。正常是170M左右。 

以下是我的 package.json的依赖
"dependencies": {
    "@ant-design/charts": "^1.4.2",
    "@ant-design/icons": "^4.7.0",
    "@ant-design/pro-layout": "^6.10.9",
    "@ant-design/pro-table": "^2.80.8",
    "@googlemaps/js-api-loader": "^1.15.1",
    "@googlemaps/markerwithlabel": "^2.0.14",
    "@here/maps-api-for-javascript": "^1.35.3",
    "@umijs/route-utils": "^1.0.36",
    "address-parse": "^1.2.19",
    "animate.css": "^4.1.1",
    "antd": "^4.21.2",
    "array-move": "^3.0.1",
    "bizcharts": "^3.5.9",
    "braft-editor": "^2.3.9",
    "classnames": "^2.2.6",
    "compression-webpack-plugin": "^1.1.12",
    "echarts": "^5.2.2",
    "file-loader": "^6.2.0",
    "flv.js": "^1.5.0",
    "html2canvas": "^1.4.1",
    "jquery": "^3.5.1",
    "js-export-excel": "^1.1.4",
    "jsqr": "^1.4.0",
    "jwt-decode": "^3.0.0",
    "lodash": "^4.17.11",
    "lodash.debounce": "^4.0.8",
    "md5": "^2.3.0",
    "moment": "^2.25.3",
    "numeral": "^2.0.6",
    "omit.js": "^1.0.2",
    "path-to-regexp": "2.4.0",
    "qrcode.react": "^1.0.1",
    "react-activation": "^0.7.0",
    "react-color": "^2.19.3",
    "react-infinite-scroll-component": "^6.1.0",
    "react-sortable-hoc": "^2.0.0",
    "react-syntax-highlighter": "^15.5.0",
    "react-text-loop": "^2.3.0",
    "react-to-print": "^2.14.13",
    "simple-element-resize-detector": "^1.3.0",
    "tcplayer.js": "^5.1.0",
    "umi": "^3.2.16",
    "umi-plugin-keep-alive": "^0.0.1-beta.18",
    "umi-request": "^1.0.8",
    "url-loader": "^4.1.1",
    "use-merge-value": "^1.0.1",
    "video.js": "^8.16.0",
    "videojs-flash": "^2.1.0",
    "xlsx": "^0.18.2"
  },
  "devDependencies": {
    "@ant-design/pro-cli": "^2.0.4",
    "@antv/data-set": "^0.11.8",
    "@types/classnames": "^2.2.7",
    "@types/compression-webpack-plugin": "^9.0.0",
    "@types/express": "^4.17.11",
    "@types/google.maps": "^3.52.2",
    "@types/history": "^4.7.8",
    "@types/jest": "^25.1.0",
    "@types/lodash": "^4.14.144",
    "@types/md5": "^2.3.2",
    "@types/qs": "^6.5.3",
    "@types/react": "^16.14.5",
    "@types/react-dom": "^16.9.12",
    "@types/react-helmet": "^5.0.16",
    "@umijs/fabric": "^2.5.7",
    "@umijs/plugin-blocks": "^2.2.2",
    "@umijs/preset-ant-design-pro": "^1.3.0",
    "@umijs/preset-react": "^1.8.3",
    "@umijs/preset-ui": "^2.2.9",
    "babel-plugin-lodash": "^3.3.4",
    "carlo": "^0.9.46",
    "cross-env": "^7.0.3",
    "cross-port-killer": "^1.3.0",
    "detect-installer": "^1.0.1",
    "eslint": "^6.8.0",
    "gh-pages": "^2.2.0",
    "husky": "^4.3.8",
    "lint-staged": "^10.5.4",
    "prettier": "^2.2.1",
    "puppeteer-core": "^3.3.0",
    "react-svg": "^15.1.14",
    "stylelint": "^13.12.0",
    "terser-webpack-plugin": "^4.1.0"
  },
 
 
 
  请问为什么会出现这个问题,并且怎么去解决啊

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