Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React (CRA 5) Module Warning using this library #499

Open
erosval opened this issue Jan 26, 2022 · 2 comments
Open

React (CRA 5) Module Warning using this library #499

erosval opened this issue Jan 26, 2022 · 2 comments

Comments

@erosval
Copy link

erosval commented Jan 26, 2022

When I use this library with React (create-react-app v 5.x) I get this warning:

WARNING in ./node_modules/@zxing/library/esm/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from ...

From what I've learned the reporting can be avoided by disabling the use of the "source map" for the entire application which is very useful to me though.

https://stackoverflow.com/questions/70363738/typescript-cra-with-msw-failed-to-parse-source-map

https://giters.com/facebook/create-react-app/issues/11924

The simplest solution, however, would be to put the source map inside the package, as is done for other libraries.

I don't know if there are other solutions but it would help me to have this possibility and solve the warning

@maxammann
Copy link

I haven't investigated this issue, but it seems like configuring webpack to ignore the warnings seems reasonable. I'm suspecting that these warnings will eventually just go away.

Copy link

Stale issue message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants