You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The source-map-loader for Webpack has trouble parsing the zxing module.
WARNING in ./node_modules/@zxing/library/esm5/core/oned/rss/expanded/decoders/AI013103decoder.js
Module Warning (from ./node_modules/source-map-loader/index.js):
(Emitted value instead of an instance of Error) Cannot find source file '../../../../../../src/core/oned/rss/expanded/decoders/AI013103decoder.ts': Error: Can't resolve '../../../../../../src/core/oned/rss/expanded/decoders/AI013103decoder.ts' in 'C:\Users\erik\repos\zxing-source-map-warning\node_modules@zxing\library\esm5\core\oned\rss\expanded\decoders'
@ ./node_modules/@zxing/library/esm5/core/oned/rss/expanded/decoders/AbstractExpandedDecoderComplement.js 7:24-52
@ ./node_modules/@zxing/library/esm5/core/oned/rss/expanded/RSSExpandedReader.js
@ ./node_modules/@zxing/library/esm5/index.js
@ ./main.ts
To Reproduce
Steps to reproduce the behavior: git clone [email protected]:CervEdin/zxing-source-map-warning.git && cd zxing-source-map-warning/ && npm i && npx webpack
Expected behavior
I'm really not too knowledgeable about this stuff.
AFAIK it's because only the compiled .js files are in the package and not the .ts files.
Obviously, no warnings would be great.
Could probably solve that by excluding zxing from the source map loader but it'd probably be good if I could get it working in case I want to see what's going on inside the lib.
If you using the library from node_modules you really shouldn't be loading it's source maps. In fact, I think we shouldn't be publishing them at all in that case. If you downloaded the library source code and you are trying to compile it, I would recommend you to look into this repository build files for a how-to.
Describe the bug
The
source-map-loader
for Webpack has trouble parsing thezxing
module.To Reproduce
Steps to reproduce the behavior:
git clone [email protected]:CervEdin/zxing-source-map-warning.git && cd zxing-source-map-warning/ && npm i && npx webpack
Expected behavior
I'm really not too knowledgeable about this stuff.
AFAIK it's because only the compiled
.js
files are in the package and not the.ts
files.Obviously, no warnings would be great.
Could probably solve that by excluding zxing from the source map loader but it'd probably be good if I could get it working in case I want to see what's going on inside the lib.
Node:
Additional context
Here's the same issue for another package and how they resolved it
apollographql/react-apollo#597
The text was updated successfully, but these errors were encountered: