6 months ago

Tailwind @apply in my Vue Components styles block

Posted 6 months ago by packy

How can I use @apply in my Vue compoennt <style> tag? I get this error everytime?

`@apply` cannot be used with `.border-primary` because `.border-primary` either cannot be found, or its actual definition includes a pseudo-selector like :hover, :active, etc. If you're sure that `.border-primary` exists, make sure that any `@import` statements are being properly processed *before* Tailwind CSS sees your CSS, as `@apply` can only be used for classes in the same CSS tree.

I know its something with the mix configuration but not sure what to change

Please sign in or create an account to participate in this conversation.