AhsanAyaz / ngx-device-detector

An Angular v7+ library to detect the device, OS, and browser details.
https://ahsanayaz.github.io/ngx-device-detector
MIT License
517 stars 101 forks source link

Support For Angular 14.0 #247

Closed hipperbyte closed 2 years ago

hipperbyte commented 2 years ago

Support for Angular v14, please.

jornfranke commented 2 years ago

As a temporary workaround: You can make it run under Angular 14.0 by adding this to package.json

  "overrides": {

       "ngx-device-detector": {
      "@angular/cdk": "^14.0.0",
      "@angular/common": "^14.0.0",
      "@angular/core": "^14.0.0",
      "@angular/platform-browser": "^14.0.0"
    }
  },

However, be aware that this does not guarantee that it works under all circumstances. Hence, it is better that the maintainers of this package officially check if anything blocks under Angular 14

MikeMoolenaar commented 2 years ago

As a temporary workaround: You can make it run under Angular 14.0 by adding this to package.json

  "overrides": {

       "ngx-device-detector": {
      "@angular/cdk": "^14.0.0",
      "@angular/common": "^14.0.0",
      "@angular/core": "^14.0.0",
      "@angular/platform-browser": "^14.0.0"
    }
  },

However, be aware that this does not guarantee that it works under all circumstances. Hence, it is better that the maintainers of this package officially check if anything blocks under Angular 14

Thanks, works great. Just wanted to mention the "overrides" property is supported by NPM 8.3 and above, so make sure you have the latest version by running npm i -g npm.