Comments (3)
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.
Installed the package from npm and I'm having the exact same issue.
from reactive-qr.
I'm having the same issues. Running react 16.8.4
from reactive-qr.
Related Issues (12)
- Not on npm, and demo link 404 HOT 1
- Not working HOT 2
- Demo broken
- i got only 3 files after npm install HOT 2
- React 17 support? HOT 1
- React electron desktop + typescript + tray functionality + mac and windows build
- get error when trying a minimal test using CRA HOT 5
- Error on import reactive-qr HOT 2
- Latest changes not published to NPM HOT 1
- Confusing error value
- Demo Page Not Work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reactive-qr.