IsaacR943
IsaacR943
NNuxt
Created by IsaacR943 on 11/13/2024 in #❓・help
Make explicit auto import of a component
update - a turn around is doing something like
import { NavbarLogoMain as Logo } from '#components'
import { NavbarLogoMain as Logo } from '#components'
5 replies
NNuxt
Created by IsaacR943 on 11/13/2024 in #❓・help
Disable auto components
can i make explicit the path fro the component to auto import? for instance import main from components/menu folder
5 replies
NNuxt
Created by IsaacR943 on 11/13/2024 in #❓・help
Import layer with supabase module
1. Packages are up to date 2. Module is compatible for w the nuxt version i use 3. Imposible to know where to adjust the import since the creteClient from supabase-js is not use on any of my files but rather somewhere in node_modules 4. transpile the library doesnt work 5. No way to know which versions of supabase would be conflicting. 6. Since no error is prompt on origin layer the configuration is done correctly - its a problem of the main app
6 replies
NNuxt
Created by IsaacR943 on 11/3/2024 in #❓・help
Deactive jump to the top
Actually the way to do it is going to each of the pages and pasting on the script set up section:
definePageMeta({
scrollToTop: false
})
definePageMeta({
scrollToTop: false
})
6 replies
NNuxt
Created by IsaacR943 on 9/29/2024 in #❓・help
Stuck with reactivity not working
bruh started yesterday with the framework chill - its just another js frmk
7 replies
NNuxt
Created by IsaacR943 on 9/30/2024 in #❓・help
[plugin:vite:vue] Codegen node is missing for element/if/for node. Apply appropriate transforms firs
Update, this is a vue / vite error. I made the example as simple as possible and the thing still dont work. Example:
// layout.vue
<slot :headerContent="header"></slot>
// page.vue
<template #default="{ headerContent }">
<div>{{ headerContent }}</div>
</template>
// layout.vue
<slot :headerContent="header"></slot>
// page.vue
<template #default="{ headerContent }">
<div>{{ headerContent }}</div>
</template>
error:
ERROR Pre-transform error: Codegen node is missing for element/if/for node. Apply appropriate transforms first.

500
[vite-node] [plugin:vite:vue] [VITE_ERROR] /pages/chat.vue?macro=true
ERROR Pre-transform error: Codegen node is missing for element/if/for node. Apply appropriate transforms first.

500
[vite-node] [plugin:vite:vue] [VITE_ERROR] /pages/chat.vue?macro=true
2 replies
NNuxt
Created by IsaacR943 on 9/29/2024 in #❓・help
Stuck with reactivity not working
that only using
my_redis_value
my_redis_value
instead of
my_redis_value.value
my_redis_value.value
(only for the template tho)
7 replies
NNuxt
Created by IsaacR943 on 9/29/2024 in #❓・help
Stuck with reactivity not working
update - what solved the issue for me was changing the watch to:
watch(() => props.mykey, async (newKey) => {
await fetchRedisValue(newKey);
await nextTick();
console.log('line 5x watchEffect - my_redis_value:', my_redis_value.value);
isLoading.value = false;
});
watch(() => props.mykey, async (newKey) => {
await fetchRedisValue(newKey);
await nextTick();
console.log('line 5x watchEffect - my_redis_value:', my_redis_value.value);
isLoading.value = false;
});
7 replies
NNuxt
Created by IsaacR943 on 9/29/2024 in #❓・help
Stuck with reactivity not working
LINE 6x show 'undefined' always, despite lines 50 and 51 show the proper result.
7 replies