I have been updating libraries on a React app last updated about 5 years ago. Here is the current issue when running the index.html through Visual Studio Code live server.
Error:
path.js:25 Uncaught ReferenceError: process is not defined
at 2520 (path.js:25:17)
at n (bootstrap:19:32)
at 1316 (index.js:15:8)
at n (bootstrap:19:32)
at index.js:12:2
at Main.js:15:27
at Main.js:15:27
Package file:
{
"name": "Tripsharing",
"version": "0.0.1",
"description": "Tripsharing website",
"main": "index.js",
"scripts": {
"start": "./node_modules/.bin/webpack-dev-server --config ./webpack.config.js",
"build": "webpack"
},
"repository": {
"type": "git",
"url": "git@github.xxx/tripsharing.git"
},
"license": "MIT",
"author": "Mr So",
"dependencies": {
"@babel/core": "^7.18.10",
"@babel/preset-env": "^7.18.10",
"@babel/preset-react": "^7.18.6",
"@turf/turf": "^6.5.0",
"babel-loader": "^8.2.5",
"csv": "1.1.0",
"d3": "^4.5.0",
"gsap": "^1.18.5",
"immutable": "3.8.1",
"jquery": "2.2.3",
"json-loader": "0.5.4",
"lodash": "4.12.0",
"npm-check": "^6.0.1",
"path": "^0.12.7",
"process": "^0.11.10",
"rc-slider": "^6.1.0",
"react": "^16.14.0",
"react-dom": "^16.14.0",
"react-motion": "^0.4.7",
"react-redux": "^5.0.2",
"react-retina-image": "^2.0.5",
"redux": "^3.6.0",
"textures": "^1.0.5",
"webpack": "^5.74.0",
"webpack-dev-server": "^4.10.0"
},
"devDependencies": {
"grunt": "~0.4.5",
"grunt-contrib-concat": "~0.5.0",
"grunt-contrib-nodeunit": "~0.4.1",
"grunt-contrib-sass": "~0.9.2",
"grunt-contrib-watch": "~0.6.1",
"webpack-cli": "^4.10.0"
}
}