Skip to content

Components dont have default export with multiple <script> #4423

Open
@Nisgrak

Description

@Nisgrak

Version

3.2.4

Reproduction link

https://github.com/Nisgrak/test-setup-ts

Steps to reproduce

  1. Init the proyect with yarn serve
  2. See the error that happen with HelloWorld components

What is expected?

Can export interfaces and other vars in a normal <script> tag having an <script setup> one

What 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>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions