brunoc107 / ngx-viacep

Implementação da API do serviço ViaCep para Angular!
MIT License
30 stars 9 forks source link

Incompatibilidade #117

Open Hudsonjr90 opened 8 months ago

Hudsonjr90 commented 8 months ago

Versão 3.4.1 não funciona no angular15, estou com um projeto que usava angular14 e foi atualizado pra versão 15, porém está quebrando na biblioteca do cep.

brunoc107 commented 7 months ago

A versão do angular atual da lib é a 16.2.0. Provavelmente não irá funcionar em projetos com versões mais antigas. Qual a mensagem de erro que vc recebeu?

mayder commented 4 months ago

Depois que atualizei meu projeto também tive problemas de incompatibilidade.

PS W:\inspect_app> npm install
npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: @brunoc/ngx-viacep@3.4.1 npm ERR! Found: @angular/common@17.3.8 npm ERR! node_modules/@angular/common npm ERR! @angular/common@"~17.3.8" from the root project npm ERR! peer @angular/common@"17.3.8" from @angular/forms@17.3.8 npm ERR! node_modules/@angular/forms npm ERR! @angular/forms@"~17.3.8" from the root project npm ERR! peer @angular/forms@">=15.2.0" from @herdwatch-apps/ngx-ionic-image-viewer@2.1.7 npm ERR! node_modules/@herdwatch-apps/ngx-ionic-image-viewer npm ERR! @herdwatch-apps/ngx-ionic-image-viewer@"^2.1.7" from the root project npm ERR! 2 more (@ionic/angular, angular-validation-summary) npm ERR! 6 more (@angular/platform-browser, ...) npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer @angular/common@"^16.2.0" from @brunoc/ngx-viacep@3.4.1 npm ERR! node_modules/@brunoc/ngx-viacep npm ERR! @brunoc/ngx-viacep@"^3.4.1" from the root project npm ERR! npm ERR! Conflicting peer dependency: @angular/common@16.2.12 npm ERR! node_modules/@angular/common npm ERR! peer @angular/common@"^16.2.0" from @brunoc/ngx-viacep@3.4.1 npm ERR! node_modules/@brunoc/ngx-viacep npm ERR! @brunoc/ngx-viacep@"^3.4.1" 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.