Category "nuxt.js"

How to convert some Nuxt code into some Vue?

How can I convert this Nuxt script into a Vue compatible one? <script> export default { components: { FeaturedProduct }, async asyncData({ $axio

Nuxt Auth Module c5 doesn't refresh token automatically when token expires

Version module: 5.0.0-1624817847.21691f1 nuxt: 2.15.8 Nuxt configuration Universal Nuxt configuration // Auth: https://auth.nuxtjs.org/ (v5) auth: { redirect:

AWS Amplify redirect middleware NuxtJs requests not working

I tried to deploy vuestorefront (nuxtjs app) into AWS Amplify according https://docs.amplify.aws/guides/hosting/nuxt/q/platform/js/ My amplify.yml contains: ver

Ignore locale prefix for specific route in nuxt-i18n module

For all pages, I need the locale prefix. But for the profile page, I want to ignore it. All pages except profile /{en|da|sv}/path Profile page /peter.hansen I

How to start nuxt project on IP Address

This might be a stupid question since it seems pretty simple, but I can't get my nuxt project to run on my IP address. The Nuxt.js docs say that I have to put t

NuxtJS Page is created twice

I am currently facing an Issue in NuxtJS where a method is called twice and a request is therefore sent twice. This happens in a page and the method which is ca

How to access .env variables in a Nuxt plugin?

Segment Analytics provides a snippet with a secret API key in it. In my Nuxt.js project I created a plugin called segment.js which I registered in my nuxt.confi

Can not follow stack trace

I am debugging my Vue Storefront project, which is based on Nuxt.js The error I currently face is: TypeError: Invalid URL which is not too informative. The Stac

Why doesn't fetch work in store's nuxtServerInit?

For my project I'm using Nuxt. In the store's action I have this piece of code: async nuxtServerInit({ commit }) { this.dispatch('fetchAllClients') }, async f

Nuxt Error : Cannot read properties of null (reading 'addEventListener') default.vue and index.vue not rendering

I'm using nuxt.js and vuesax as an UI framework, I did modify my default.vue in /layouts with a basic navbar template exemple from vuesax. Then I used @nuxtjs/r

Is there a way to reduce nuxt entry point bundle size?

After upgrading my nuxt-cli version to 2.15.3 i've notice that pages chunks size was reduced and all node_modules installed packages are now being bundled into

Cannot read property 'Authorization' of undefined with Nuxt Auth & Axios

I have been using nuxt/auth-next and axios modules with nuxt project since last 3-4 months, everything was working fine since yesterday but now whenever I try t

How connect SciChart to Nuxt

I need how coonect SciChart to Nuxt.js i did npm init nuxt-app "scichart" npm install scichart and i catch error packeg.json { "name": "scichart", "versio

Pug Indentation warning in Nuxt project

After updating Nuxt, the pug pre-processor start giving a warning in all of the project files. unexpected token "indent" (PUG:INVALID_TOKEN) [2,1] This is becau

How to implement background sync with nuxtjs/pwa?

I am trying to use workbox background-sync in Nuxtjs via @nuxt/pwa-module. this is my workbox property in nuxt.config.js file: workbox: { importScripts : [

windicss classes doesn't work in Nuxt App

I got some issues with windicss. Classes don't apply on elements. I've tried to install an older version of windi and it still doesn't work. I've even tried to

How to import stylus mixins in Nuxt 3?

In nuxt2 im using style resource loader to import mixins globally in every file and component. But style resource loader is not working with nuxt3 styleResource

How to set global api baseURL used in useFetch in nuxt 3

How do I set the baseURL that is used in useFetch composable globally (maybe nuxt.config.ts) so that I wouldn't have to define it in every useFetch.

TypeError: Cannot read properties of undefined (reading 'app') at asyncData

<script> export default { components: { PageInfoSection, ProductGrid: () => import("~/components/category/ProductGrid.vue"),

Nuxt auth user reset after browser refresh

i'm building an app with user login and register info. I use nuxt/auth module for handling the authentification. Whenever the user get logs in the state change