-
-
Notifications
You must be signed in to change notification settings - Fork 190
Closed as not planned
Closed as not planned
Copy link
Labels
feat: hmrp3-minor-bug 🔨An edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)
Description
Describe the bug
after project run. replace App.vue<script>code with follows
<script setup lang="tsx">
import { Search } from '@element-plus/icons-vue'
// import { Apple } from '@element-plus/icons-vue'
import RenderComp from './components/RenderComp'
const label = () => (<div>test</div>)
</script>
<template>
<RenderComp :label="label" />
<Search />
<!-- <Apple /> -->
</template>warning
only after the project running, import new component using in template. the problem appears.
Reproduction
https://stackblitz.com/edit/vitejs-vite-qrc4zw?file=src/App.vue
System Info
System:
OS: macOS 11.6.5
CPU: (8) x64 Apple M1
Memory: 31.31 MB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 14.17.6 - /usr/local/bin/node
Yarn: 1.22.11 - /usr/local/bin/yarn
npm: 6.14.15 - /usr/local/bin/npm
Browsers:
Chrome: 103.0.5060.53
Firefox: 95.0
Safari: 15.4
npmPackages:
@vitejs/plugin-vue: ^2.3.3 => 2.3.3
@vitejs/plugin-vue-jsx: ^1.3.10 => 1.3.10
vite: ^2.9.12 => 2.9.12Used Package Manager
pnpm
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feat: hmrp3-minor-bug 🔨An edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)