vuejs/vue

improve the warning in `inject`

Opened this issue · 0 comments

I believe it's coming from this line:

warn(`inject() can only be used inside setup() or functional components.`)

I started seeing a lot of this warning after a recent upgrade. I thought it was my code but turned out to be Nuxt UI. Including the key in the warning would be helpful.