sxzz / vue-functional-ref

Functional-style refs for Vue.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: How to get it to work in a Nuxt 3 app?

chanon opened this issue · comments

Sorry for asking, but I've tried everything I can think of, and I can't get it to work in my Nuxt 3 app.

I added the plugin to the nuxt.config.ts and the path to tsconfig.json

The Playground is working correctly in my VS Code with Volar, but in my Nuxt 3 project it says "This expression is not callable" whenever I try to call a ref to get its value.

Demo: https://github.com/sxzz/nuxt-functional-ref

It doesn't support SSR/SSG at the moment.

Thank you!!

If you're using pnpm, try pnpm.overrides. It works perfectly!
sxzz/nuxt-functional-ref@01cd6d8