Skip to content

Commit

Permalink
fix(ui): build error of node v23 (#781)
Browse files Browse the repository at this point in the history
## What type of PR is this?

/kind bug

## What this PR does / why we need it:

fix build error of node v23

## Which issue(s) this PR fixes:

<!--
*Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
_If PR is about `failing-tests or flakes`, please post the related
issues/tests in a comment and do not use `Fixes`_*
-->

Fixes #
  • Loading branch information
hai-tian authored Feb 7, 2025
1 parent 2acbbeb commit c1a6f6e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
10 changes: 0 additions & 10 deletions ui/craco.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const CracoLessPlugin = require('craco-less')
const CompressionPlugin = require('compression-webpack-plugin')
const HappyPack = require('happypack')
const os = require('os')
const path = require('path')
const happyThreadPool = HappyPack.ThreadPool({ size: os.cpus().length })

const { whenProd } = require('@craco/craco')

module.exports = {
Expand Down Expand Up @@ -41,12 +37,6 @@ module.exports = {
minRatio: 0.8,
deleteOriginalAssets: false,
}),

new HappyPack({
id: 'babel',
loaders: ['babel-loader'],
threadPool: happyThreadPool,
}),
)
})
return webpackConfig
Expand Down
1 change: 0 additions & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-simple-import-sort": "^10.0.0",
"happypack": "^5.0.1",
"http-proxy-middleware": "^2.0.6",
"less": "^4.2.0",
"less-loader": "^12.1.0",
Expand Down

0 comments on commit c1a6f6e

Please sign in to comment.