ngx-device-detector: Error after update

After update:

`"export ‘DeviceDetectorModule’ was not found in ‘ngx-device-detector’

ERROR in src/app/core/core.module.ts:15:10 - error TS2305: Module '"../../../node_modules/ngx-device-detector/ngx-device-detector"' has no exported member 'DeviceDetectorModule'.

15 import { DeviceDetectorModule } from 'ngx-device-detector';`

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 16
  • Comments: 19 (4 by maintainers)

Most upvoted comments

@elementalPRESS, @drewpayment, @marlonbaskin, @edwincabrejos, @air-Design, @veenagadag, @MoxxiManagarm , @quosol , @ksrebrev , @ochikov , @madviral , @Ruslancic. The issue has been fixed with the latest release 1.5.2. Please upgrade your dependencies. 🙂 Also, thanks for being awesome. 🎉

Will now release the 2.0.0 without the DeviceDetectorModule. Closing the issue. Feel free to re-open if it persists 🙂

@AhsanAyaz - I would kindly suggest that you re-version this update to 2.0. Such a major, breaking change really shouldn’t be part of a minor release. Most users wouldn’t expect an update from 1.46 to 1.5 to include breaking changes, if you’re going by the rules of semantic versioning (which is highly encouraged): https://semver.org/

Given a version number MAJOR.MINOR.PATCH, increment the:

  1. MAJOR version when you make incompatible API changes,
  2. MINOR version when you add functionality in a backwards compatible manner, and
  3. PATCH version when you make backwards compatible bug fixes.

Same problem. Downgrade to 1.4.6

@DSRM For me it was enough to remove import {DeviceDetectorModule} from 'ngx-device-detector'; and DeviceDetectorModule.forRoot() from app.module.ts after an update.

Confirmed, same problem.

Same problem. Downgrade to 1.4.6