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
CDCloudflare Developers
•Created by Insight on 3/29/2024 in #pages-help
NUXT Your Functions script is over the 1 MiB
I have checked all files from the dist folder when built locally and it isn't over 1MiB I have been trying to figure out how and where things are going over the limit but can't find anything.
Anyone have any hints or things they have run into when trying to run a NUXT site through pages?
5 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
❔ AzureAD App Registration ADO access in Blazor
I am trying to access azure dev ops work items using an application within my jobs azure active directory. I have the application working and I can connect and get the users information and roles. However I am confused at how exactly you use the API permissions.
The blazor server application is using .AddMicrosoftIdentityWebApp() but I am unsure how to exactly add the HttpClient for the ADO rest api or to ensure I am getting the proper information to query the data.
I have been working on this for a while but am confused at how exactly its all linked together.
4 replies