MurhafSousli / ngx-sharebuttons

Angular Share Buttons ☂
https://ngx-sharebuttons.netlify.app/
MIT License
518 stars 124 forks source link

i am geting error with Angualr version 15 #646

Closed joshigolu08 closed 1 year ago

joshigolu08 commented 1 year ago

image I am facing this issue with version 15 of angular

I try with the older version of ngx-sharebuttons (13,12, and 11 too) but the issue is the same there is nothing in the description about which version i have to use for angular 15 I set up a fresh project for it but the issue is the same

alucardu commented 1 year ago

Same issue here. Just installed the package in my Angular v15 project.

MurhafSousli commented 1 year ago

This info is not mentioned in the documentation, but you have to look at the changelog https://github.com/MurhafSousli/ngx-sharebuttons/blob/master/CHANGELOG.MD, If you have already tried v12 with Angular 15 and didn't work, it means the issue is in your project and I cannot help if you cannot reproduce it!

joshigolu08 commented 1 year ago

This info is not mentioned in the documentation, but you have to look at the changelog https://github.com/MurhafSousli/ngx-sharebuttons/blob/master/CHANGELOG.MD, If you have already tried v12 with Angular 15 and didn't work, it means the issue is in your project and I cannot help if you cannot reproduce it!

I tried with v12 but the issue is the same. also, you talked about there is a problem with my project so I also set up a fresh project but the issue is the same

joshigolu08 commented 1 year ago

I got the solution for Angular v15 follow the steps:-

problem solved Happy coding

MurhafSousli commented 1 year ago

Thanks for sharing!

HaydenFerries commented 10 months ago

I got the solution for Angular v15 follow the steps:-

  • install version 12 of ngx-sharebuttons
  • install @fortawesome/angular-fontawesome": "^0.12.0" because by default it will install v 0.13.0
  • if you are using CSS in the angular project so dont import styles in Style.css import them on Angular.json under the styles

problem solved Happy coding

This worked great for me, thanks so much.