vue-qr-reader icon indicating copy to clipboard operation
vue-qr-reader copied to clipboard

Vue is not defined

Open fanggangWeb opened this issue 6 years ago • 2 comments

when i npm install and import vue-qr-reader,there is a error. vue is not defined image

fanggangWeb avatar Jun 09 '18 15:06 fanggangWeb

@fanggangWeb Hello! are you using a vue project or is codebase without vue ? if is a vue project please use this instructions from the docs: https://pulilab.github.io/vue-qr-reader/#/vuecomponent

DonNicoJs avatar Jun 11 '18 09:06 DonNicoJs

I was able to run in development environment using the import VueQrReader from 'vue-qr-reader / dist / lib / vue-qr-reader.umd.js';      But when I want to generate the build for production this ' vue-qr-reader.umd.js' break the build, do you know what I should do in the webpack configuration to let vue-qr-reader.umd.js go through?

andreluiz1987 avatar Mar 03 '19 16:03 andreluiz1987