Comments (11)
Please update to 1.1.6
and let me know if everything is working correctly.
from react-qr-scanner.
@yudielcurbelo Thank you.
I have confirmed that the warnings are no longer present after updating to version 1.1.6
.
from react-qr-scanner.
Are you able to see this folder structure in your node_modules?
from react-qr-scanner.
If the warning persists, please update to 1.1.5
and let me know.
from react-qr-scanner.
@yudielcurbelo Thanks for your quick reply.
I have updated to 1.1.5
, but I am still experiencing this problem.
I have found that the warning mentions:
node_modules/@yudiel/react-qr-scanner/src/utilities/isObject.ts
On my disk I can find:
node_modules/@yudiel/react-qr-scanner/dist/cjs/utilities/isObject.d.ts
and
node_modules/@yudiel/react-qr-scanner/dist/esm/utilities/isObject.d.ts
from react-qr-scanner.
What version of node are you using, could you delete the node_modules folder and reinstall all dependencies?
from react-qr-scanner.
I am running v19.8.1
on macOS, encountered the same problem using docker image node:18.12.1-alpine
.
I tried deleting node_modules and reinstalling, without success.
I have created a repo to help you reproduce the issue:
https://github.com/floriscornel/example-qr
Running commands:
npm install
and npm start
, for me, results in:
...
WARNING in ./node_modules/@yudiel/react-qr-scanner/dist/esm/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/floriscornel/Developer/example-qr/node_modules/@yudiel/react-qr-scanner/src/utilities/off.ts' file: Error: ENOENT: no such file or directory, open '/Users/floriscornel/Developer/example-qr/node_modules/@yudiel/react-qr-scanner/src/utilities/off.ts'
WARNING in ./node_modules/@yudiel/react-qr-scanner/dist/esm/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/floriscornel/Developer/example-qr/node_modules/@yudiel/react-qr-scanner/src/utilities/on.ts' file: Error: ENOENT: no such file or directory, open '/Users/floriscornel/Developer/example-qr/node_modules/@yudiel/react-qr-scanner/src/utilities/on.ts'
webpack compiled with 14 warnings
Files successfully emitted, waiting for typecheck results...
Issues checking in progress...
No issues found.
from react-qr-scanner.
This is something specific to CRA #mswjs/msw#1030 (comment)
I do not distribute the src file in the library, but doing so should fix the issue. I will give it a try.
from react-qr-scanner.
@yudielcurbelo Can you make this fix for the 2.0.0-beta
version as well?
from react-qr-scanner.
I updated react-qr-scanner from 1.1.9
to 1.2.10
and the warnings reappeared. Going back to version 1.1.9
"solves" the problem.
from react-qr-scanner.
There is a new beta 2.0.0-beta.8
with a lot of changes. If the issue is not fixed here, I can add the src folder to the build output.
from react-qr-scanner.
Related Issues (20)
- useDeviceList() throws error when no cameras are available HOT 2
- README document is not up to date HOT 2
- Camera loading in ionic react-app HOT 5
- Bar codes are not getting scanned HOT 5
- How to use the useContinuousScanner HOT 5
- Scanner is not working in android apps HOT 4
- Can not turn on/off browser's camera by using setState HOT 4
- ERROR: Failed to execute 'detect' on BarcodeDetector': Barcode detection service unavailable HOT 10
- New version implementation HOT 3
- Allow versions < React 18 as peer dependency HOT 5
- Permissions on Safari are asked everytime HOT 1
- It is not possible to open the camera on an Asus notebook, cannot find its information HOT 4
- Camera Zoom HOT 3
- onError not supported anymore? HOT 7
- Possibility for video to go full height HOT 4
- About zoom component for IOS 16 HOT 2
- Web assembly directive is blocked in our server content security policy. Thus we are not able to use the package HOT 3
- About cameras not load at first in Android HOT 1
- ENOENT errors for package dependencies HOT 5
- Camera blank when I request the permission for the first time. HOT 1
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 react-qr-scanner.