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)

nuxt.js
-2 votes
0 answers
24 views

Managing Repeated Data: Script Array vs External JSON [closed]

I'm working on a Nuxt project where I have a section with 8 <li> elements, each containing an image, alt text, class, and a link. I want to avoid repetitive code by using a loop to render these ...
Michael's user avatar
  • 317
0 votes
0 answers
14 views

Performance disadvantages of splitting every component into separate chunks in Nuxt?

So I'm working with Nuxt 2.15 (Vue 2.6). Usually if we have a component that is rendered using v-if (so it is not always needed) we import it like this: components: { SideCategory: () => ...
AnJ's user avatar
  • 613
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 ...
knirirr's user avatar
  • 2,612
0 votes
0 answers
26 views

What causes Cannot find module '~/pages/index.vue' or its corresponding type declarations. ts(2307) error while using router.options.ts?

see sample image here I have a nuxt 3 project and I would like to use custom routing with it. I followed nuxt documentation on custom routing and added a folder named 'app' and inside I created router....
Dionico Noe C. Alegarbes's user avatar
0 votes
0 answers
15 views

Try to set false value using UseQuery Vue

I am learning Vue at the moment. I'm trying to create a loader from the front-end for a table. I set the value true first before getting results from the endpoint so that the loader can work in <...
chiper4's user avatar
  • 301
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,...
av0000's user avatar
  • 1,937
0 votes
0 answers
18 views

Nuxt.js global middleware keep redirecting me to login after refershing a page after authentification

So i have a globabl middleware that is supposed to portect other routes based on if a token is in local storage import { parseCookie } from '~/utils/parseCookie'; export default ...
moncef chouiakh's user avatar
1 vote
1 answer
50 views
+50

How to set loadingTemplate inside custom Nuxt Module

I'm building a nuxt module, and want to set loadingTemplate within this module. What I tried so far is modifying devServer inside module like below (But no luck) import { loadingTemplate } from './...
SergkeiM's user avatar
  • 4,048
-1 votes
0 answers
32 views

Nuxt App Error: Package import specifier "#internal/nitro/virtual/app-config" is not defined

I'm encountering an issue while trying to run my Nuxt application locally after i install nuxt content module before it the project is woring normally . The app fails to start and throws the following ...
Impersonator's user avatar
0 votes
0 answers
42 views

Nuxt 3 Supabase - 500 auth Session missing

I am trying to integrate Supabase Github OAuth with Nuxt 3 but I am having an error "500 auth session missing" and it's very slow! The server middleware causing the Error: (user.ts) import {...
Daly's user avatar
  • 285
0 votes
0 answers
14 views

Deploying nuxt/laravel site to forge laravel give me an error 500 concerning nuxt chunks

I have an error when deploying the nuxt part of my nuxt/laravel site to forge laravel. I get the following error Cannot find module '/home/forge/my-site.com/.output/server/chunks/app/_nuxt/index-...
Yex777's user avatar
  • 57
0 votes
0 answers
39 views

Open/Close a Sheet component from shadcn-vue using a button in a parent component

I am using Nuxt and have added a Sheet component from shadcn-vue (https://www.shadcn-vue.com/docs/components/sheet.html) into my project. The example provided in the documentation uses a SheetTrigger ...
Michael's user avatar
  • 317
0 votes
1 answer
38 views

How do I trigger hot reloads for my custom CSS in my vue component?

<template> <div class="binav" ref="binav"> <div class="nav-content" ref="content"> <component :is="item&...
Cody Wakeford's user avatar
0 votes
1 answer
15 views

Nuxt 3 HMR Module not reloading changes

I have nuxt 3 project and installed couple of packages . the hmr was working fine .. it just stopped suddenly no clue why . there's no errors in the console . the cmd shows the files are being updated ...
Joe_G's user avatar
  • 1
0 votes
0 answers
11 views

Why does the language setting not work for input error in vee-validate?

I think I have set all the language settings for vee-validate but it still defaults to the English language error! I want to display the errors in Farsi language. I have also installed the necessary ...
Amir Vaez's user avatar

15 30 50 per page