ant-design / ant-design-landing

:mountain_bicyclist: Landing Pages of Ant Design System
https://landing.ant.design/
MIT License
6.09k stars 624 forks source link

无法部署看我! #400

Open LiukerSun opened 6 months ago

LiukerSun commented 6 months ago

项目更新了之后导致没法使用官网的文档部署了。 这里整理了一下可以运行的依赖版本

{
  "name": "homepage",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "@ant-design/compatible": "^1.0.2",
    "antd": "^4.0.1",
    "enquire-js": "^0.2.1",
    "rc-banner-anim": "^2.2.2",
    "rc-queue-anim": "^1.6.12",
    "rc-scroll-anim": "^2.5.6",
    "rc-tween-one": "^2.3.4",
    "react": "^16.8.3",
    "react-dom": "^16.8.3",
    "react-scripts": "2.1.5",
    "react-sublime-video": "^0.2.5"
  },
  "scripts": {
    "start": "react-app-rewired start",
    "build": "react-app-rewired build",
    "test": "react-app-rewired test",
    "eject": "react-app-rewired eject"
  },
  "eslintConfig": {
    "extends": "react-app"
  },
  "browserslist": [
    ">0.2%",
    "not dead",
    "not ie <= 11",
    "not op_mini all"
  ],
  "devDependencies": {
    "babel-plugin-import": "^1.11.0",
    "customize-cra": "^0.2.12",
    "less": "^3.9.0",
    "less-loader": "^4.1.0",
    "react-app-rewired": "^2.1.0"
  }
}

config-overrides.js:

const { override, fixBabelImports, addLessLoader } = require('customize-cra');

module.exports = override(
    fixBabelImports('import', {
        libraryName: 'antd',
        libraryDirectory: 'es',
        style: true,
    }),
    addLessLoader({
        javascriptEnabled: true,
    }),
);
LiukerSun commented 6 months ago

homepage.zip

NanZehua commented 3 months ago

homepage.zip

你这用那个版本的 node 编译的,我下载了 rpm 包都安装不了。

MorganArthur commented 1 month ago

我用的node版本是v20.1.0也下载不了