Questions tagged [nitro]

Use [nitro] for questions about the Nitro Server Engine for Nuxt.js

Nitro is the server engine for Nuxt.js

40 questions
0
votes
1 answer

How to handle connection errors when using useStorage with Redis in Nuxt 3

In my Nuxt 3 app, I use Redis to count page views. All works well, except that I get unhandled errors when Redis is not running. So, here's the question - how to handle connection errors with useStorage() and Redis? I have read Nuxt 3 and Nitro…
Hazadus
  • 78
  • 8
0
votes
1 answer

Send non blocking call to another API after serving an api request in Nuxt3?

I want to make a request to a logging service after serving the request. For eg you hit an endpoint '/hello' i want to increment count in redis but after serving the request. Something similar to res.on('final') in express.js. I tried searching the…
No Name
  • 98
  • 1
  • 11
0
votes
0 answers

Nuxt server route api and using Deno: How to import Deno packages using a URL?

What is the proper way to import packages from a URL when using Deno runtime? I get the following error: ERROR [worker reload] [worker init] Only URLs with a scheme in: file and data are supported by the default ESM loader. Received protocol…
redshift
  • 4,815
  • 13
  • 75
  • 138
0
votes
2 answers

How to start a nuxt 3 project on a specific IP Address

I am currently transferring a Nuxt 2 project over to Nuxt 3. The server I use has a fixed IP address on which the application runs. In Nuxt 2 there were the following options in nuxt.config.js in which I could assign the appropriate IP…
Tobi360
  • 188
  • 1
  • 10
0
votes
1 answer

Generate minified public javascript in Nuxt.js/Vue.js

We have a relatively boilerplate Nuxt.js application, deployed with the "firebase" preset of Nitro to Firebase hosting. In addition to the JavaScript that makes up the application itself, we have a file in public/embed.js that is intended to be…
Myk Willis
  • 12,306
  • 4
  • 45
  • 62
0
votes
1 answer

Firebase deploy fails because of Unsupported platform for fsevents@2.3.2

I upgraded to the latest version of Nuxt3, it work perfectly on local, build with no errors, but when trying to deploy on Firebase, it throws this error, does anyone have an idea why, or where it might come from? Build failed: npm ERR! code…
j-printemps
  • 1,288
  • 11
  • 21
0
votes
0 answers

Nuxt 3 with Netlify-Edge preset: ERROR nitro server handler (e.adapter || ls.adapter) is not a function

I have a Nuxt 3 chatbot app that works locally. However, when I deploy to Netlify using the netlify-edge preset, I get a 404 error when calling the server/api/chat.post.js endpoint. It seems that although the endpoint is reachable, there was…
redshift
  • 4,815
  • 13
  • 75
  • 138
0
votes
0 answers

EINVALIDPACKAGENAME using socket.io-client in firebase Nuxt 3 app

I have a Nuxt 3 application that uses socket.io-client. The app builds and runs fine during development with a vanilla nuxt build process. When I attempt to build and deploy to Firebase using the "firebase" preset for Nitro (NITRO_PRESET=firebase…
Myk Willis
  • 12,306
  • 4
  • 45
  • 62
0
votes
2 answers

NUxtjs3 [nitro] [dev] [uncaughtException] TypeError [ERR_INVALID_ARG_TYPE]: The "chunk" argument must be of type string or an instance of Buffer or

I updated nuxtjs application version 3.2.0 to 3.4.3. now when a client call server api (which calling a backend server) i have this exception [nitro] [dev] [uncaughtException] TypeError [ERR_INVALID_ARG_TYPE]: The "chunk" argument must be of type…
cyril
  • 872
  • 6
  • 29
0
votes
1 answer

Nuxt 3 - Loading JS, CSS, and SVG files from server fails when using Nginx proxy

I have a Nuxt 3 application that is served via an Nginx proxy on a different domain. My application is working fine on my development environment, but I'm facing an issue loading client-side assets like JS, CSS, and SVG files when deploying to…
0
votes
1 answer

How to set cookies in Nitro (Nuxt 3)?

In my nuxt.config.js s set this nitro configuration. export default defineNuxtConfig({ nitro: { routeRules: { '/api/**': { proxy: 'https://dev.project.com/api/**', }, }, } }); But application 'dev.project.com'…
Alexander
  • 291
  • 4
  • 13
0
votes
0 answers

How to change API request call to fetch?

I am practicing how to use the bitmex api. It is an API endpoint that gets position information. It works when request is used, but it does not work when fetch is used. What's wrong with this? The code is the same, but I get an authentication…
bamgae
  • 301
  • 1
  • 2
  • 15
0
votes
0 answers

Nuxt.js + vue.js Nitro error build production

Im use base app. Nuxt 3 not building production. Reinstall doesn't help =(( √ Server built in 504ms 13:07:20 √ Generated public .output/public …
0
votes
0 answers

Nuxt 3 dev serve opening different project

i have issue with launch a project in nuxt 3. So i have 2 different project. when im trying to launch one project it always open the second without styles and etc. It happens in port 3000. Even tho if i deleted the second project, it opens the 2nd…
0
votes
0 answers

Do not start the Nuxt 3 application if port is already in use

When I start my Nuxt 3 application and the defined port (from environment variable) is already in use, Nuxt uses a random port to start. I would like to be able to disable this behavior, and just not start the application. I added the strictPort…