michael-hack / bulma-calendar

Bulma's extension to display a calendar
MIT License
286 stars 165 forks source link

npm install errors regarding webpack/webpack-stream #332

Open dmoebius opened 1 year ago

dmoebius commented 1 year ago

Your issue may already be reported! Please search on the issue track before creating one.

Bug Report

Environment

Current Behavior Trying to build bulma-calender manually.

npm install gives the following errors:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: webpack-stream@7.0.0
npm ERR! Found: webpack@4.46.0
npm ERR! node_modules/webpack
npm ERR!   dev webpack@"^4.12.0" from the root project
npm ERR!   peer webpack@"2 || 3 || 4" from babel-loader@7.1.5
npm ERR!   node_modules/babel-loader
npm ERR!     dev babel-loader@"^7.1.4" from the root project
npm ERR!   1 more (terser-webpack-plugin)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer webpack@"^5.21.2" from webpack-stream@7.0.0
npm ERR! node_modules/webpack-stream
npm ERR!   dev webpack-stream@"^7.0.0" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: webpack@5.88.2
npm ERR! node_modules/webpack
npm ERR!   peer webpack@"^5.21.2" from webpack-stream@7.0.0
npm ERR!   node_modules/webpack-stream
npm ERR!     dev webpack-stream@"^7.0.0" 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.

Possible Solution Running with npm install --legacy-peer-deps works, but I don't know what this does, and if it has any drawbacks.