billyadelphia
billyadelphia
NNuxt
Created by billyadelphia on 8/10/2024 in #❓・help
Property 'navigateTo' does not exist on type '{ $: ComponentInternalInstance; ..long type here
I have updated all of my dependencies today, and got this error from every auto import package
Property 'navigateTo' does not exist on type '{ $: ComponentInternalInstance; $data: {}; $props: Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly<...>, never>; ... 10 more ...; $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R, args_2: OnClean...'.
Property 'navigateTo' does not exist on type '{ $: ComponentInternalInstance; $data: {}; $props: Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly<...>, never>; ... 10 more ...; $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R, args_2: OnClean...'.
then I revert back to previous package.json file, even the package.json from 3 days ago, still got same error. I have deleted the node_modules and bun.lockdb file too, no luck
5 replies
NNuxt
Created by billyadelphia on 6/4/2024 in #❓・help
Error 500 on direct domain access (non www or subdomain)
I have an issue where my site got error 500 if I use direct domain like mydomain.com , but working fine with www.mydomain.com or subdomain.mydomain.com . I'm using "@sidebase/nuxt-auth": "^0.7.2" for the authentication . Working fine on localhost, only on production .
[GET] "https://mydomain.com/api/auth/session?callbackUrl=https:%2F%mydomain.com%2F": <no response> fetch failed
[GET] "https://mydomain.com/api/auth/session?callbackUrl=https:%2F%mydomain.com%2F": <no response> fetch failed
I'm using nginx for proxy pass to my app on production proxy_pass http://localhost:3000/; . The domain is managed by cloudflare , with their free ssl certificate .. Is it nuxt or nuxt-auth issue ? or nginx or cloudflare related issue ?
2 replies