Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

sh1r3f's avatar

Can I use a mixin inside <script setup> tag?

I'm using vue 3 and I did initialize a global mixin by adding it to vue.mixin() in my app.js file.. and I use it in my vue components normally in the HTML tags. Now I want to use it inside the tag I used it the same way as in templates by calling it normally but it throws an error Uncaught (in promise) ReferenceError: mixinName is not defined so? any idea?

0 likes
2 replies

Please or to participate in this conversation.