GithubHelp home page GithubHelp logo

Comments (11)

yudielcurbelo avatar yudielcurbelo commented on August 19, 2024 1

Please update to 1.1.6 and let me know if everything is working correctly.

from react-qr-scanner.

floriscornel avatar floriscornel commented on August 19, 2024 1

@yudielcurbelo Thank you.
I have confirmed that the warnings are no longer present after updating to version 1.1.6.

from react-qr-scanner.

yudielcurbelo avatar yudielcurbelo commented on August 19, 2024

Are you able to see this folder structure in your node_modules?

image

from react-qr-scanner.

yudielcurbelo avatar yudielcurbelo commented on August 19, 2024

If the warning persists, please update to 1.1.5 and let me know.

from react-qr-scanner.

floriscornel avatar floriscornel commented on August 19, 2024

@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

Screenshot 2023-03-22 at 09 32 42

from react-qr-scanner.

yudielcurbelo avatar yudielcurbelo commented on August 19, 2024

What version of node are you using, could you delete the node_modules folder and reinstall all dependencies?

from react-qr-scanner.

floriscornel avatar floriscornel commented on August 19, 2024

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.

yudielcurbelo avatar yudielcurbelo commented on August 19, 2024

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.

short-dsb avatar short-dsb commented on August 19, 2024

@yudielcurbelo Can you make this fix for the 2.0.0-beta version as well?

from react-qr-scanner.

Havock94 avatar Havock94 commented on August 19, 2024

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.

yudielcurbelo avatar yudielcurbelo commented on August 19, 2024

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)

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.