Insight
Explore posts from serversERROR: Invalid assignment target when using a type in ref
I am attempting to use drizzle orm and I have a table and models that look like
In a component for a form for
NewAccount
I have const form = ref<NewAccount>();
and when I try to map that using v-model in the html of the page like below.
I get the error:
I have tried using reactive
and make things work but no matter what I do it doesn't work. Even if I take the drizzle orm out of it like
the same error occurs.18 replies
Filter await useFetch
Hi I am new to Nuxt and all the javascript frameworks out there. I am trying to pull data and then filter it on the page. However when I try to run .filter on questions it comes back stating that questions doesn't have a method named .filter() I see that it returns a Ref<SerializedObject> but how would I get this to work as expected?
8 replies
Static Site global object
Hello, I am somewhat new to nuxt. I used nuxt ages ago in v1 but it has been a while. I am trying to make a static site and want to have a yml or json file which contains some basic information like phone number and email and then load it into the page so you only have to change one location if you want update the phone number/email etc. I am currently using Nuxt3.
8 replies