angular2-qrcode
angular2-qrcode copied to clipboard
Cannot find module '../build/Release/canvas'
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
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
You need install
sudo apt-get install libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++