Giter Club home page Giter Club logo

Comments (3)

joshgentry avatar joshgentry commented on June 2, 2024 2

Seconded, it's not clear at all how #3 could be suddenly working for anyone.

I haven't had much time to play with it, but the issues I see are:

  • A named ES6 import of "./qr_decode.worker" will not work (potentially without some other interpreting happening for magical compatibility in your workflow, Babel?)
  • Along those lines, defining new QRWorker() also should not work without magical compatibility processing.

I haven't had much time to test, but it seems the following changes to index.js solve the problem:

Remove:

import QRWorker from './qr_decode.worker';

Change:

this.webWorker = new QRWorker();

to:

this.webWorker = new Worker('qr_decode.worker.js');

If I have time, I'll throw together a very small PR for this, but please don't wait up for it.

from reactive-qr.

jorgeserras avatar jorgeserras commented on June 2, 2024

Installed the package from npm and I'm having the exact same issue.

from reactive-qr.

mm420admin avatar mm420admin commented on June 2, 2024

I'm having the same issues. Running react 16.8.4

from reactive-qr.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.