CompositionalIT / SAFE-Dojo

An introductory dojo to learn how to develop full stack web applications in F#
379 stars 128 forks source link

Can't `dotnet run` #155

Closed johanvts closed 1 year ago

johanvts commented 1 year ago

trying to start the dojo. I can do dotnet tool restore, but doing 'dotnet run' yields:

Starting target 'InstallClient'
.> "C:\Program Files\nodejs\npm.CMD" install (In: false, Out: false, Err: false)
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: file-loader@4.3.0
npm ERR! Found: webpack@5.75.0
npm ERR! node_modules/webpack
npm ERR!   dev webpack@"^5.75.0" from the root project
npm ERR!   peer webpack@"^4.37.0 || ^5.0.0" from copy-webpack-plugin@6.4.1
npm ERR!   node_modules/copy-webpack-plugin
npm ERR!     dev copy-webpack-plugin@"^6.1.0" from the root project
npm ERR!   7 more (css-loader, mini-css-extract-plugin, sass-loader, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer webpack@"^4.0.0" from file-loader@4.3.0
npm ERR! node_modules/file-loader
npm ERR!   dev file-loader@"^4.2.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: webpack@4.46.0
npm ERR! node_modules/webpack
npm ERR!   peer webpack@"^4.0.0" from file-loader@4.3.0
npm ERR!   node_modules/file-loader
npm ERR!     dev file-loader@"^4.2.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.

Thank you for any help.

johanvts commented 1 year ago

I made a pull request here that seems to work: https://github.com/CompositionalIT/SAFE-Dojo/pull/157

Tom-Sloboda commented 1 year ago

fix already in master