Skip to content

Conflicting peer dependency: webpack@5.72.0 #90

@machristie

Description

@machristie

In a fresh clone I'm getting a conflicting peer dependency when running npm install.

I was able to work around it by running npm install --legacy-peer-deps, see https://stackoverflow.com/questions/69259024/how-to-handle-conflicting-peer-dependencies.

[pga@scigap-develop-web1 airavata-django-portal]$ node --version
v16.13.1
[pga@scigap-develop-web1 airavata-django-portal]$ npm --version
8.1.2
    npm ERR! While resolving: hello-world@0.1.0
    npm ERR! Found: sass-loader@7.1.0
    npm ERR! node_modules/sass-loader
    npm ERR!   dev sass-loader@"^10" from the root project
    npm ERR!
    npm ERR! Could not resolve dependency:
    npm ERR! dev sass-loader@"^10" from the root project
    npm ERR!
    npm ERR! Conflicting peer dependency: webpack@5.72.0
    npm ERR! node_modules/webpack
    npm ERR!   peer webpack@"^4.36.0 || ^5.0.0" from sass-loader@10.2.1
    npm ERR!   node_modules/sass-loader
    npm ERR!     dev sass-loader@"^10" from the root project

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions