Issue I’m experimenting with Nuxt 3 on Firebase hosting and have a basic build deployed successfully. However, it has taken over the functions directory. Is it possible to specify a second directory in firebase.json? Thanks. Here is the relevant portion
Continue readingTag: nuxt.js
How to get rid of CORS error in Nuxt/SSR?
Issue So, I made a simple api request using Nuxt/SSR. I have cities and categories. Each city has a list of categories. To fetch cities I have to use https://api/cities and to get categories I should use https://api/cities?id store/cities.js export
Continue readingHow to get rid of CORS error in Nuxt/SSR?
Issue So, I made a simple api request using Nuxt/SSR. I have cities and categories. Each city has a list of categories. To fetch cities I have to use https://api/cities and to get categories I should use https://api/cities?id store/cities.js export
Continue readingHow to get rid of CORS error in Nuxt/SSR?
Issue So, I made a simple api request using Nuxt/SSR. I have cities and categories. Each city has a list of categories. To fetch cities I have to use https://api/cities and to get categories I should use https://api/cities?id store/cities.js export
Continue readingHow to get rid of CORS error in Nuxt/SSR?
Issue So, I made a simple api request using Nuxt/SSR. I have cities and categories. Each city has a list of categories. To fetch cities I have to use https://api/cities and to get categories I should use https://api/cities?id store/cities.js export
Continue readingHow to get rid of CORS error in Nuxt/SSR?
Issue So, I made a simple api request using Nuxt/SSR. I have cities and categories. Each city has a list of categories. To fetch cities I have to use https://api/cities and to get categories I should use https://api/cities?id store/cities.js export
Continue readingHow to get rid of CORS error in Nuxt/SSR?
Issue So, I made a simple api request using Nuxt/SSR. I have cities and categories. Each city has a list of categories. To fetch cities I have to use https://api/cities and to get categories I should use https://api/cities?id store/cities.js export
Continue readingHow to get rid of CORS error in Nuxt/SSR?
Issue So, I made a simple api request using Nuxt/SSR. I have cities and categories. Each city has a list of categories. To fetch cities I have to use https://api/cities and to get categories I should use https://api/cities?id store/cities.js export
Continue readingHow to get rid of CORS error in Nuxt/SSR?
Issue So, I made a simple api request using Nuxt/SSR. I have cities and categories. Each city has a list of categories. To fetch cities I have to use https://api/cities and to get categories I should use https://api/cities?id store/cities.js export
Continue readingHow to get rid of CORS error in Nuxt/SSR?
Issue So, I made a simple api request using Nuxt/SSR. I have cities and categories. Each city has a list of categories. To fetch cities I have to use https://api/cities and to get categories I should use https://api/cities?id store/cities.js export
Continue readingHow to get rid of CORS error in Nuxt/SSR?
Issue So, I made a simple api request using Nuxt/SSR. I have cities and categories. Each city has a list of categories. To fetch cities I have to use https://api/cities and to get categories I should use https://api/cities?id store/cities.js export
Continue readingHow to get rid of CORS error in Nuxt/SSR?
Issue So, I made a simple api request using Nuxt/SSR. I have cities and categories. Each city has a list of categories. To fetch cities I have to use https://api/cities and to get categories I should use https://api/cities?id store/cities.js export
Continue readingHow to get rid of CORS error in Nuxt/SSR?
Issue So, I made a simple api request using Nuxt/SSR. I have cities and categories. Each city has a list of categories. To fetch cities I have to use https://api/cities and to get categories I should use https://api/cities?id store/cities.js export
Continue readingHow to get rid of CORS error in Nuxt/SSR?
Issue So, I made a simple api request using Nuxt/SSR. I have cities and categories. Each city has a list of categories. To fetch cities I have to use https://api/cities and to get categories I should use https://api/cities?id store/cities.js export
Continue readingHow to get rid of CORS error in Nuxt/SSR?
Issue So, I made a simple api request using Nuxt/SSR. I have cities and categories. Each city has a list of categories. To fetch cities I have to use https://api/cities and to get categories I should use https://api/cities?id store/cities.js export
Continue readingHow to get rid of CORS error in Nuxt/SSR?
Issue So, I made a simple api request using Nuxt/SSR. I have cities and categories. Each city has a list of categories. To fetch cities I have to use https://api/cities and to get categories I should use https://api/cities?id store/cities.js export
Continue readingNuxt auth with keycloak: ssr this.$auth.loggedIn always false on page load
Issue I have a setup with nuxt and keycloak as auth strategy which in general is working. I can login via keycloak and then will have this.$auth.loggedIn === true on the page. When navigating via vue-router, this.$auth.loggedIn will also be
Continue readingNuxtJS Page is created twice
Issue I am currently facing an Issue in NuxtJS where a method is called twice and a request is therefore sent twice. This happens in a page and the method which is called twice is created(). I open the page
Continue readingNuxt: can't set data property on server in 'created' lifecycle
Issue I try to set a value on a property in the "created" lifecycle method – on the server – but the value remains null (its default value). (I use typescript and class based components) export default class FunClass extends
Continue readingHow to run Nuxt2 serverMiddleware with pm2
Issue I have a simple Nuxt ssr app with a serverMidlleware handling one api endpoint (/api/contact). To deploy the app I am using pm2. Running the app in development and in production (locally without pm2) everything works fine. Deploying it
Continue readingHow to increase speed performance in Nuxt with SSR
Issue How we can increase the speed performance in Nuxt with SSR for the following points. Reduce unused JavaScript Avoid serving legacy JavaScript to modern Minimize main-thread work Reduce JavaScript execution time Avoid enormous network payloads Solution Pretty generic questions,
Continue readingHow does Nuxt.js Server Side Rendering Work?
Issue I mostly work with Next.js for web projects. Work demands I work on a project that uses Nuxt.js (v2). I got up to reading on Nuxt. From pouring over the documentation for the last couple of days, there are
Continue readingVue async component SSR rehydration
Issue Using Vue async components with SSR is causing rehydration on page refresh. Is there a way not to cause components update without reason? Markup from SSR and on client is the same. https://v2.vuejs.org/v2/guide/components-dynamic-async.html Solution When using dynamically loaded components
Continue readingHow to set InnerText with directive in SSR Vue/Nuxt
Issue I want to port my vue directive to also render server side. client side: mydirective(el,binding,vnode){ el.innerText = vnode.context.$data.points } What i have working so far in nuxt.config.js: render: { bundleRenderer: { directives: { mydirective(node, binding){ var points = node.context.$data.points
Continue readingVue/Nuxt: trying to understand SSR
Issue I’ve used Vue as a client-side library for years but I unfortunately never dove into server-side rendering, or understand it much, for that matter. I was watching a few tutorials on it where it gave an example of normal
Continue readingNuxt: Mounting dynamic components to the DOM that is not rendered yet
Issue Scenario: I am using Nuxt in universal mode. The app works with a headless CMS that provides a simple layout of components that should be rendered, along with component names and their props – something like this: [ {
Continue readingHow to access private data in Nuxt?
Issue So I have my nuxt 2 app where I want to fetch company reviews from an API on a single page. The API does not allow requests from the browser/client so I need to use a server for this
Continue readingNuxtJS: Static render just a component instead of 1000's of pages
Issue I have a Nuxt architecture question – Having never built a Nuxt site before. We have a website with potentially 1000’s of pages. We would like to leverage the power of Static Rendering. The CMS, which is hosted on
Continue readingDeploy nuxt application on a nginx VPS server running ubuntu
Issue I am trying to deploy a nuxt blog to a virtual private server that runs nginx. The blog is supposed to be accessible when I browse to https://exampledomain.com/articles I have managed to run npm run dev on the server
Continue readingHow to run nuxt dev on a production server
Issue I’m using Nuxt 2.15.4 and I have deployed my app on a cloud-server using nginx and pm2. I can access my website by using its domain address. Now I want to use npm run dev on another post on
Continue readingHow to use nginx for nuxt js as proxy and http server?
Issue I have a NUXT js application on Ubuntu 20.04 Server. I used Nginx to serve my nuxt application as follow: server { client_max_body_size 300M; root /var/www/app/dist; server_name example.com; location / { proxy_pass http://localhost:8080; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header
Continue readingHow to run NUXT (npm run dev) with HTTPS in localhost?
Issue EDIT: Updated the text in general to keep it shorter and more concise. I am trying to configure HTTPS when I run npm run dev so I can test MediaStream and alike locally (for which browsers require me to
Continue readingNuxt 3 can't can't make API calls to own backend
Issue Edit: As Hiran Chaudhuri mentioned this is not a Nuxt related issue. I use Nodemailer on my server to send out an email when the user fills out a contact form. However Nodemailer can’t send out the email, because
Continue readinghow can I add animate.css to nuxt js app?
Issue How do I install animate.css and have it working on my nuxtjs project? I have tried using the animate.css installation guide but still doesn’t work. Solution For npm users add animate.css on your project using this command npm install
Continue readingWhen using nuxt and tailwind external css file does not work
Issue I want to use an external .css file but It does not work. I have tried link rel="stylesheet" and @importing css in style tags but it does not work Solution for importing css file to your nuxt app open
Continue readingHow to get route parameters from Nuxt 3 server
Issue I have one of the following API URLs. At the end of the day for my use case, it doesn’t matter which of these URLs I would have to use, but currently neither work. http://localhost:3000/api/track/TRACKID or http://localhost:3000/api/track?id=TRACKID How would
Continue readingProblems with running Nuxt 3 [3.0.0-rc.3] on Apple silicon
Issue I followed the quick guide to create an app using the operating system macOS Monterey 12.4 MacBook Pro M1 Max / Node v16.15.0 and also tried with 18. When visiting the host http://localhost:3000, it repeats the error constantly [below
Continue readingHide secret keys in network payload
Issue I have a Vue Storefront which, out of the box, exists of a Nuxt.js front-end and a Express.js back-end. In this project I created a custom Server Middleware (which is the Express.js part) that has an Axios call in
Continue readingyarn dev command not working on windows 10
Issue I know my question has been asked alot but nothing seems to work for me. I created a new nuxt project, whenever i try to start it with yarn dev it keeps giving me this error: yarn is not
Continue readingNuxt & Express server not getting api requests in production /dist
Issue I have a Nuxt app running successfully on my local server and all API requests are successfully running from the same server (using the serverMiddleware property in nuxt.config.js). When I run a yarn generate, the path to the API
Continue readingNuxt options API with typescript no code completion
Issue As mentioned in the title I am using Nuxtjs with typescript but there are no code completions in the template and script. This is my code <script lang="ts"> import Vue from ‘vue’; import { FeaturedJobs } from ‘../../types/featuredJobs’; export
Continue readingPreloading data to the store at startup in nuxt
Issue I am working on a app with Nuxt and I preload some stuff at nuxtServerInit and put it into the store. That’s fine and there is no problem. I have many more projects with the same kind of initial-preload
Continue readingNuxt Error : Cannot read properties of null (reading 'addEventListener') default.vue and index.vue not rendering
Issue I’m rly new to nuxt js and vue js, I’m being confronted to a problem that I do’t know how to solve and why it happens, specialy because I haven’t done anything yet. so I’m using nuxt.js and vuesax
Continue readingNuxt CSS properties declared on :root selector are not found
Issue 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 default CSS property in the component that can
Continue readingRunning an Express server middleware alongside Nuxt
Issue 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 files are in /middleware. The endpoint which I’m trying to fetch
Continue readingCan I set up a placeholder image/div while a large gif is loading?
Issue 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 perhaps even just a coloured div, while the gif
Continue readingGetting : npm WARN using –force Recommended protections disabled
Issue I have an old Nuxt.js package that was developed in Node 12 and I want to use it now with Node 16 (the latest stable) but when I try to install my packages by npm install I’m getting the
Continue readingHow to submit a form in Vue, redirect to a new route and pass the parameters?
Issue I am using Nuxt and Vue and I am trying to submit a form, redirect the user to a new route including the submitted params, send an API request to get some data and then render that data. I
Continue readingHow to submit a form in Vue, redirect to a new route and pass the parameters?
Issue I am using Nuxt and Vue and I am trying to submit a form, redirect the user to a new route including the submitted params, send an API request to get some data and then render that data. I
Continue readingFlexbox child height it content
Issue I have a container with display: flex, and it childs height, is higher than it content. I’m using Vuetify (vuejs) For example: I have a v-col with 2 span <v-col style="display:flex;flex-direction:column"> <span style="background-color:green;font-size:0.4rem">134 POSTS</span> <span style="background-color:green;font-size:0.4rem">120 POSTS</span> </v-col> If
Continue readingHow to link a Google font to my Nuxt files?
Issue Im new to SCSS and im trying to load a local font to my SCSS file. This works perfectly fine in a CSS file but in a SCSS file it does not give anything, not even an error: @font-face
Continue readingCan not follow stack trace
Issue I am debugging my Vue Storefront project, which is based on Nuxt.js The error I currently face is: TypeError: Invalid URL which is not too informative. The Stack trace shows getIntergrationConfig in the src/utils/nuxtfolder. I can not seem to
Continue readingDo I have to fix audit issues of the latest nuxt.js?
Issue 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? And if I have to, how
Continue readingExpress.js backend not saving cookie to Nuxt.js frontend
Issue I’ve built an authorization server with Express.js that works when testing with Postman where it saves the access and rotating refresh token as signed cookies. However, what I completely forgot, was that my backend and frontend are two completely
Continue readingFlexbox child height it content
Issue I have a container with display: flex, and it childs height, is higher than it content. I’m using Vuetify (vuejs) For example: I have a v-col with 2 span <v-col style="display:flex;flex-direction:column"> <span style="background-color:green;font-size:0.4rem">134 POSTS</span> <span style="background-color:green;font-size:0.4rem">120 POSTS</span> </v-col> If
Continue readingRunning an Express server alongside Nuxt
Issue 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 files are in /middleware. The endpoint which I’m trying to fetch
Continue readingDo I have to fix audit issues of the latest nuxt.js?
Issue 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? And if I have to, how
Continue readingCan not follow stack trace
Issue I am debugging my Vue Storefront project, which is based on Nuxt.js The error I currently face is: TypeError: Invalid URL which is not too informative. The Stack trace shows getIntergrationConfig in the src/utils/nuxtfolder. I can not seem to
Continue readingCustom Accordion Toggle one Item at a Time in Vue
Issue I am using Vue with Nuxt 2 and having Problem in my Custom Accordion component. i want to toggle one accordion at a time. But what actually happening is that if i click on first accordion Link, the body
Continue readingNpm install error. 'npm ERR! gyp ERR! find Python, stack Error'
Issue Whenever I try to run npm install or npm update in my nuxt.js(vue.js) project, error below appears. npm ERR! code 1 npm ERR! path /Users/kyeolhan/ForWork/BackOffceFront/node_modules/deasync npm ERR! command failed npm ERR! command sh -c node ./build.js npm ERR! gyp
Continue readingcannot GET /PATH error when building NUXT app – DOT in the query params
Issue I have a strange problem in my nuxt app. When ever I run npm run dev everything works. But Once I npm run build and then npm run start I get the problem where I get cannot GET [path
Continue readingcannot GET /PATH error when building NUXT app – DOT in the query params
Issue I have a strange problem in my nuxt app. When ever I run npm run dev everything works. But Once I npm run build and then npm run start I get the problem where I get cannot GET [path
Continue readingsticky sidebar in a post not working (tailwind)
Issue I’m looking to make something similar to this As you can see, when you scroll the sidebar follows you. This is my code, i can’t make it work: <template> <div class="blog-post"> <div class="wrapper"> <aside class="sidebar"> <div class="sidebar-wrapper"> <!— Content
Continue readingsticky sidebar in a post not working (tailwind)
Issue I’m looking to make something similar to this As you can see, when you scroll the sidebar follows you. This is my code, i can’t make it work: <template> <div class="blog-post"> <div class="wrapper"> <aside class="sidebar"> <div class="sidebar-wrapper"> <!— Content
Continue readingNuxt.js: window is not defined apexcharts/vue-apexcharts
Issue I have added this simple example from apexcharts.com. Pretty sure the imports are correct. I am not referencing window anywhere. My whole app just come to a halt when adding this file. I believe it has to do with
Continue readingWhat is causing a npm install nuxt error?
Issue I have just started a Nuxt project on WSL running Ubuntu 20.04. I am using Node.js LTS/Fermium and I installed some dependencies for the project, but when I try to install Nuxt itself it retrieves some errors and I
Continue readingHow to remove default value from input number in vue?
Issue I have a Vue input number component which accepts precision upto five decimal points. Its all fine except it shows the default value 0.000000 which is kinda boring to look at because this field is optional. I am using
Continue readingHow to remove default value from input number in vue?
Issue I have a Vue input number component which accepts precision upto five decimal points. Its all fine except it shows the default value 0.000000 which is kinda boring to look at because this field is optional. I am using
Continue readingWhat is causing a npm install nuxt error?
Issue I have just started a Nuxt project on WSL running Ubuntu 20.04. I am using Node.js LTS/Fermium and I installed some dependencies for the project, but when I try to install Nuxt itself it retrieves some errors and I
Continue readingHow can I import styles for pc or for mobile?
Issue I have three folders: base, pc and mobile. I always connect index.scss from the first folder through the css section in nuxt.config.js. To determine the type of device, I use @nuxtjs/device. And now I want to asynchronously import styles
Continue readingNuxt.js: window is not defined apexcharts/vue-apexcharts
Issue I have added this simple example from apexcharts.com. Pretty sure the imports are correct. I am not referencing window anywhere. My whole app just come to a halt when adding this file. I believe it has to do with
Continue readingCommand failed with exit code 134: npm run generate
Issue I’m trying to deploy my nuxt js project to netlify. The installation part works fine, But it returns an error in the build process. I tried to search google but I can’t find any solution to this problem. I
Continue readingHow to avoid [Vue warn]: Injection "xxxx" not found
Issue I’m using inject/provide pattern in nuxt composition-api. For example, Component A inject the function provided by Component B which is parent of Component A like below. //Component B const test = () => {} provide(‘test’, test) //Component A const
Continue readingNuxt vuex auth store is not updating my getters
Issue My getters are not updating reactive even though the store contains the data. Here is my Code function initialAuthState (): AuthState { return { token: undefined, currentUser: undefined, refreshToken: undefined } } export const store: AuthState = initialAuthState() export
Continue readingHow to deploy a finished nuxt.js app to a webserver?
Issue At work, I got some little insight to nuxtjs development and I got very interested in it. So, I started developing on my own a little bit, but now, I’m stuck with my finished project. To develop, I spin
Continue readingError when attempting to import a node module into NuxtJS TypeScript (ES2018)
Issue I am attempting to import the chess.js module like so: import Chess from ‘chess.js’; This gives me the following error when loading the app locally: require() of ES Module …/app/node_modules/chess.js/chess.js from …/app/node_modules/vue-server-renderer/build.dev.js not supported. Instead change the require of
Continue readingUse newrelic in nuxt
Issue I am trying to add newrelic agent to my nuxt application. I have installed the needed package and added my license key and set an application name in newrelic.js configuration file: npm i newrelic cp node_modules/newrelic/newrelic.js . nano newrelic.js
Continue readingNuxt3 screen width problem with mobile view
Issue i have problem with mobile preview on dev tools. HTML with on desktop size is fine. Problem only occur with mobile view. Why HTML width is 400 pixels now? Do you have any idea how to fix this problem?
Continue readingHow to get route meta and all route meta on the component in Nuxtjs?
Issue My project package.json "dependencies": { "core-js": "^3.15.1", "nuxt": "^2.15.7", "nuxt-property-decorator": "^2.9.1", } My pages directory – pages – a.vue – b.vue Page component // a.vue <template> </template> <script lang="ts"> import { Component, Vue } from ‘nuxt-property-decorator’; @Component({ meta: {
Continue readingGetting this error: Cannot read property 'length' of undefined
Issue I am building an app with nuxt (using vuetify 2 and typescript). I have radio buttons(say b1 b2) and text fields(say t1 t2 t3). When user clicks b1, it shows t1 and t3 When user clicks b2, it shows
Continue readingNuxt server middleware post request not working
Issue I saw in the documentation of Nuxt js (https://nuxtjs.org/docs/2.x/configuration-glossary/configuration-servermiddleware/) that I can extend server middleware with express. i tested it with GET request and it worked but when i use POST request there is no body in request. /api/index.js:
Continue readingScoped css for Nuxt.js layout
Issue I’m working with nuxt and i have a header layout for my nav. This nav has a background color of white. On a special page, i want to make the nav background color transparent. (Only for this page) I’ve
Continue readingHow to add vue3-openlayers plugin to nuxt
Issue I have the following main.ts file in Vue3: import { createApp } from "vue" import App from "./App.vue"; //How to do this in nuxt3? import OpenLayersMap from "vue3-openlayers"; import "vue3-openlayers/dist/vue3-openlayers.css"; const app = createApp(App); //How to do this in
Continue readingMaintain grid system across `default.vue` and `index.vue` in vuetify
Issue I am very new to vue, this probably is very basic question. I want a page with 3-col layout, where two columns should be in default.vue and the one column should be in a page, say index.vue. I have
Continue readingnuxt.js – how to set css background image dynamicaly
Issue Im using Nuxt.js, and have a custom component. This component has css in the component that sets a background image using css. I’ve tried the following but I get an error when I run this. The error is: invalid
Continue reading