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
3
votes
3 answers

ESLint & Prettier conflict on NuxtJS

When I create a new Nuxt.js project, I've a really exhausting problem with ESLint and Prettier. If I save on this .vue file, Prettier try to fix it but ESLint prevent it to do this. So, I can't remove errors on this. My eslintrc.js module.exports =…
Ewilan R.
  • 429
  • 8
  • 10
3
votes
2 answers

Access Nuxt custom plugin from Composition API

I am using VueClipboard in my nuxt project. https://www.npmjs.com/package/vue-clipboard2 I have a plugin file vue-clipboard.js import Vue from "vue"; import VueClipboard from 'vue-clipboard2'; Vue.use(VueClipboard); It is imported into…
AndyJamesN
  • 468
  • 4
  • 14
3
votes
1 answer

Error starting Nuxt.js app: No build files found

$ npm run start > app@1.2.3 start /home/app/ui/web > nuxt start FATAL No build files found in /home/app/ui/web/.nuxt/dist/server. Use either `nuxt build` or `builder.build()` or start nuxt in development mode. Error happens when starting a…
3
votes
3 answers

Nuxt JS middleware cant use axios

I want to create a middleware to check if token is valid, but the axios cant read. Anyone can help me how to find solution. this si my code: middleware/authentication.js export default ({ app, redirect }) => { let data = { 'userid':…
AbingPj
  • 619
  • 8
  • 18
3
votes
1 answer

PurgeCSS ignore regex in whitelistPatterns and remove TailwindCSS classes (on NuxtJS)

I'm using NuxtJS (VueJS) with TailwindCSS and PurgeCSS. Until now, I was specifying complete CSS classes for colors like text-green-800, bg-red-400, etc. But when creating component it's not ideal while the color can be passed as a Prop, but it's…
Zetura
  • 446
  • 5
  • 12
3
votes
0 answers

how to cancel pending graphql when destroy page / component in vue / nuxtjs?

I want to cancel all pending graphQL when I am changing the page. I have tried with apollo skipAllQueries, skipAllSubscriptions, skipAll not working. Does anyone know how to do it?
3
votes
0 answers

Nuxt keep-alive not working for router out-side. NuxtJS

I have stuck, was unable to resolve all day. my nuxt version: 2.10 my layout: header nuxt (keep-alive) footer I use keep-alive in nuxt. and have 2 issue: Using keep-alive-props max but it not happen anything. List item Img for issue…
3
votes
1 answer

Show package.json version on NuxtJS application

I want to use the version number that is configured on package.json into my components on NuxtJS application. Can this be done?
Fernando
  • 325
  • 2
  • 13
3
votes
1 answer

Disable Eslint in NuxtJS

I want to disable eslint for nuxt while i am writing some feature beacuase it's always annoying to take care of spaces & indentations. How can i disable eslint in nuxt.config.js and turn on back later ?
power-cut
  • 1,310
  • 1
  • 14
  • 30
3
votes
1 answer

Nuxt: Command 'nuxt' not found - Output directory `dist/` does not exists

I have successfully created a Nuxt.js project with this configuration using the CLI: Project name: test Programming language: JavaScript Package manager: Npm UI framework: None Nuxt.js modules: None Linting tools: None Testing framework:…
Tom
  • 1,358
  • 2
  • 14
  • 36
3
votes
1 answer

Nuxt - Wait after async action (this.$store.dispatch)

I'm new to Nuxt and I'm facing an issue that I don't understand. If i code something like: const resp1 = await this.$axios.$post('urlCall1', {...dataCall1}); this.$axios.$post('urlCall2', {...dataCall2, resp1.id}); The resp1.id is properly set in…
David ROSEY
  • 1,414
  • 1
  • 7
  • 20
3
votes
3 answers

How to include local (not global) stylesheet file for each layout in Nuxtjs

Is it possible to import css-files to a separate layout so that styles are applied only to one layout without affecting others?
Denis
  • 71
  • 1
  • 5
3
votes
3 answers

how can i install bootstrap on nuxtjs

I want to use Bootstrap in nuxt.js, how can I do this without using CDN? I want to use bootstrap files in the nuxt.config.js, but I can't, also I want to use jquery files and popper.js I tried to include those files on head array on the…
Mohammad
  • 491
  • 5
  • 16
3
votes
0 answers

How to I use WebPushr in Nuxt JS

How do I use WebPushr in a Nuxt JS PWA to send push notifications. I have followed the guide on their online documentation https://docs.webpushr.com/manual-integration but I can't seem to make it work in Nuxt JS. // start webpushr code …
Isaac T
  • 406
  • 4
  • 8
3
votes
2 answers

How to check the Nuxt.js version of an application?

Let's say I just joined a new team. How can I quickly check the version of Nuxt the application is running?
Julien Le Coupanec
  • 7,742
  • 9
  • 53
  • 67
1 2
3
21 22