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

[Bug] Support for Angular 15 #132

Closed
leoz2007 opened this issue Feb 28, 2023 · 1 comment
Closed

[Bug] Support for Angular 15 #132

leoz2007 opened this issue Feb 28, 2023 · 1 comment
Labels

Comments

@leoz2007
Copy link

Ngx-CookieConsent Version

ngx-cookieconsent@4.0.1

CookieConsent Version

3.1.1

Angular CLI (or Nx CLI) Version

~15.1.6

Node Version

16.19.0

OS Version

Mac os 13.2

Expected Behaviour

Install package for Angular 15

Thank you in advance :)

Actual Behaviour

Angular 15 not supported

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: XXXXXXXX@0.0.0
npm ERR! Found: rxjs@7.8.0
npm ERR! node_modules/rxjs
npm ERR!   rxjs@"~7.8.0" from the root project
npm ERR!   peer rxjs@"^6.5.3 || ^7.4.0" from @angular/common@15.2.0
npm ERR!   node_modules/@angular/common
npm ERR!     @angular/common@"^15.1.0" from the root project
npm ERR!     peer @angular/common@">=14.0.0" from ngx-cookieconsent@4.0.1
npm ERR!     node_modules/ngx-cookieconsent
npm ERR!       ngx-cookieconsent@"*" from the root project
npm ERR!   1 more (@angular/core)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer rxjs@"~7.5.0" from ngx-cookieconsent@4.0.1
npm ERR! node_modules/ngx-cookieconsent
npm ERR!   ngx-cookieconsent@"*" 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.

Steps to reproduce the behaviour

npm install --save cookieconsent

npm install --save ngx-cookieconsent

tinesoft added a commit that referenced this issue Jan 9, 2024
…videNgcCookieConsent()`

BREAKING CHANGE: Angular `v15` is now the minimal version to use the library

If you're using new Angular Standalone API, you can now leverage `provideNgcCookieConsent(config)`
(instead of `NgcCookieConsentModule.forRoot(config)`) to configure your (ng)module-less application

Closes #132
github-actions bot pushed a commit that referenced this issue Jan 10, 2024
# [5.0.0](v4.0.2...v5.0.0) (2024-01-10)

### Features

* **core:** add `mobileForceFloat` option in the config ([38c0346](38c0346)), closes [#139](#139)
* update to Angular `v15` and add standalone api support via `provideNgcCookieConsent()` ([e34b18a](e34b18a)), closes [#132](#132)

### BREAKING CHANGES

* Angular `v15` is now the minimal version to use the library

If you're using new Angular Standalone API, you can now leverage `provideNgcCookieConsent(config)`
(instead of `NgcCookieConsentModule.forRoot(config)`) to configure your (ng)module-less application

***
[skip ci]
Copy link

🎉 This issue has been resolved in version 5.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

No branches or pull requests

2 participants