IsaacR943
Layer doesnt import module
I have the Supabase module installed in a layer, along with several components, each with its own functionality. When I use this layer via extend in the main application, the components from the Supabase layer appear, but their functionality doesn’t work.
The error message is clear: the useSupabaseClient composable from the Supabase layer isn’t available, even though this composable is provided by the module.
What could be causing this issue? (Note: the base application doesn’t have the Supabase module itself—I thought that if the layer were imported correctly, it should include the module as well.)
5 replies
Import layer with supabase module
Hello, so i have a layer that takes care of the auth in the application
Im using supabase module for all the auth and it works well on the layer
However, when i try to expand the origin app i got this error on the console
I understand only superficially the error - there is no default export name in the file at the node module. However 1) i dont know what is trying to use this 'default' value 2) im not aware what this default value contains 3) since this error doesnt appear on the origin layer idk what could cause it.
The app doesnt crashes, the routes are protected so i assume the layer was imported properly. However, the menu on the main app is broken, its no longer possible to navigate between pages in the app with the menu if I import the layer.
Not sure where to start to solve this problem
6 replies
Layers nuxt 4
Hello, im about to use layers for the first time
Should i wait a little longer to start learning about layers or the current set up with nuxt3 is fully compatible?
- Are nuxt 3 layers compatible with nuxt 4?
- Is this video up to date?
- Is documentation up to date?
Thank you!
5 replies
[plugin:vite:vue] Codegen node is missing for element/if/for node. Apply appropriate transforms firs
UPDATE: Vue / vite error
No clue how to solve this. Context - I have one layout passing props to the only slot. The props in this slot are used by all pages. For some reason the code breaks with the next implementation
im sure it has to do with templates.
2 replies
Stuck with reactivity not working
Gpt, claude, meta, asked everywhere. Seems there isnt a solid response why this snippet isnt working.
Context: props.mykey is a changing value. When the value matches some key at the redis database the template should show that redis value. The function await read_redis_key(key) work and logs line 50 and line 51 show the expected result.
However, on the template this snippet is showing up as empty (undefined)
7 replies
nuxt supabase auth and checkout session
I have to be the guy that ask for this - but I am.
Main question: Should I install the supabase module or instead use the "supabase init" command?
Additional:
Supabase and nuxt. Goal: Get a full fledge app (auth and checkout session) - 1. How to enable auth from supabase into nuxt (do I have to build from the ground the ui for user, pass, gmail, etc - any official repos you recommend?) 2. Stripe session - I heard is better to use something like https://github.com/juspay/hyperswitch - anyone use it before?
1 replies