Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [nuxt.js]

Nuxt.js is a framework for creating Vue.js applications, you can choose between Universal, Static Generated or Single Page application (inspired by Next.js)

3 votes
3 answers
4k views

Route params are undefined in layouts/components in Nuxt 3

I'm having problems with route params being undefined in components/layouts in Nuxt 3. It seems like a bug but it would be such a critical bug, that I almost don't believe it can be a bug. Consider ...
0 votes
0 answers
11 views

Nuxt Vercel Deployment Failing

Worth a shot asking here. I am having trouble deploying my Nuxt app onto Vercel for some strange reason, I can't pinpoint the error. When I deploy, everything seems fine in the deployment script, but ...
0 votes
1 answer
31 views
+50

How Do I Pass Streaming Data from Nitro API to Pinia Store so I can use it in Nuxt Component?

In my Nuxt app I have a Pinia store and am making an API call via the Nitro server that gets streaming data in response. When I try to update the Pinia store with the streaming data it does not update,...
0 votes
3 answers
21 views

Nuxt, .env and plain .js files

This relates to an app running Nuxt 3.12.4. I need to set a variable in a .env file, but that variable is needed in a plain .js file within the application's /lib. This, in nuxt.config.js, should make ...
1 vote
1 answer
204 views

Nuxt 3 + ShadcnVue "Invalid configuration found in components.json." [closed]

I use Nuxt 3.3 and Shadcn Vue. When trying to install another Shadcn component via "npx shadcn-ui@latest add sheet" I get this error message; "Invalid configuration found in [MYPATH]/...
1 vote
2 answers
2k views

Nuxt meta-tags not scraped by Facebook Debugger

I'm using Nuxt (Universal), connected to Wordpress with Apollo and Graphql. I'm fetching my content with: async asyncData({ app, params, store, route, redirect }) { await store.dispatch("...
0 votes
1 answer
16 views

Can't access Nuxt Studio data inside of Nuxt application

I have this nuxt.schema.ts it loads perfectly on https://nuxt.studio without any issues and I can alter the options, how do I access this object in my app? If I use const config = useAppConfig() it ...
0 votes
1 answer
28 views

How to redirect to a specified route in Nuxt server api?

I am currently doing a project using Nuxt and I am using the Nuxt server/api folder for all of my external API. What I'm trying to do is that, I want to redirect back to the / page if there are any ...
5 votes
3 answers
2k views

Laravel sanctum csrf cookie set issue "attempt to set a cookie via a Set-Cookie header was blocked because its Domain attribute..."

I have an issue with the Laravel Sanctum CSRF Cookie's. I run an API with Laravel 8 on a subdomain: api.domain.nl And a front end with NuxtJS on domain.nl Now I want to protect my POST requests that ...
0 votes
0 answers
5 views

Automatically prepend image URLs in Nuxt Content

With Nuxt Content v2, is there a reasonable way to provide front-matter data in markdown documents to components used inside the markdown without passing it as explicit props? For example: --- title: &...
0 votes
0 answers
21 views

nuxt - router.getRoutes() hydration mismatch

A basic implementation of router.getRoutes() to print routes to screen causes a strange hydration mismatch. // implementation <template> <div> <v-list> <v-list-item v-...
0 votes
1 answer
19 views

How to set proxy in Nuxt3?

I can't understand why setting proxy in nuxt 3 doesn't work When im trying to get data i see incorrect url in development tools Below is my code, what am i doing wrong? nuxt.config.js export default ...
0 votes
1 answer
14 views

Hi, I have only basic knowledge on web dev and I need help on my project to start a new intern job, I need to know where to start and steps to follow

Food recipe site The goal is to build attractive food recipe website that people can browse and can signup/login and share their recipe any user visiting the site should be able to browse recipes ...
0 votes
0 answers
55 views

vuejs nuxt js + Laravel with multi tenants

I have a multi-customer online store project The issue of multiple domains has been solved in Laravel with multi tenant But in the frontend and vuejs nuxt js project Do you have solutions to implement ...
0 votes
0 answers
13 views

How to prevent gtm sensetive data sending?

I`ve got Nuxt 2 + nuxt-gtm and there is a problem I`ve got oauth2 scheme of auth and when login user returning to /callback page with query like code=some_code&state=some_state How to prevent ...

15 30 50 per page
1
2 3 4 5
873