Add note about having to call `defineProps` at the top-level
When using defineProps, you have to call it in the form ... = defineProps().
Using it like ... = toRefs(defineProps()) generates a misleading mess of runtime errors, with the only relevant one being that "defineProps is not defined".
Currently, the docs for defineProps do not mention this at all.
Could a note be added, along with a ESLint rule?
This does need to be documented better, but I think something should also be added to the SFC compiler to provide a better error message. If it were handled by the compiler then I don't think an ESLint rule would be required.
+1 to this being a compiler error instead of just a linting error.