-
Notifications
You must be signed in to change notification settings - Fork 73
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
Default import? #251
Comments
Yes, I have the same problem. If I write
It seems like the export is a object, like the normal export in ES Module, not the default function component QRCode The problem is solved by wrapping QRCode with curly brackets. like |
I have to do the same. The named export is the only one that works for me too. TypeScript doesn't like it (unfortunately must use
|
I ran into this issue too. Here's a very minimal example to reproduce this: Create the following 2 files in a new directory:
The test script attempts to render If you try to run this with |
My workaround in typescript that allows me to use this package is:
This avoids the use of |
Facing the same. Might be because |
I have to do this for some reason:
The text was updated successfully, but these errors were encountered: