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

Dependencies to Node.js packages #1229

Open
damianprzygodzki opened this issue Sep 18, 2022 · 1 comment
Open

Dependencies to Node.js packages #1229

damianprzygodzki opened this issue Sep 18, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@damianprzygodzki
Copy link

When trying to use together with Webpack >= 5, which is deprecating polyfills for node packages it is not possible to use this lib.

I think, switching this dependecies directly to browserify ones would fix the issues.

@damianprzygodzki damianprzygodzki added the bug Something isn't working label Sep 18, 2022
@mubaidr
Copy link
Owner

mubaidr commented Sep 20, 2022

Hey!

The only dependency this package has jimp which is used to read image files when this library is imported/used in Nodejs environment.

https://github.com/mubaidr/Javascript-Barcode-Reader/blob/master/src/utilities/getImageDataFromSource.ts#L32

It should work as it is, but you could try adding jimp to externals for webpack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants