-
Notifications
You must be signed in to change notification settings - Fork 99
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
Only named exports may use 'export type' #590
Comments
Hi, Thanks for the reporting, but I can't reproduce any of these issue, everything works perfectly fine to me. Even using different code playgrounds I see no issue: So if you have any hints/ideas, I'd love to hear them. Edit: I think the problem is that you are using an old version of TS. For example, see this TS issue: |
Hello That's right, but angulat 13 is not able to use higher TypeScript versions (max version 4.7). If exports are escaped // @ts-ignore everything works, but unfortunately I won’t be able to do this in the library. Need named exports |
I think the https://stackblitz.com service ignores TS errors |
Is it possible to add a separate version for Angular with escaped exports (at least) with the __betta prefix (for example)? Or you will have to wrap the library code in a separate library with a fix |
This is how we managed to fix the export error
instead
|
Hi, I have kind of the same issue using Nuxt 3:
And the error is:
I followed the instruction in https://fancyapps.com/resources/integration/#vue |
@AsbDaryaee Hi, This is a misleading message - Maybe try loading it directly, like this: import { Fancybox } from '@fancyapps/ui/dist/fancybox/fancybox.esm.js'; Working demo - https://stackblitz.com/edit/js-xue4qe?file=index.js |
Many thanks for your attention, I tried this and it's working fine:
|
Describe the bug
My settings:
Angular 13
"tslib": "^2.0.0",
"typescript": "~4.6.4"
"@fancyapps/ui": "^5.0.28",
Reproduction
Additional context
No response
The text was updated successfully, but these errors were encountered: