Azure / azure-kusto-trender

A JavaScript client for Kusto (Azure Data Explorer, Synapse Data Explorer, Kusto free), featuring components for making calls directly to Kusto, rendering results from the API, and more
https://aka.ms/kusto.trender
MIT License
31 stars 12 forks source link

npm install fails #36

Closed SammyWhamy closed 11 months ago

SammyWhamy commented 1 year ago

Running npm install on a clone of the 0.0.9 release fails with the following error:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: file-loader@1.1.11
npm ERR! Found: webpack@5.72.0
npm ERR! node_modules/webpack
npm ERR!   dev webpack@"^5.72.0" from the root project
npm ERR!   peer webpack@"4.x.x || 5.x.x" from @webpack-cli/configtest@1.1.1
npm ERR!   node_modules/@webpack-cli/configtest
npm ERR!     @webpack-cli/configtest@"^1.1.1" from webpack-cli@4.9.2
npm ERR!     node_modules/webpack-cli
npm ERR!       dev webpack-cli@"^4.9.2" from the root project
npm ERR!       3 more (@webpack-cli/configtest, @webpack-cli/info, @webpack-cli/serve)
npm ERR!   6 more (css-loader, terser-webpack-plugin, webpack-cli, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer webpack@"^2.0.0 || ^3.0.0 || ^4.0.0" from file-loader@1.1.11
npm ERR! node_modules/file-loader
npm ERR!   dev file-loader@"^1.1.11" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: webpack@4.46.0
npm ERR! node_modules/webpack
npm ERR!   peer webpack@"^2.0.0 || ^3.0.0 || ^4.0.0" from file-loader@1.1.11
npm ERR!   node_modules/file-loader
npm ERR!     dev file-loader@"^1.1.11" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

eresolve-report.txt

Technical info:

Notes Running npm i --legacy-peer-deps seems to work, albeit with 21 vulnerabilities (6 moderate, 13 high, 2 critical)

tanmaya-panda1 commented 12 months ago

updated few dependencies and fixed in PR and upcoming 0.0.10 version Defect/update dev dependencies by tanmaya-panda1 · Pull Request #58 · Azure/azure-kusto-trender (github.com). Most of the vulnerabilities are fixed with 10 vulnerabilities remaining (2 moderate, 8 high). These vulnerabilities will be taken care in the upcoming releases.