-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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 export of the module has or is using private name 'Props'.ts #1678
Comments
We only see this issue when bundling our code and emitting declarations (ie., The workaround is to either use inline type definition like @kmq116 has shown above or to export it (e.g., |
Wow, very thanks !!! |
I'm reopening this. I don't fully understand it, but the bottom line is that the code shown in the docs leads to an error. |
Added |
I create a vue3 + typescript + vite project , when I packaging a component by <script setup lang="ts">, I refer to the documents of <script setup>

but get this issue

then I tried using the following

I can see the error disappear
I wonder what the reason is 🤔
The text was updated successfully, but these errors were encountered: