Category "nuxt.js"

How to fix navigator / window / document is undefined in Nuxt

I was trying to determined UserAgent and Retina info inside Nuxt application. But the application is throwing an error and showing navigatior / window is undefi

How to prerender a Vue3 application?

I try without success to apply a prerendering (or a SSG) to my Vue3 application to make it more SEO friendly. I found the vue-cli-plugin-prerender-spa, and when

How to deploy nuxt frontend with express backend on AWS?

I have a Nuxt v2 SSR application as the frontend running on port 3000 I have an express API as the backend running on port 8000 I have a python script that loa

cant access json object stored in local storage [object Object] in vue.js

I have fieldObj which I need frequently. It comes from database. I want to store it in localStorage. below is the code I wrote which fetch fieldObj from databas

Nuxt.js custom role middleware doesn't work when page refresh

I have a simple application with some pages that need to be protected if the connected user is not an administrator. I use the nuxt/auth package to handle the a

Running an Express server middleware alongside Nuxt

My endpoints aren't working, and most likely because the server on which express is isn't running correctly. I run my files with npm run dev and my express file

How to properly import component in nuxt.config.js to use as a custom icon?

I'm trying to use an SVG file as a custom icon, using this structure in nuxt.config.js: import UploadIcon from '@/components/icons/UploadIcon' export default {

Nuxt.js vuex store not persisted

I've got some strange issues with my Nuxt.js Setup. Some States in Store arent persistent, everytime I load another view, they went back to the default value. p

How to use Vue Testing Library with Nuxt.js?

I want to use Vue Testing Library in my Nuxt.js app. But straight after installing the package, launching a test triggers this error: 'vue-cli-service' is not

How to use background-image in inline styles in Nuxt.js

I have a .vue file where I want to use inline styles <img src="~static/img/info/production/pic4.jpg" class="t22" /> <a href="/page/fresco-art" class="b

Is there any way to make an executable file (.exe) from a Nuxt+Node project?

I have a NuxtJS project that requires a NodeJS program running behind for some functions and logic. The project structure is as follows: api assets components l

How to catch server errors in Nuxt.js so it doesn't crash page render? (Vue)

Context This question is related to my other question, How to handle apollo client errors crashing page render in Nuxt? , but I'll try to keep this isolated sin

Nuxt CSS properties declared on :root selector are not found

I have a Nuxt 2 app and I'd like to create a component with a <style> tag like the following, using CSS properties for styling. The goal is to define a de

Nuxt installation error : Rule can only have one resource source (provided resource and test + include + exclude)

I successfully installed Vuejs and Nodejs but got a problem when installing Nuxtjs. This is what I get. I already asked some friends but it didn't work. Thanks

How to set lang attribute on html element with Nuxt?

Using the file nuxt.config.js file, head contents can be customized to add some meta, or other things: module.exports = { /* ** Headers of the page */

Solana web3 js keep gives Cannot read properties of undefined (reading 'negative') while trying to confirm transaction

I'm trying to sign a transaction with connected user's wallet, through phantom but I keep getting this error message Cannot read properties of undefined (readi

Strapi 4 and NuxtJS: Unable to connect via GraphQL (ECONNREFUSED)

I am building a small blog application using NuxtJS, Strapi 4 (and GraphQL) and apollo. To do that, i followed this tutorial: https://www.youtube.com/watch?v=yD

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main resolved in /app/node_modules/@babel/helper-compilation-targets/package.json

I'm having trouble building my nuxt images in a travis CI pipeline. My local environment is ubuntu 18.04 - docker version 19.03.11 docker-compose version 1.24.1

How to redirect in nuxt3 refore routing completed

I'm trying to setup a boilerplate in nuxt3 which checks before each request if the access to the current path/route is allowed. Currently I've tested two differ

nuxt js "Failed to execute 'appendChild' on 'Node': This node type does not support this method" on mobile view port

found this error when trying to run my nuxtjs app with vuetify on mobile viewport, but everything runs well on desktop viewport. error on local machine image :