0

I get the following error when trying to compile. Please help.

Module not found: Error: Can't resolve 'html2canvas'

Jason
  • 11
  • 1
  • 3
  • may be you have not installed `html2canvas`, try to run npm install again – Niladri Apr 18 '19 at 20:37
  • Check this: https://stackoverflow.com/questions/38998844/html2canvas-to-render-document-pdf-with-css-styling-using-angular2-typescript – Houssam Badri Apr 18 '19 at 20:38
  • I have tried all this. I have uninstalled, reinstalled. I have changed versions. None of this works. There has to be something else. – Jason Apr 19 '19 at 13:55
  • Did you find any solution?I am facing the same issue – Molly Aug 01 '19 at 12:35

1 Answers1

2

Install html2canvas and its typings with following commands

npm install --save html2canvas

npm install --save @types/html2canvas