-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Components dont have default export with multiple <script> #4423
Comments
Maybe a duplicate of #4294 as it seems that you can import what is exported in other files |
It seems if I add this to the bottom of the export default defineComponent({}); I created the branch |
@posva I try with the new version 3.2.6 but stay the same |
It seems caused by IDE plugin.Vetur doesn't support it now, you can try Volar instead. |
I use Volar @Bigfish8. How an IDE plugin can affect the compilation of Vue? |
Sorry, I was misleaded by the picture.It is indeed a compilation bug. |
I'm still having this issue in 3.2.9. I've been using the workaround Nisgrak and if I remove it in 3.2.9 the errors about SFCs not having a default export come back. |
@henribru you should update |
@edison1105 I did update both dependencies, actually. If Nisgrak's repo no longer reproduces the issue I can attempt to make another one later today |
@henribru works fine in playground, it's not a vue core bug. |
It works fine in vite project, or ignores the type check can also work normally.
|
Still an issue? 🤔 |
Yes, still not resolved. |
Version
3.2.4
Reproduction link
https://github.com/Nisgrak/test-setup-ts
Steps to reproduce
yarn serve
What is expected?
Can export interfaces and other vars in a normal
<script>
tag having an<script setup>
oneWhat is actually happening?
An error with the default export of the HelloWorld component
I try to create a interface of the props of a components and export it, using the new
<script setup>
, but it don't work and in the docs it says if have to export something must be in a normal<script>
The text was updated successfully, but these errors were encountered: