Questions tagged [nuxt-bridge]
21 questions
4
votes
1 answer
Nuxt3 - Establish database connection in server middleware
I'm learning to use Nuxt, and currently trying nuxt-bridge which comes with most of Nuxt3 functions, while keeping nuxt-auth-next module compatibily which I need.
As of now I'm working on my API, using Nuxt3 /server/api and /server/middleware…

Luc Simons
- 41
- 3
3
votes
1 answer
Nuxt generate command with "nuxi" CLI fails on Netlify but not locally
This is a new Nuxt2 project with target: static (SSG) upgraded to Nuxt Bridge in order to use Vue3 syntax, Vite and most of the Nuxt3 features.
I run the build command npm run generate successfully on my own system with Node 14.17.3. This script…

anatolhiman
- 1,762
- 2
- 14
- 23
2
votes
1 answer
Property 'x' does not exist on type '{toggle():void}'
I am pretty new to typescript. Now, I have setup nuxt(bridge with typescript) app and created a component named menuIcon as such;
1
vote
0 answers
'EventSource's response has a MIME type ("text/html") that is not "text/event-stream". Aborting the connection.' after upgrade nuxt 2 to nuxt bridge
"@nuxt/bridge": "npm:@nuxt/bridge-edge@^3.0.0-27928371.c30fa0f",
I use this version of bridge. It seems the default content type for SSE responses in Nuxt.js Bridge has been changed from text/event-stream to text/plain.
By the way, I am not sure…

allenLin
- 11
- 1
1
vote
0 answers
Error after upgrade from nuxt2.15 to nuxt-bridge
I was upgrade nuxt2.15 to nuxt-bridge
and run npm run dev
but there is error.
I tried to fix it, but I couldn't fix it.
I think this is error about @nuxt/babel-preset-app
but, I don't know what should i do.
@nuxt/babel-preset-app version is…

imori
- 101
- 1
- 1
- 5
1
vote
2 answers
How to migrate useAsync + error to nuxt-bridge (useAsyncData is not available)
I'm trying to migrate a nuxt 2 app to nuxt-bridge.
In this app I frequently fetch data from an API based on URL parameters of the frontend. Like this (simplified):
setup() {
const { $axios, error, params } = useContext()
const foo =…

some-user
- 3,888
- 5
- 19
- 43
1
vote
1 answer
How to avoid error upgrading Nuxt 2 to Nuxt Bridge
I am currently keen to updating my existing Nuxt 2 project to Nuxt Bridge as documented here:
https://v3.nuxtjs.org/getting-started/bridge
As for my nuxt.config file I used module.exports = { //config }
Exchanging it with the:
import {…

lucamario
- 220
- 1
- 3
- 12
0
votes
0 answers
Use vuex (v3) together with composition-api in nuxt-bridge
I have upgraded a nuxt 2 project to nuxt-bridge and I have to rewrite some components.
I want to use the (core) vue composition api and my old vuex store.
I've had things like: import { mapActions, mapGetters, mapState } from 'vuex' and my vuex is…

Merc
- 4,241
- 8
- 52
- 81
0
votes
0 answers
Problem with useLazyFetch with nuxt bridge
I am trying to use useLazyFetch in a project where I recently upgraded from nuxt 2 to nuxt-bridge.
Like described here: https://nuxt.com/docs/bridge/bridge-composition-api#useasync-and-usefetch
I thought I could use this code: