Skip to content

useQuasar() inside a .ts file returning null #16995

Discussion options

You must be logged in to vote

If you're using script setup then you're ensured this error won't happen. However, otherwise just make sure that you are inside of your setup() function when calling it -- and calling it while setup() is running at runtime, not afterwards. This is just how composables work.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@brogits
Comment options

Answer selected by rstoenescu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants