olefirenko / vue-barcode-reader

A Vue.js set of components to scan barcodes and QR codes.
208 stars 75 forks source link

Sourcemap points to missing source files #49

Open LiiXoo opened 1 year ago

LiiXoo commented 1 year ago

I've got this error when Im testing this. Vue 3 / Vite, how can I fix it?

Sourcemap for "E:/BarcodeReaderTest/node_modules/@zxing/library/esm/index.js" points to missing source files

bin-one commented 1 year ago

There is a pull request waiting on zxing libs https://github.com/zxing-js/library/pull/546

Temporary and hacky fix is to remove or rename all "sourceMappingURL" in the comments on the last line of all .js fles in the node_modules/@zxing/library/esm directory. In *nix its a straight forward find & sed or repl thing.

This is not a solution, but a way to de-clutter your console while waiting for the pull request to be merged in. Mucking around in node_modules is frowned upon and will be lost upon update.