nuxt.js Questions

8

I have .env file in the project root, and in my nuxt config I am using variables to configure ReCaptcha like this: import dotenv from 'dotenv' dotenv.config() export default { modules: [ ['@nuxt...
Till asked 26/5, 2021 at 10:29

2

I'm using nuxt 3 for a project and can't find an easy way to do authentication with Laravel and Sanctum. The @nuxtjs/axios module is only compatible for nuxt 2 and the package a developer provided ...
Quaternion asked 25/11, 2022 at 10:34

2

Solved

I am using nuxt with vuetify and I defined all my validations rules (for text inputs) in a single file like this: // @/plugins/form_validations.js export default Object.freeze({ VALIDATIONS: { ...
Josephinajosephine asked 20/8, 2019 at 7:30

2

Solved

I have this code to get API data from https://fakestoreapi.com/products/ <template> <div> </div> </template> <script> definePageMeta({ layout: "products&q...
Precondition asked 4/12, 2022 at 16:15

3

At nuxtjs poroject, I have a configure variable of api environment like this: [ { front_host: local-1.domain.com, backend_api: api-1.domain.com }, { front_host: local-2.domain.com, backend_api...
Radiotherapy asked 2/5, 2018 at 9:49

4

I have installed these dependencies Package.json: { "devDependencies": { "@intlify/nuxt3": "^0.1.6", "@nuxtjs/eslint-config": "^7.0.0", &quot...
Thackeray asked 28/10, 2021 at 5:44

10

nuxt.config.js modules: [ '@nuxtjs/dotenv' ], server/index.js const express = require('express') const consola = require('consola') const { Nuxt, Builder } = require('nuxt') const app = expre...
Suzan asked 1/1, 2019 at 7:54

9

I am new to Ionic while build the app in android. Its opening a project in Android Studio but while gradle sync its showing the following error Could not read script 'F:\IonicProjects\mis-tracking-...
Puke asked 5/8, 2020 at 14:52

1

Solved

Seems very basic but I can't find anywhere an eslint setup that works with Nuxt3 auto-import, to avoid no-undef errors. I'm not using typescript. I tried the following packages: @antfu/eslint-confi...
Bousquet asked 31/7, 2023 at 12:57

6

I have a problem. I try to connect my Nuxt3 app with Google Analytics. right now I do it by adding to nuxt.config.ts following code export default defineNuxtConfig({ buildModules: [ '@nuxtjs/goog...
Archiphoneme asked 19/3, 2022 at 17:11

5

I'm building a web app using Nuxt v2.15 and @nuxtjs/i18n v7.2. I'm using Vuex for state management. In my global state, I want to create a getter that returns a value based on this.$i18n.locale. Wh...
Synesthesia asked 30/1, 2022 at 1:7

2

Is it possible to deploy nuxt-js spa project in shared hosting like hostgator through cpanel? I have tried several time to run below command, it's generate dist folder but didn't work. My command...
Unfolded asked 25/4, 2018 at 11:29

3

export default defineNuxtRouteMiddleware(async(to, from) => { const loggedIn = useState('loggedIn', () => false) if(loggedIn.value == false) { if(to.path == '/auth/login') { await navigat...
Sporophore asked 2/3, 2023 at 5:5

2

So I have 2 applications: an Adonis API server accessible via http://10.10.120.4:3333 A SSR app using Nuxt.js accessible via http://10.10.120.4:80 The Nuxt.js app is accessible outside using ur...
Rout asked 31/3, 2020 at 4:3

4

I try to creat new nuxt app using fallowing command npx nuxi init my-app successfully creating new app with Nuxt 3.0 stable inside but i get this annoying response Nuxi 3.0.0-rc.10 15:04:22 ERRO...
Archlute asked 4/12, 2022 at 14:21

4

I am using nuxt-links in my website navigation, most of them point to hashed elements/anchors in the home page like: <nuxt-link v-else class="text-link" :to="localePath('index') + #hash" &gt...
Wichern asked 9/4, 2019 at 18:46

3

Solved

I go through the documentation of Nuxt, but couldn't find information about how to open a page in a new tab. Is there a way to open a link in a new tab instead of opening it in the current tab? I t...
Iinde asked 18/4, 2019 at 19:43

4

i want to redirect to child route, if user entered to localhost:3000/browse, he redirect to localhost:3000/browse/songs/new. but i don't know how to do it! and i don't know what is the best compon...
Loyceloyd asked 9/4, 2019 at 19:10

2

I am trying to use <NuxtLink> to redirect in Nuxt 3. However, my page won't show after the URL change. That means, after clicking the link, the URL changes to whatever is stated in the to=&qu...
Hoosegow asked 15/11, 2021 at 19:51

7

Solved

I have Vue SPA that I'm trying to migrate to nuxt. I am using vue2leaflet in a component that I enclosed in <client-only> tags but still getting an error from nuxt saying that window is not d...
Ridglea asked 15/12, 2019 at 19:34

2

Solved

In the Nuxt 3 documentation, there's an example that shows using server middleware to annotate requests with additional information via event.context: export default defineEventHandler((event) =&gt...
Geoffrey asked 26/5, 2023 at 14:9

7

Has anyone been able to pass props to pages in Nuxt.js? Typical Vue.js props can be passed as so: parent-component.vue <template> <child-component :basket-count="items.length"/&...
Rigorous asked 11/6, 2018 at 14:8

2

I'm trying to use either pending or status with the useFetch composable in Nuxt 3 to disable a button and show a spinner when a POST request is pending like so: const { pending, status, execute } =...
Supply asked 7/8, 2023 at 7:21

2

I'm trying to create a nuxt.js component programmatically. I tried the approach below which works in Vue. But it doesn't seem to work in nuxt.js because it instantiates the component on the Vue obj...
Phrenic asked 10/4, 2021 at 6:36

3

Solved

I am using vue-i18n in a Nuxtjs project, and I want to import my locale files with vite dynamicly. when I am using webpack, those code run well plugins/i18n.js import Vue from 'vue'; import VueI18n...
Johnsen asked 3/6, 2021 at 13:18

© 2022 - 2024 — McMap. All rights reserved.