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

🐛 [Bug]: @opentiny/unplugin-tiny-vue 不支持函数式组件调用 #2402

Open
mengqiuleo opened this issue Oct 25, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@mengqiuleo
Copy link
Collaborator

Version

"@opentiny/vue": "^3.18.0"

Vue Version

3.5.12

Link to minimal reproduction

none

Step to reproduce

使用时按需引入:

<script setup>
const close = () => {
  Notify({
    type: 'success',
    message: '触发关闭事件',
    position: 'top-right',
    duration: 1000
  })
}
</script>

vite 配置为:

 plugins: [
    vue(),
    // Components({
    //   resolvers: [TinyVueResolver]
    // })
    autoImportPlugin('vite')
  ],

这两种方式均会报错

Snipaste_2024-10-25_18-05-48

What is expected

No response

What is actually happening

No response

What is your project name

none

Any additional comments (optional)

No response

@kagol kagol added the bug Something isn't working label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants