NuxtN
Nuxt11mo ago
4 replies
hartbit

[Vue warn]: Property "buttonClass" was accessed during render but is not defined on instance.

I'm trying to build a component library in TypeScript and Composition API in a mono-repo using https://github.com/nuxt/module-builder. When I build the component library using "watch-mode", nuxt-module-build build --stub, and use my components in another package of the mono-repo, everything works fine. But when I try to build the component library using nuxt-module-build build, I get [Vue warn]: Property "buttonClass" was accessed during render but is not defined on instance. when the components attempt to access functions defined in <script setup>. Any ideas how to pin down the issue ?
Was this page helpful?