Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

ERROR TypeError: sp is not a constructor #33

Closed
kkotak opened this issue Apr 6, 2017 · 8 comments
Closed

ERROR TypeError: sp is not a constructor #33

kkotak opened this issue Apr 6, 2017 · 8 comments

Comments

@kkotak
Copy link

kkotak commented Apr 6, 2017

Using with Angular4.x non AOT compile. The Error is Run-time on latest chrome. Here's the stack trace:

myComponent.html:2843 ERROR TypeError: sp is not a constructor
at SignaturePad.ngAfterContentInit (signature-pad.js:20)
at callProviderLifecycles (core.es5.js:11046)
at callElementProvidersLifecycles (core.es5.js:11027)
at callLifecycleHooksChildrenFirst (core.es5.js:11011)
at checkAndUpdateView (core.es5.js:12028)
at callViewAction (core.es5.js:12340)
at execEmbeddedViewsAction (core.es5.js:12312)
at checkAndUpdateView (core.es5.js:12026)
at callViewAction (core.es5.js:12340)
at execEmbeddedViewsAction (core.es5.js:12312)
at checkAndUpdateView (core.es5.js:12026)
at callViewAction (core.es5.js:12340)
at execComponentViewsAction (core.es5.js:12286)
at checkAndUpdateView (core.es5.js:12031)
at callViewAction (core.es5.js:12340)

@lathonez
Copy link
Collaborator

lathonez commented Apr 6, 2017 via email

@kkotak
Copy link
Author

kkotak commented Apr 7, 2017

Yes. I'm using 2.4.0.

@lathonez
Copy link
Collaborator

lathonez commented Apr 7, 2017 via email

@anhiliate
Copy link

Same issue reproduced by me too. Version is also 2.4.0. Code worked fine 3 days ago

@lathonez
Copy link
Collaborator

lathonez commented Apr 8, 2017 via email

@anhiliate
Copy link

Hi Stephen,

thanks for your help and sorry for my stupid question.
I had my dependencies outdated. Clearing the node modules and 'npm install' get it working again.

Cheers,
Anh

@lathonez
Copy link
Collaborator

lathonez commented Apr 9, 2017 via email

@teresahoes
Copy link

Also clearing node_modules and doing npm install worked for me.. thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants