question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Nuxt3 server routes support?

See original GitHub issue

Hi,

Is-it working in Nuxt3 server side, in a server/api file?

I have the error useSupabaseUser is not defined. I tried to import them import { useSupabaseUser, useSupabaseClient } from '@nuxtjs/supabase'; but I have the error SyntaxError: The requested module '.../node_modules/@nuxtjs/supabase/dist/module.mjs' does not provide an export named 'useSupabaseClient'

Thanks

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:4
  • Comments:8

github_iconTop GitHub Comments

2reactions
jefflombardcommented, Apr 14, 2022

Seconded, I find this useful.

0reactions
robinscholzcommented, May 10, 2022

Running into the same problem …

I’d like to pass the client in a callback function to a crawler that runs in the background asynchronously.

Read more comments on GitHub >

github_iconTop Results From Across the Web

server/ · Nuxt Directory Structure
Nuxt automatically scans files inside the ~/server/api , ~/server/routes ... directories to register API and server handlers with HMR support.
Read more >
Create API with Nuxt 3 - Medium
Nitro uses unjs/h3 internally to create server and handle routes. In this article we'll create API with the help of Nitro server engine...
Read more >
The serverMiddleware Property - Nuxt
Define server-side middleware. ... This allows us to register additional routes (typically /api routes) without need for an external server.
Read more >
Accessing Route Parameters in Nuxt 3 - Server Side Up
Accessing route parameters in Nuxt 3 requires 2 steps. Updating your pages naming conventions and using the new useRoute() composable.
Read more >
How can I use useFetch() in nuxt3 server routes? - Reddit
I tried to import {useFetch} from "#app in my server/api route but got the following error: Vue app ... need help with multiple...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found