Category "nuxt.js"

Docker build error duplicates of file paths not supported

This is my Dockerfile codes: FROM node:16.10-alpine3.12 as base RUN apk update RUN apk add git WORKDIR /app COPY package.json . FROM base as builder RUN npm i

Call mixin function from asyncData() method of the page component with Nuxt.js

Can I call mixin function from asyncData() method of the page component with Nuxt.js? My code: <template> ... </template> <script> impo

How to load a placeholder image then toggle to the real one once HTTP calls are done?

I'm currently working on a project with a particularly large gif file on the page. I'd like to be able to load something much smaller, like a static image or pe

Nuxt.js and handle API 404 response for dynamic pages

I use Nuxt.js and I have dynamic page /items/{id}: <template> <div> <h1>Item #{{ item.id }} &laquo;{{ item.title }}&raquo;</h

is vue-storefront support (nuxtjs with typescript)?

I am trying to use @storefront-ui/nuxt inside a nuxtjs (with typescript) project. but this error show for me Could not find a declaration file for module '@st

Nuxt js <nuxt-link /> authentication

I have a route in nuxt that has to be accessible only by logged in users: /dashboard/secret. In /dashboard page I have a link like this: <nuxt-link to="/dash

Error text is cut off when generated to PDF in nuxt.js + @nuxtjs/tailwindcss

Error text is cut off when generated from HTML to PDF with Vue-html2pdf in Nuxt.js when use @nuxtjs/tailwindcss although when show layout then everything is nor

Why doesn't my browser refresh when the Nuxt.js dev server recompiles my code?

I am working in a CentOS 7 VM (VirtualBox, host is Windows 10) and my working directory is a shared folder. I have created a node container to develop a Nuxt.js

Vuejs/Nuxtjs Unable to scope the styles to specific component when used with @import?

I am developing an application using Vuejs/Nuxtjs. I would like to import some styles from the external CSS file and would like to include those styles only to

Nuxt3 + Pinia + VueUse -> useStorage() not working

Setup: I'm using Nuxt3 + Pinia + VueUse. Goal: I want to save a state of a pinia store to localstorage via VueUse: useStorage. Problem: For some reason no item

How to create a build for multiple environments in Nuxt?

I am building a Nuxt application where I will have two environments staging and production, the local should also be considered as staging, now I need to create

How do I implement custom error pages in NuxtJS 3?

I'm trying to get my NuxtJS 3 app to show custom error pages. The app is universal with SSR. The NuxtJS 2 docs say to add a layouts/error.vue file and it should

how to add @carbon/type in nuxt

Im using @carbon/vue in a nuxt application and have created a plugin which i registered in my nuxt.config.js file. I am now trying to incorporate @carbon/type f

Reevaluate Nuxt.js middleware without a route change

I'm wondering if it's possible to essentially "reevaluate" the middleware conditions without actually changing the current route. The middleware's purpose is to

How do I disable nuxt default error redirection

Set up a nuxt project with Vuetify. One of the pages uses a client-only (no-ssr) component. During development, in case of an error in this component, I get red

In Nuxt, how do you pass data from layouts to pages?

For example, in my /layouts/sidebar.vue I have the following code: <template> <div class="mainContainer"> <nuxt :date-sidebar="'This is

Access this.<module> from within Nuxt plugin

Is there any way I can access a JS API exposed by a Nuxt module from within a client-side plugin? Context: I'm using Buefy/Bulma, which is loaded like this in n

Vuex - Do not mutate vuex store state outside mutation handlers

Why do I get this error: Error [vuex] Do not mutate vuex store state outside mutation handlers. What does it mean? It happens when I try to type in the edit i

Do I have to fix audit issues of the latest nuxt.js?

I am trying to use nuxt for my app, but when I run "yarn audit", there are some audit issues which are dependencies of nuxt. Do I have to fix these audit issues

Bitbucket Pipelines hangs when testing a Nuxt app with Cypress

I have a Nuxt app that I want to test with Cypress in CI. I've seen in the Cypress documentation that you have to install some third-party package to wait for t