-
Notifications
You must be signed in to change notification settings - Fork 155
Compatibility with Ivy #78
Comments
Looks like it'll be fixed by angular/angular#30200 |
Although angular/angular#30200 did not fix it, angular/angular#30591 should. |
After applying upstream's change, we get the following message:
Back to troubleshooting then. |
Hi there! No one has a solution for this? |
We ran into this as well after updating to Angular 9 with Ivy enabled. We were using the latest package available, 2.11.0. Everything was working fine before the upgrade, and we didn't change anything related to our components using SignaturePad. Debugging through our component, which we have setup according to the readme @ViewChild(SignaturePad) signaturePad: SignaturePad; ngAfterViewInit() {
// this.signaturePad is now available
this.signaturePad.set('minWidth', 5); // set szimek/signature_pad options at runtime
this.signaturePad.clear(); // invoke functions from szimek/signature_pad API
} in I've done some light digging and don't see any obvious reason for this. I finally tried just embedding the complete code for I'm not super familiar with how this project is being built for publishing to NPM but perhaps the package dependencies and or build tools need some updating in order for this to work with Ivy? |
In And it works. I'm not sure about your exact issue, but give it a try :) |
Thanks for the suggestion. I tried forcing that dependency but still get the same issue.
Curious how your solution fixes any issues. In using my own copied version of |
for me the fix was changing the import of the component from |
@joaqcid Thank you! Your suggestion fixed the problem |
@joaqcid i tried this but it is saying that angular2-signaturepad has no exported member signaturePad |
@KunalBurangi hmm, weird |
Same issue here |
this is what i have in my code can you provide more information? |
@joaqcid the fix didn't work for me as it still sees the signature pas as undefined. It says that it's not compatible with angular Ivy. Any recommendations ? |
As explained here, the npm package currently does not run in Ivy due to CommonJS/UMD not supported.
Error: There is no format with import statements in '../node_modules/angular2-signaturepad' entry-point.
Would you please give a go at ng-packagr so that your npm package is compatible?
The text was updated successfully, but these errors were encountered: