Closed Gftakla closed 1 year ago
Hi @Gftakla
can you please install python 2 in your machine and try npm install?
one of the library node-sass requires python 2 for its post build installation
Thank you! I tried that, but got more pages of errors due to dependencies on old deprecated packages. I used ncu to update the packages (see below) and then ran yarn install to update all packages. building with new packages create compilation Error: Compiling RuleSet failed: Query arguments on 'loader' has been removed in favor of the 'options' property (at ruleSet[1].rules[2].loader: url-loader?limit=10000&minetype=application/font-woff)
ncu -u Using yarn Upgrading package.json [====================] 42/42 100% @babel/core 7.7.7 → 7.19.6 @babel/plugin-transform-runtime 7.9.6 → 7.19.6 @babel/preset-env 7.7.7 → 7.19.4 @babel/preset-react 7.7.4 → 7.18.6 @babel/runtime 7.9.2 → 7.19.4 @hot-loader/react-dom 16.13.0 → 17.0.2 babel-loader 8.0.6 → 8.2.5 css-loader 3.4.2 → 6.7.1 eslint 6.8.0 → 8.26.0 eslint-plugin-react 7.18.0 → 7.31.10 file-loader 5.0.2 → 6.2.0 history 4.10.1 → 5.3.0 html-webpack-plugin 3.2.0 → 5.5.0 husky 4.2.5 → 8.0.1 json-rules-engine 5.0.3 → 6.1.2 lodash 4.17.15 → 4.17.21 mini-css-extract-plugin 0.9.0 → 2.6.1 node-sass 6.0.1 → 7.0.3 postcss-loader 3.0.0 → 7.0.1 react 16.12.0 → 18.2.0 react-bootstrap-sweetalert 5.1.9 → 5.2.0 react-d3-tree 1.16.1 → 3.3.5 react-dom 16.12.0 → 18.2.0 react-hot-loader 4.12.20 → 4.13.0 react-notifications 1.6.0 → 1.7.4 react-redux 7.1.3 → 8.0.4 react-router-dom 5.1.2 → 6.4.2 react-spinners 0.8.1 → 0.13.6 redux 4.0.5 → 4.2.0 redux-thunk 2.3.0 → 2.4.1 sass-loader 11.1.1 → 13.1.0 style-loader 1.1.2 → 3.3.1 url-loader 4.1.0 → 4.1.1 webpack 4.41.5 → 5.74.0 webpack-cli 3.3.10 → 4.10.0 webpack-dev-server 3.10.1 → 4.11.1
its not ideal to update all the packages in order to avoid few deprecated packages error. we may have to analyse which package throws error during compilation and has to sort out.
I see, json rule engine library is updated to 6. from 5. so does react from 16. to 18.
It is currently working as per dependency version covered in package.json. if you get error for the same version as per package.json file, please share the error, i will see to it.
Meanwhile, if you want to use this tool, please launch www.json-rule-editor.com link to use it directly without any local installation.
Thank you for looking into it! I agree that packages update is not the right path, but as I mentioned using the current packages kept erroring. I liked the online version and wanted to work on it. I may work on a solution for the packages and share it when I get time
Hi,
I git-cloned the solution to my computer and ran 'npm install' to get all packages, but NPM reported many deprecated packages and then erred out with the messages below. Also, no package was trapped and the node_modules folder was not created since those old packages need Python 2.7
I tried ncu to upgrade all packages, but the code does not run and errs out
Does anyone have a safe way to upgrade the packages without breaking the code?
npm ERR! A complete log of this run can be found in: npm ERR! C:...npm-cache_logs\2022-10-20T16_17_09_149Z-debug-0.log