-
Notifications
You must be signed in to change notification settings - Fork 127
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
Issue after Angular 9 upgrade #429
Comments
I am also facing the same issue after updating to v9. The code was working on v8. |
This error is only thrown when using the packages For now, you can use the share directive with angular 9 from the package I will release a new version in the upcoming days! |
How can we set up the custom config with This is my current implementation in
Is it possible to change this using |
@AnkitSharma-007 Same way |
Yes this is working. Need to do some changes in the code. Earlier : app.module.ts
component.html
Now: app.module.ts
component.html
component.ts
Here is my repo with working code in Angular 9 https://github.com/AnkitSharma-007/blogging-app-with-Angular-CloudFirestore |
I have to agree, that when using @ngx-share/core although I can get it to work, the themes/styles do not apply in the same way. It would be helpful (if possible) to provide a working stackblitz using core. |
@MurhafSousli Any progress on this? Has this been resolved? |
can u guide me in angular 8 how make it work |
This stop working since update to angular 9 too, but i have this issue:
Any Idea about this? Best! |
Hi @MurhafSousli do you need some help with resolving the issue? |
@neaptolem I currently don't have an internet connection at home due to my relocation, if you can give me a fix PR. I can publish it from work. |
@MurhafSousli I try update project to Angular 9 version. But I don't have permission to push the branch with the update. |
@MurhafSousli when can we expect a fix for this issue? Thanks for your great work! |
@MurhafSousli i really like your work!! Thanks! Looking forward to the new version!! Best Regards, David |
+1 |
@MurhafSousli Great project. Looking forward to Angular 9 support. |
+1 |
1 similar comment
+1 |
+1 its sad to see that this amazing project is some sort of abandoned |
@neaptolem Please can you let me know what code changes you did to make this work. I would like to apply them manually. Cheers |
@fromage9747 I just updated the library to angular 9, but I still have problems with the build. |
@neaptolem What issues are you still having? |
@fromage9747 I have made fork https://github.com/neaptolem/ngx-sharebuttons |
@neaptolem Thanks! I will give it a try later on today. |
Can we get a PR with that fork please? @MurhafSousli |
Here is my fork based off @neaptolem that I got working with angular 9.1. Main issue was fixes adding viewChild {static: true} in @ngx-share/core/share-button.directive.ts and fixing some of the material imports. Bumped versions and enabled ivy. I am using those files with @angular/9.1
Module import
|
How to install and use it with npm? @Martin-bee @MurhafSousli |
@davidtoral So far there are some failures on the Travis build. |
UPDATEI published a beta release, please install using Here is a stackblitz using the latest beta version |
@MurhafSousli Thank you! |
@MurhafSousli nice !! |
this is the code part that raise an exception: ctx.ref.shareButton -> ctx.ref is undefined ShareButton.ɵfac = function ShareButton_Factory(t) { return new (t || ShareButton)(ɵngcc0.ɵɵdirectiveInject(ɵngcc1.ShareService)); }; |
@cervelliriccardo please add reproduction using the beta version stackblitz |
@MurhafSousli using the beta I get this: Edit do i need to have angular-fontawesome to make it work? |
@sameretto indeed! |
~~Well, this is disappointing. I upgraded to v8 beta and I am still getting the same issue. Can anyone confirm that the beta release has fixed the issue in their app? ~~ Edit: This was my fault. Trying to replicate the issue in a stackblitz example assisted me in rectifying the issue. I have gotten the icons to load again. Now I just need to resolve a new issue of the ShareDirective.push being undefined when using create. |
I can confirm this is fixed in the Beta, thanks. |
very nice. confirmed it is fixed |
Confirming that the beta works for me. |
help please angular 9 |
@karincayazilim try and replicate what you are trying to do in a stackblitz example. You will locate the issue whilst doing it. That is what I did and it helped me. |
Hi, I'm using the beta version 8, but when I import the ShareIconsModule I'm getting :
My code : `import { NgModule } from '@angular/core'; import { BlogContentComponent } from './blog-content.component'; export const routes = [ @NgModule({ Any idea? Edit: added :
In my module. |
I am submitting a
What is the expected behavior?
No errors
What is the current behavior?
ERROR TypeError: Cannot read property 'shareButton' of undefined
What are the steps to reproduce?
<share-buttons [theme]="'modern-dark'"
[include]="['facebook','twitter','linkedin','pinterest','whatsapp','email','copy']"
[show]="5"
[url]="currentURL">
What is the use-case or motivation for changing an existing behavior?
Angular 9 support
Which versions are you using for the following packages?
Angular: 9
Angular CDK:9
Angular CLI:9.0.1
Angular-fontawesome: 0.5.0
Share buttons: 4.1.4
Is there anything else we should know?
Code was working fine in Angular 8, have checked documentation and code seems correct, cannot work our why since upgrading to 9.x this throws an error.
The text was updated successfully, but these errors were encountered: