cssivision / react-native-qrcode

a minimalist qrcode component for react-native
MIT License
853 stars 304 forks source link

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

Open almorak opened 6 years ago

almorak commented 6 years ago

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 commented 6 years ago

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

tedwong commented 6 years ago

@almorak may I know how to resolve this issue?

almorak commented 6 years ago

@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.

bhusheth commented 5 years ago

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