Questions tagged [nuxtjs]

Please use the nuxt.js tag rather than this one for Nuxt general questions.

Please use the nuxt.js tag rather than this one for Nuxt general questions.

319 questions
0
votes
0 answers

Is it possible to detect an api update with nuxtjs?

Is it possible to each times my api is update, generate a static site with npm run generate ? I'll explain my idea. I have an API linked to Strapi (headless cms) and i get data from this api in my app done with Nuxt. And each times the API is…
0
votes
1 answer

can't get data from server to NuxtJS Store

this is my code : export const state = () => ({ products: [] }); export const getters = { getProducts: state => { return state.products; } }; export const mutations = { SET_IP: (state, payload) => { state.products =…
0
votes
1 answer

Is that possible to generate correct indenting code with nuxt js

When i'm generating the project with nuxtjs, the code is compressed. I would like to know if it's possible to generate a correct indenting code ? Thanks
0
votes
1 answer

Nuxt Js - Script loaded just once during initial page load

I have a static website designed already and I am converting to Nuxt js as the website needs to be interactive. After I run my Nuxt server "npm run build...npm run start" the scripts are loaded and my carousel/slides works fine. When I navigate…
Daniel Ozeh
  • 21
  • 1
  • 7
0
votes
1 answer

Nuxt custom router

I'm trying to create a custom route in Nuxt with the following nuxt.config.js: router: { base: '/', router: { extendRoutes (routes, resolve) { routes.push({ name: 'custom', path: 'here-i-am', …
simon
  • 2,235
  • 6
  • 33
  • 53
-1
votes
2 answers

how to get the logged in user data in nuxtjs?

I'm using laravel backend and nuxtjs frontend, when I send a login request I get a response includes the logged in user informations with a token, the response looks like…
Dr.Noob
  • 319
  • 6
  • 17
-1
votes
1 answer

How to set an hover effect dynamically on loop of list

I am working on a NuxtJs app. And I am looping from an array of objects. The parent div has a hover effect which I want to be appended to each child individually. But when I hover on one child, it takes effect on other children also. What I want is…
-1
votes
1 answer

I have a problem with the nuxt project deploy on cpanel

I have a problem with the nuxt project deploy on cpanel Please, if anyone can fully guide me, thank you for running on the host The image of the errors is available in the following links enter image description here enter image description here
-1
votes
1 answer

VueJS: Convert normal JS to vueJs and with ref

I have the following code in normal JS and I have like to convert it to vuejs. HTML:
JS: const initAuthSessionResponse = window.NDI.initAuthSession( "ndi", { clientId: "abcd1234", // Replace with your…
Daryl Wong
  • 2,023
  • 5
  • 28
  • 61
-1
votes
1 answer

Create blog with Static json file with Fetch in Nuxt. How to use slug to get content of specific node?

Am trying to build a blog with a static json file in Nuxt(with http module). Using the Nuxt 'Mountains' example as a base, for testing. I saved the api response as json in the 'static' folder. (Example is here:…
Jan Willem
  • 55
  • 2
  • 8
-1
votes
1 answer

nuxtjs + vue-native-websocket how to use?

I have component page. I need connect websocket after page ready;