-
-
Notifications
You must be signed in to change notification settings - Fork 392
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
vue-tsc complains when exporting additional TS types from SFC #923
Comments
Moving extra named type exports to an additional This was just extra confusing because it used to work but changed suddenly. (UPDATE - I made change to Vue docs and it's now more clear) |
Closing this to open a new issue for the follow up suggestion volar should show more helpful errors in this situtation, telling the user to move any extra named exports (whether types or otherwise) to a separate script block - rather than saying they should be moved to the top. |
In version 0.29.8, I was able to export additional types from my SFCs without any issues, while in version 0.31.1, everything works fine in VSCode, but when I run
vue-tsc
, I get errors like the following:(I'm not positive about the versions in between)
To clarify, in my component
Icon.vue
, I may be exporting additional types to use in other components. For example:The text was updated successfully, but these errors were encountered: