akveo / nebular

:boom: Customizable Angular UI Library based on Eva Design System :new_moon_with_face::sparkles:Dark Mode
https://akveo.github.io/nebular
MIT License
8.06k stars 1.51k forks source link

Add support of Angular 15 #3142

Open schroedan opened 2 years ago

schroedan commented 2 years ago

Issue type

I'm submitting a ... (check one with "x")

Issue description

Nebular has basic compatibility with Angular 15. Currently we must override the dependencies as follows:

{
  "overrides": {
    "@nebular/auth@9.1.0-rc.8": {
      "@angular/animations": "15.0.1",
      "@angular/cdk": "15.0.0",
      "@angular/common": "15.0.1",
      "@angular/core": "15.0.1",
      "@angular/forms": "15.0.1",
      "@angular/router": "15.0.1"
    },
    "@nebular/theme@9.1.0-rc.8": {
      "@angular/animations": "15.0.1",
      "@angular/cdk": "15.0.0",
      "@angular/common": "15.0.1",
      "@angular/core": "15.0.1",
      "@angular/router": "15.0.1"
    },
    "@nebular/security@9.1.0-rc.8": {
      "@angular/common": "15.0.1",
      "@angular/core": "15.0.1",
      "@angular/router": "15.0.1"
    }
  }
}
metacubic commented 1 year ago

No need to override the dependencies.

We just drop down the CDK version to 14.2.7 and it works fine.

Also update Nebular to version 10.

Version 9 only works really on 13, breaks on 14.

kisimediaDE commented 1 year ago

Is there a roadmap to see when the angular 15 support will be released?

smile2014 commented 1 year ago

Is there a roadmap to see when the angular 15 support will be released?

jgomesmv commented 1 year ago

According to this PR: https://github.com/akveo/nebular/pull/3130#issuecomment-1335373571 It will be on the 1Q of 2023.

@azaiko-akveo @elupanov @yggg is itpossible to give some feedback on this?

Cheers!

Tgentil commented 1 year ago

what is the latest version of angular that nebular accepts? I started using angular a little while ago and in my first project I can't use $ ng add @nebular/theme .

kisimediaDE commented 1 year ago

what is the latest version of angular that nebular accepts? I started using angular a little while ago and in my first project I can't use $ ng add @nebular/theme .

I think everything below 15 is currently ok. Had no issues with it so far. And installation worked without issues.

(Btw tried nebular with a small side project and angular 15 - ignoring the warnings and errors and also this worked very good)

noby256 commented 1 year ago

I'm using latest stable versions (angular@^15.2.0, node v18, npm v9) and it's failing.

 $ ng add @nebular/theme
ℹ Using package manager: npm
⚠ Unable to find compatible package. Using 'latest' tag.
⚠ Package has unmet peer dependencies. Adding the package may not succeed.

...
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/animations@"^14.0.0" from @nebular/theme@10.0.0
...

✖ Packages installation failed, see above.
kisimediaDE commented 1 year ago

I'm using latest stable versions (angular@^15.2.0, node v18, npm v9) and it's failing.

 $ ng add @nebular/theme
ℹ Using package manager: npm
⚠ Unable to find compatible package. Using 'latest' tag.
⚠ Package has unmet peer dependencies. Adding the package may not succeed.

...

✖ Packages installation failed, see above.

With ng add @nebular/theme you have to use a version that is smaller than Angular 15. Because nebular currently doesn't support Angular 15 or above. (Only with a manuell Installation of nebular you can force the installation also with angular 15, what I absolutely not recommend!!!)

CaptainGlac1er commented 1 year ago

Is there a roadmap to see when the angular 15 support will be released?

kisimediaDE commented 1 year ago

Is there a roadmap to see when the angular 15 support will be released?

As writen here https://github.com/akveo/nebular/pull/3130#issuecomment-1461655561 It will be there soon!

elupanov commented 1 year ago

New release with Angular 15 just released https://github.com/akveo/nebular/releases/tag/v11.0.0