Wazbat
Explore posts from serverspermission denied error when running deno install inside dockerfile
Hi there, I'm in the process of trying to migrate my node app to deno, as I was really impressed with the recent deno 2 announcement
I have the following dockerfile, slightly modified from the example.
However when trying to build this, I get an error when running the deno install step:
The package listed is random. Previously it was ky, before that it was logform. I'm at a loss, as deno install works fine on my windows machine
3 replies
Unable to use auto imported functions inside vue html
Sorry if this is a silly question, but I'm really struggling to use some VueUse functions inside the actual html
If I call
useDateFormat
inside the <script> part of my components it works perfectly fine, however if I use it inside a v-text
or a v-model
I get the following error:
I'm honestly at a loss. This used to work fine before and the docs don't mention this behaviour6 replies
Using a vercel env var in runtime config
Hi there!
I'm trying to use env vars like
NUXT_ENV_VERCEL_PROJECT_PRODUCTION_URL
in my app.vue, and have defined them in my nuxt.config.ts as follows:
I'm then trying to reference these variables in my app.vue, as I wish to read the value of projectProductionUrl
in my useSeoMeta
I'm able to console.log the values in app.vue, and they appear fine. The following code:
Prints this to the backend (non-browser) console
However I also see in my browser it being logged as well. I can see the public and app, but config.env is undefined (as it is not public)
Now, I understand that in order to prevent these 500 errors, I need to put these env vars under public, however as the docs say the following, I'm not sure what to do...
Setting the default of runtimeConfig values to differently named environment variables (for example setting myVar to process.env.OTHER_VARIABLE) will only work during build-time and will break on runtime. It is advised to use environment variables that match the structure of your runtimeConfig object.https://nuxt.com/docs/guide/going-further/runtime-config I'm unable to change these env vars as they are built into vercel... How can I solve this?
1 replies
Post request to page path
Hi there
I'm trying to integrate my nuxt app with an external service, however that service sends a POST request to my sign up page with a JWT token
If I add a route that is identical to a page route with an
index.post.ts
filename, is it possible for that to coexist with the regular nuxt page? Or would I have to create some kind of "interim" route that if get forwards them to a frontend route?
Thanks!8 replies
null values in nuxt ui input
Hi there!
It looks like after a recent change of something, nuxt ui no longer allows certain values in a
UInput
's v-model? I get the following error when trying to display a possible null value in an input
It also appears that boolean options are no longer allowed in select menus either... Or an array of strings? Though that might be due to the null value
If this change was intentional there a correct way to handle these kinds of data errors? It might just be a bad implementation my end if I'm using boolean values in select's for example
I am using @nuxt/ui: ^2.14.2
. The error is also present on ^2.15.2
which is the latest version
The code used to build fine so I'm not sure what changed
I'm also really confused as I only get the errors when running nuxi typecheck
, but not in my local vscode
Maybe it was an update to vue-tsc
?20 replies
Nuxt ui types
Are the nuxt ui package types exported anywhere from the downloaded packages?
I was able to find them in the github repo but No matter what I try I'm unable to import them from the built packages
https://github.com/nuxt/ui/blob/dev/src/runtime/types/dropdown.d.ts
Is there any way to get these types in my app without having to copy paste them from here?
6 replies
Displaying an svg in an avatar using nuxt ui
Heyo! I'm trying to display an svg with a nuxt-ui component, however I'm unsure how to exactly use this
The library I'm using, dicebear, give me an svg html, functions to generate a png or jpeg, a data uri, etc
I've tried just piping the svg html into the avatar src but that doesn't work as it expects a url
How should I best display this?
https://ui.nuxt.com/components/avatar#props
5 replies