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
97
votes
10 answers

Nuxtjs vuetify throwing lots of `Using / for division is deprecated and will be removed in Dart Sass 2.0.0.`

Nuxtjs using vuetify throwing lots of error Using / for division is deprecated and will be removed in Dart Sass 2.0.0. during yarn dev Nuxtjs: v2.15.6 @nuxtjs/vuetify": "1.11.3", "sass": "1.32.8", "sass-loader": "10.2.0", Anyone know how to fix it…
kwong ho
  • 973
  • 1
  • 6
  • 7
12
votes
1 answer

Best way to run some code only once on server start in Nuxt.js (and not during build)

While I wrote this answer for StackOverflow I came across the problem that I wanted to execute some code exactly once in Nuxt.js when the server is started (or while the server is starting). I thought about writing a module or a plugin, but I did…
Markus Weninger
  • 11,931
  • 7
  • 64
  • 137
11
votes
2 answers

NuxtJS: Disable console.log in production env

I am looking for a way to disable console.log() for production env. Something like putting the below code to nuxt.config.js or index.js: if (process.env.NODE_ENV !== "development") { console.log = () => {}; } I tried it, but it doesn't work. …
Daryl Wong
  • 2,023
  • 5
  • 28
  • 61
11
votes
2 answers

How can solve the ERROR [BABEL] maximum size 500KB issue in server?

I am using NUXTJS application for an SSR page, but i am getting an error of bootstrap-vue icon size issue. The file is hosted in AWS server and this will be the error The code generator has deoptimised the styling of…
Syam kumar KK
  • 524
  • 2
  • 6
  • 32
9
votes
2 answers

NuxtJS Auth Proxy

Then using nuxtjs/auth and nuxtjs/axios nuxt is ignoring my proxy configuration. In past I have used just axios for auth. Now I am trying to use the @nuxtjs/auth module. Because I use a seperate backend and CORS I need to use axios proxy for…
equaliser
  • 171
  • 9
8
votes
1 answer

Nuxt generate not clear the cache for new updates

Versions nuxt: 2.14.6 node: v15.9.0 What is Expected? After upload every updates file to shared hosting inside dist folder. browser will load new version What is actually happening? 'm using shared hosting to host the project. I'm using nuxt…
Tharindu Prabodhana
  • 181
  • 1
  • 4
  • 16
8
votes
1 answer

How to use nuxt auth module with AWS Cognito ui

I am want to build an app which has a static frontend ( target: 'static' in nuxt.config.js ), and a backend using ktor. The app will need to authenticate users but I do not want to manage passwords and things myself, so I would like to integrate…
Aarjav
  • 1,334
  • 11
  • 22
8
votes
2 answers

Nuxt layouts/error.vue does not work in production build the way it does in development

Referencing the docs, i added layouts/error.vue for a page handling errors. Testing this in development (npm run dev), everything works as expected. But when I do npm run build and then npm start, The error page is not rendered when i test throwing…
jtlindsey
  • 4,346
  • 4
  • 45
  • 73
8
votes
3 answers

Nuxt.js fetch on page reload

When using nuxt.js fetch(), whenever I reload the page, it does not fetch it again. Only if I come from a router-link. How do I force it to actually refetch from my API? export default { async fetch() { const data = await…
CunnertA
  • 165
  • 2
  • 12
7
votes
3 answers

How can i solve Nuxt.js cannot find module '@vue/composition-api' error?

When developing Nuxt.js cannot find module '@ vue / composition-api I get an error. Why does this error occur?
Canonka
  • 333
  • 1
  • 3
  • 8
6
votes
0 answers

Getting "Cannot stringify arbitrary non-POJO" in nuxt fetch

I'm trying to add a "fetch" a function to one of my layouts in our nuxt js project. I'm using nuxt's latest version (2.14.0). I'm receiving this message on console (server side) when the server is rendering the layout: WARN Cannot stringify…
6
votes
2 answers

What are types for input events in Vue

What are correct Typescript types for input events in Vue? When I use Event it is missing target value or key or files properties. Let's have an example for:
Patryk Gułaś
  • 847
  • 1
  • 7
  • 19
6
votes
2 answers

How do I deploy an SSR NuxtJs app to a host

I'm coming from the SPA / React world and am working on my first Nuxtjs SSR app. When I run an npm run build I'm expecting artifacts to be created which can be copied over to my production environment that are then run using node on the server. When…
nova
  • 165
  • 3
  • 10
6
votes
1 answer

How do you use custom fonts with TailwindCSS and NuxtJS?

So I'm building a website with NuxtJS using Tailwind CSS for my styles. I'm using the @nuxtjs/tailwindcss module. The issue is that my fonts don't seem to be loading on the browser. The correct font-family is still applied by the CSS as you can see…
Kerunix
  • 113
  • 1
  • 1
  • 7
5
votes
1 answer

Nuxt Linking CSS Files in Head property from assets issue

I am trying to link my css files by using head property of nuxt in only one specific page like this: head: { link: [ {rel: 'stylesheet', href: require('~/assets/css/font.css')}, {rel: 'stylesheet', href:…
Mehdi Rafiee
  • 89
  • 2
  • 12
1
2 3
21 22