Skip to content
Advertisement

Tag: nuxt.js

nuxt 2.14 generate does not update asyncData

I’m following closely to this feature (https://nuxtjs.org/blog/nuxt-static-improvements/#generate-time-cache-vs-full-webpack-build) I may be getting this wrong, but I hope to clarify if I can use this feature correctly. Basically, I want to skip the webpack build as highlighted in the article, and build my pages through nuxt generate. The thing is that my data source usually changes, but my site code does not,

Display different video source according to screen size

I am trying to load different videos according to the screen size. I found a solution to doing this using javascript. However, I am not able to integrate this code into nuxt.js. Working Code: HTML JAVASCRIPT The Fiddle: https://jsfiddle.net/j78w36er/2/ I tried to integrate like this: I would be very thankful for any kind of help! Answer Your code is primarily

ECONNREFUSED when dispatch action in nuxtServerInit

I am converting my Nuxt application to SSR – because I want to use nuxtServerInit and asyncData. These are the steps I have taken to convert it. Remove ssr: false from nuxt.config.js Dispatch actions to initialize store’s state in nuxtServerInit inside store/index.js Now my nuxt.config.js looks like this And the store/index.js looks like this. But after I restarted the development

Nuxt.js dynamic component error “Either pre-compile the templates into render functions, or use the compiler-included build”

I’m getting the following error in Nuxt.js: I was following the examples here: https://stackoverflow.com/a/39519105 and my RenderPost.vue roughly looks like this: I added the <client-only> because I was also getting error about server and client not matching up. Without it, I get an additional error that says: Answer Nuxt normally includes the Vue runtime only (excludes the compiler) as an

Prevent click event in Vue conditonally

I am disabling document body scroll when my mobile nav is open which is working as expected. However it was not removing the overflow hidden when user would click a link to another route/page. I created a simple method to remove the overflow hidden when a link is clicked in the nav when the menu is open, which does work

Keycloak with nuxt-auth module

I’m using this auth-module with Keycloak. My configuration in nuxt.config.js: The connection is OK. When I click on the “connect” button, I am redirected to my Keycloak environment. Once authenticated by Keycloak, I am redirected to my nuxt.js application. However, the problem is that my store is empty. Do you have any ideas about what causes this problem? loggedIn: is

Advertisement