Skip to content

Commit

Permalink
fix: updating dependencies to fix ci build node version error (#40)
Browse files Browse the repository at this point in the history
Updating dependencies to avoid ci-build-job error:
```
error [email protected]: The engine "node" is incompatible with this module. Expected version ">= 18.12.0". Got "16.20.2"
```
Upgrading the following dependencies: 
- webpack
- webpack-cli
- webpack-dev-server
- css-loader
- to-string-loader
- ts-loader
- babel-loader
- replacing uglify-webpack-plugin to terser-webpack-plugin
- adding loader-utils version to resolutions
  • Loading branch information
elivillalejos authored Aug 15, 2024
1 parent 2d47d74 commit 822977e
Show file tree
Hide file tree
Showing 3 changed files with 3,562 additions and 5,050 deletions.
22 changes: 13 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,32 +17,36 @@
"private": true,
"devDependencies": {
"@jest/globals": "^29.6.1",
"css-loader": "^0.28.11",
"css-loader": "^7.1.2",
"d3": "^4.8.0",
"jest": "^29.6.1",
"to-string-loader": "^1.1.5",
"terser-webpack-plugin": "^5.3.10",
"to-string-loader": "^1.2.0",
"ts-jest": "^29.1.1",
"ts-loader": "6.2.1",
"ts-loader": "9.5.1",
"ts-node": "^10.9.1",
"tslint": "5.8.0",
"tslint-config-standard": "7.0.0",
"uglifyjs-webpack-plugin": "^1.2.5",
"webpack": "4.41.2",
"webpack-cli": "^3.3.10",
"webpack-dev-server": "3.9.0"
"webpack": "^5.93.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "5.0.4"
},
"dependencies": {
"@babel/core": "7.24.4",
"@babel/preset-env": "^7.7.1",
"@babel/preset-react": "^7.7.0",
"@types/d3": "^5.0.0",
"@types/d3-sankey": "^0.7.4",
"babel-loader": "^8.0.6",
"babel-loader": "^9.1.3",
"d3-sankey": "^0.10.4",
"react": "^16.8.3",
"react-dom": "^16.7.0",
"react-responsive-carousel": "^3.1.51",
"ssf": "^0.11.2",
"typescript": "^5.1.6"
}
},
"resolutions": {
"loader-utils": "^1.4.2"
},
"engines": { "node": "18.12.0" }
}
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var path = require('path');

const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
const TerserPlugin = require('terser-webpack-plugin');

var webpackConfig = {
mode: 'production',
Expand All @@ -16,7 +16,7 @@ var webpackConfig = {
resolve: {
extensions: ['.ts', '.js'],
},
plugins: [new UglifyJSPlugin()],
plugins: [new TerserPlugin()],
module: {
rules: [
{test: /\.js$/, loader: 'babel-loader'},
Expand Down
Loading

0 comments on commit 822977e

Please sign in to comment.