react-native-qrcode icon indicating copy to clipboard operation
react-native-qrcode copied to clipboard

Failed to load bundle. Metro bundler has encountered an internal error

Open almorak opened this issue 6 years ago • 4 comments

2018-04-17 1 20 34

Version: react-native-cli: 2.0.1 react-native: 0.53.0

How happened 1 install this library.

2 just add
import QRCode from 'react-native-qrcode'; to one of screens.

3 refresh the simulator and got this.

almorak avatar Apr 17 '18 05:04 almorak

update: it should be caused by at line: var qr = require('qr.js');

almorak avatar Apr 17 '18 10:04 almorak

@almorak may I know how to resolve this issue?

tedwong avatar May 07 '18 13:05 tedwong

@tedwong
i forgot how to fix it - -", i removed it from my project. but i choose to use react-native-qrcode-svg instead. Its performance is better, shorter loading time.

almorak avatar May 11 '18 08:05 almorak

@tedwong I had the same problem. And installing dependancies manually. It worked! In my case dependency was qr.js (npm install [email protected] --save)

bhusheth avatar Aug 16 '18 18:08 bhusheth