-
Notifications
You must be signed in to change notification settings - Fork 305
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
TypeError: (0 , _bwipJs.qrcode) is not a function #334
Comments
Are you planning to provide some code to reproduce the issue? |
Actually, I think this is not a bwip-js issue but whatever bundler you are using. Is this typescript or some other framework? |
Hi @metafloor ,
Returns undefined. drawingSVG exists, but not qrcode as if it was not exported.
But qrcode is not exported? |
As I mentioned above, what platform/bundler/framework are you using? This is not a bwip-js error but a problem with the underlying framework. |
Hi @metafloor , |
You need to enable package.json exports: https://parceljs.org/features/dependency-resolution/#enabling-package-exports |
It completely breaks my code and stops working if I enable it. |
@metafloor Is this something we can do? |
Any kind of "proxy" would break static analysis and tree-shaking done by typescript and other bundlers. The exports map is how packages are supposed to structure their exports for modern build tools. Is it possible to set per-package (per import) configuration settings with parcel? I had never heard of it before, so know nothing about it. |
I can change my bundler and do more tests. Thanks |
I am using version 4.3.2
However I get that qrcode and drawingSVG are undefined, the import I am using is:
The text was updated successfully, but these errors were encountered: