Skip to content
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

Auto import does not work when script tag is in the same line #232

Closed
jiyingzhi opened this issue Jun 1, 2021 · 1 comment
Closed

Auto import does not work when script tag is in the same line #232

jiyingzhi opened this issue Jun 1, 2021 · 1 comment
Labels

Comments

@jiyingzhi
Copy link

jiyingzhi commented Jun 1, 2021

This works:

<template>
  <div class="home">
    <img alt="Vue logo" src="@/assets/logo.png" />
  </div>
</template>

<script setup lang="ts">
</script>

This does not work:

<template>
  <div class="home">
    <img alt="Vue logo" src="@/assets/logo.png" />
  </div>
</template>

<script setup lang="ts"></script>
@johnsoncodehk
Copy link
Member

@vue/compiler-dom do not provide location for empty content tag, so we could not support it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants