Open flistonfr opened 2 years ago
Hi @flistonfr I am wondering if you also got errors such as the ones described in this other issue
@raulra08 I don't believe is the same. Yours can't find the file. Mine is an import issue.
In my case, if a change in file _'/nodemodules/html5-qrcode/esm/zxing-html5-qrcode-decoder.js':
import * as ZXing from "../third_party/zxing-js.umd";
to
import * from "../third_party/zxing-js.umd";
Error is gone and build ok.
But, the error still occurs during install because I have to change build files. Anyone knows a workaround?
Thanks!
I wonder if it could be an issue with transitive dependencies and the versions you are using.
Anyways, for other who might know more/better I think another thing you could try to do is to maybe publish a public version of the code involved in this issue showing up.
So, maybe your @ ./app/javascript/controllers/picking_controller.js
?
And config files like webpack, package.json etc
@flistonfr
Exact same issue here, @flistonfr. I'm using Ruby on Rails with Stimulus.js as a front-end framework, and webpack to build the Javascript. What's you'r setup. Interestingly the fix you describe with zxing-html5-qrcode-decoder.js didn't work for me.
@fydelio @raulra08 @flistonfr I actually figured out how to fix that question. but seem stupid way. I just merge the zxing-js.umd content prepends in zxing-html5-qrcode-decoder.js and changes related variables.
Despite the fact that is working correctly, I get errors while building:
"export 'BarcodeFormat' (imported as 'ZXing') was not found in '../third_party/zxing-js.umd'
Full errors: https://pastebin.com/raw/QRTh97su
This errors makes that I can't upload code to production enviroment.
I'm using versions 2.1.6.
Someone came across this problem?
Thanks!