Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular 11 #28

Open
mokmap opened this issue May 28, 2021 · 1 comment
Open

Angular 11 #28

mokmap opened this issue May 28, 2021 · 1 comment

Comments

@mokmap
Copy link

mokmap commented May 28, 2021

It is impossible to install the package under Angular 11. There is a dependency issue with @angular/common.

my version of @angular/common is 11.2.13.

How to solve this problem ?

error : ngx-wheel@4.0.5" has incorrect peer dependency "@angular/common@^9.1.7".

Thanks

@timgomm
Copy link

timgomm commented Sep 8, 2021

Found: @angular/common@11.2.14
node_modules/@angular/common
  @angular/common@"~11.2.14" from the root project

Could not resolve dependency:
peer @angular/common@"^9.1.7" from ngx-wheel@4.0.5
node_modules/ngx-wheel
  ngx-wheel@"^4.0.5" from the root project

Fix the upstream dependency conflict, or retry
this command with --force, or --legacy-peer-deps
to accept an incorrect (and potentially broken) dependency resolution.

Raw JSON explanation object:

{
  "code": "ERESOLVE",
  "current": {
    "name": "@angular/common",
    "version": "11.2.14",
    "whileInstalling": {
      "name": "****",
      "version": "1.7.6",
      "path": "C:\\Development\****"
    },
    "location": "node_modules/@angular/common",
    "dependents": [
      {
        "type": "prod",
        "name": "@angular/common",
        "spec": "~11.2.14",
        "from": {
          "location": "C:\\Development\****"
        }
      }
    ]
  },
  "currentEdge": {
    "type": "prod",
    "name": "@angular/common",
    "spec": "~11.2.14",
    "from": {
      "location": "C:\\Development\****"
    }
  },
  "edge": {
    "type": "peer",
    "name": "@angular/common",
    "spec": "^9.1.7",
    "error": "INVALID",
    "from": {
      "name": "ngx-wheel",
      "version": "4.0.5",
      "whileInstalling": {
        "name": "****",
        "version": "1.7.6",
        "path": "C:\\Development\****"
      },
      "location": "node_modules/ngx-wheel",
      "dependents": [
        {
          "type": "prod",
          "name": "ngx-wheel",
          "spec": "^4.0.5",
          "from": {
            "location": "C:\\Development\****"
          }
        }
      ]
    }
  },
  "peerConflict": null,
  "strictPeerDeps": false,
  "force": false
}

I have tried --force and --legacy-peer-deps with no joy either

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants