coreui / coreui-angular

CoreUI Components Library for Angular https://coreui.io/angular/docs/
https://coreui.io/angular/
MIT License
248 stars 146 forks source link

Angular v14 #137

Closed gaweCodes closed 2 years ago

gaweCodes commented 2 years ago

I want to update my Angular application to Angular V14. However, @core-ui/angular's peer-dependency still requires Angular v13. When can I expect the corresponding update?

xidedix commented 2 years ago

@gaweCodes testing at the moment - we're going to bump angular version later this week

gaweCodes commented 2 years ago

The latest update allowed me to update to Angular v14. If I serve thy app i get the following messages:

./node_modules/@coreui/angular/fesm2020/coreui-angular.mjs:5:0-84 - Error: Module not found: Error: Can't resolve '@angular/cdk/coercion' in 'path_to_node_modules\@coreui\angular\fesm2020'

./node_modules/@coreui/angular/fesm2020/coreui-angular.mjs:13:0-44 - Error: Module not found: Error: Can't resolve '@angular/cdk/layout' in 'path_to_node_modules\@coreui\angular\fesm2020'

./node_modules/@coreui/angular/fesm2020/coreui-angular.mjs:14:0-42 - Error: Module not found: Error: Can't resolve '@angular/cdk/a11y' in 'path_to_node_modules\@coreui\angular\fesm2020'

@xidedix Any ideas how to fix it?

xidedix commented 2 years ago

@gaweCodes do you have@angular/cdk v14 installed as a dependency of your app? see: package.json

gaweCodes commented 2 years ago

Problem solved. You can close the issue.

coyoteecd commented 2 years ago

@xidedix could you still publish a patch release (of v2 and v4) that has peer deps updated to include Angular v14? I am getting an error when npm checks peer dep compatibility:

14:50:25  npm ERR! code ERESOLVE
14:50:25  npm ERR! ERESOLVE could not resolve
14:50:25  npm ERR! 
14:50:25  npm ERR! While resolving: @coreui/angular@2.13.1
14:50:25  npm ERR! Found: @angular/common@14.0.4
....
xidedix commented 2 years ago

@coyoteecd as a workaround you could try npm install @coreui/angular --force