SuperiorJT / angular2-qrcode

An Angular 2 component that generates a QR Code.
94 stars 42 forks source link

Cannot find module '../build/Release/canvas' #24

Open khawajaasim opened 7 years ago

khawajaasim commented 7 years ago

Hi, I am new to Angular2 and I am creating an application for QRCode generation and I am using this library for that, but somehow I am unable to get it worked. It says Canvas module not found, and it's dependency is not installed as well.

can anyone help me on this? Thank You

damian-tarnawsky commented 7 years ago

Found this too and had to switch to a different npm module "angular2-qrcode-generator" which doesn't have a dependency on npm Canvas. For me Canvas required python to be installed and i didn't want to do that just to get a qr code to appear

trubachoff commented 7 years ago

You need install sudo apt-get install libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++