angular2-qrcode icon indicating copy to clipboard operation
angular2-qrcode copied to clipboard

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

Open khawajaasim opened this issue 7 years ago • 2 comments

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

khawajaasim avatar May 15 '17 10:05 khawajaasim

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

damian-tarnawsky avatar May 26 '17 12:05 damian-tarnawsky

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

trubachoff avatar Jul 13 '17 13:07 trubachoff