Displayray
Displayray
NNuxt
Created by Displayray on 2/16/2023 in #❓・help
Can't use module in .vue file
looks like an issue with my machine
21 replies
NNuxt
Created by Displayray on 2/16/2023 in #❓・help
Can't use module in .vue file
reproduktion works fine
21 replies
NNuxt
Created by Displayray on 2/16/2023 in #❓・help
Can't use module in .vue file
I tried it also with a new project of nuxt3, just installed supabase without anything else and it is still not working
21 replies
NNuxt
Created by Displayray on 2/16/2023 in #❓・help
Can't use module in .vue file
yes
21 replies
NNuxt
Created by Displayray on 2/16/2023 in #❓・help
Can't use module in .vue file
oh okay
21 replies
NNuxt
Created by Displayray on 2/16/2023 in #❓・help
Can't use module in .vue file
No description
21 replies
NNuxt
Created by Displayray on 2/16/2023 in #❓・help
Can't use module in .vue file
so I have a file pages/login.vue and in there im just trying to implement it:
<script setup>
definePageMeta({
layout: "custom"
})

const supabase = useSupabaseClient()

const login = () => {
supabase.auth.signInWithOAuth({
provider: "discord"
})
}
</script>
<script setup>
definePageMeta({
layout: "custom"
})

const supabase = useSupabaseClient()

const login = () => {
supabase.auth.signInWithOAuth({
provider: "discord"
})
}
</script>
21 replies
NNuxt
Created by Displayray on 2/16/2023 in #❓・help
Can't use module in .vue file
still not working
21 replies
NNuxt
Created by Displayray on 2/16/2023 in #❓・help
Can't use module in .vue file
Yes I have it Will try it when i'm at home
21 replies
NNuxt
Created by Displayray on 2/16/2023 in #❓・help
Can't use module in .vue file
I've installed it with npm i @nuxtjs/supabase package.json:
{
"private": true,
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
},
"devDependencies": {
"nuxt": "^3.1.2"
},
"dependencies": {
"@nuxt/image-edge": "^1.0.0-27919678.2f5b64b",
"@nuxtjs/supabase": "^0.3.1",
"@nuxtjs/tailwindcss": "^6.3.1",
"@vueuse/nuxt": "^9.12.0"
}
}
{
"private": true,
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
},
"devDependencies": {
"nuxt": "^3.1.2"
},
"dependencies": {
"@nuxt/image-edge": "^1.0.0-27919678.2f5b64b",
"@nuxtjs/supabase": "^0.3.1",
"@nuxtjs/tailwindcss": "^6.3.1",
"@vueuse/nuxt": "^9.12.0"
}
}
nuxt config:
export default defineNuxtConfig({
modules: [
"@nuxtjs/tailwindcss",
"@nuxt/image-edge",
"@vueuse/nuxt",
"@nuxtjs/supabase"
],
app: {
head:{
script: [
{
key: 'fontawesome',
src: 'https://kit.fontawesome.com/***.js',
defer: true
}
]
}
}
})
export default defineNuxtConfig({
modules: [
"@nuxtjs/tailwindcss",
"@nuxt/image-edge",
"@vueuse/nuxt",
"@nuxtjs/supabase"
],
app: {
head:{
script: [
{
key: 'fontawesome',
src: 'https://kit.fontawesome.com/***.js',
defer: true
}
]
}
}
})
And im using it like:
const supabase = useSupabaseClient();
const supabase = useSupabaseClient();
21 replies
NNuxt
Created by Displayray on 2/6/2023 in #❓・help
Composables "not defined"
If I hover over useCar in vscode it says [TS Error] Error: Debug Failure. {}
75 replies
NNuxt
Created by Displayray on 2/6/2023 in #❓・help
Composables "not defined"
I dont get whats wrong with composables
75 replies
NNuxt
Created by Displayray on 2/6/2023 in #❓・help
Composables "not defined"
only works if I import it directly in my .vue file
75 replies
NNuxt
Created by Displayray on 2/6/2023 in #❓・help
Composables "not defined"
so now i get SyntaxError: ambiguous indirect export: default
75 replies
NNuxt
Created by Displayray on 2/6/2023 in #❓・help
Composables "not defined"
so I dont think that anything is affecting it
75 replies
NNuxt
Created by Displayray on 2/6/2023 in #❓・help
Composables "not defined"
and its like a almost new install of windows
75 replies
NNuxt
Created by Displayray on 2/6/2023 in #❓・help
Composables "not defined"
windows
75 replies
NNuxt
Created by Displayray on 2/6/2023 in #❓・help
Composables "not defined"
yeah that relly weird
75 replies
NNuxt
Created by Displayray on 2/6/2023 in #❓・help
Composables "not defined"
no still same error
75 replies
NNuxt
Created by Displayray on 2/6/2023 in #❓・help
Composables "not defined"
okay yeah lemme try that
75 replies