Skip to content

script-setup: Types need to be imported separately with import type .... #3183

@JSerFeng

Description

@JSerFeng

Version

3.0.5

Reproduction link

https://github.com/JSerFeng/bug/blob/master/src/App.vue

Steps to reproduce

<script setup lang="ts"> import {Ref} from "vue" </script>

What is expected?

nothing happens

What is actually happening?

Uncaught SyntaxError: The requested module '/node_modules/.vite/vue.js?v=6cc5afeb' does not provide an export named 'Ref'

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