qrcodejs icon indicating copy to clipboard operation
qrcodejs copied to clipboard

Uncaught TypeError: Cannot read property '_android' of undefined

Open ling121785 opened this issue 6 years ago • 3 comments

Uncaught TypeError: Cannot read property '_android' of undefined

ling121785 avatar Apr 18 '18 01:04 ling121785

i met the same error when i use qrcodejs in nwjs project but it's quite strange that the error only appears in build mode

LazyNeo avatar Jun 13 '18 02:06 LazyNeo

Well, this repo is quite out-dated, and didn't declare 'use strict' originally. The keyword 'this' was used to represent 'window', and it's fine without 'use strict'. But when you build or even dev your project with tools like webpack, you get this undefined error because webpack automatically add 'use strict' for you.

LongchongWang avatar Apr 23 '19 09:04 LongchongWang

fixed https://github.com/davidshimjs/qrcodejs/pull/114/commits/68668bc3574152d2296c565674a22b5679896edb

ddanngg avatar Jul 24 '19 07:07 ddanngg