Danny Vogel
Danny Vogel
NNuxt
Created by Frox on 2/24/2025 in #❓・help
ohash error eferenceError: Cannot access 'defaults' before initialization
oh and using some encrypting/decrypting methods using crypto and elliptic
40 replies
NNuxt
Created by Frox on 2/24/2025 in #❓・help
ohash error eferenceError: Cannot access 'defaults' before initialization
mostly returning a simple JSON, setting/deleting cookies and also using sendRedirect
40 replies
NNuxt
Created by Frox on 2/24/2025 in #❓・help
ohash error eferenceError: Cannot access 'defaults' before initialization
I just use defineEventHandler and dont think I do anything too fancy
40 replies
NNuxt
Created by Frox on 2/24/2025 in #❓・help
ohash error eferenceError: Cannot access 'defaults' before initialization
I don't actually haha. so it must not just be that
40 replies
NNuxt
Created by Frox on 2/24/2025 in #❓・help
ohash error eferenceError: Cannot access 'defaults' before initialization
oh wow nice, yeah I got the error when I ran it too. hope that helps them fix it!
40 replies
NNuxt
Created by nullptr on 3/8/2025 in #❓・help
Nuxt, backend required?
you can also use the BFF (backend for frontend) pattern, which is as mentioned basically using the Nuxt backend as a proxy for your Django/Go backend. Good way to keep sensitive api keys hidden for example
7 replies
NNuxt
Created by Frox on 2/24/2025 in #❓・help
ohash error eferenceError: Cannot access 'defaults' before initialization
I haven't upgraded on my main work project! prefer staying on older versions for now
40 replies
NNuxt
Created by Frox on 2/24/2025 in #❓・help
ohash error eferenceError: Cannot access 'defaults' before initialization
missed this message though I responded in the github issue too. I was unable to reproduce it on stackblitz as im not sure what specific conditions are needed for it to trigger. maybe @Frox can share a bit about his implementation to see if we can find some commonalities. Saw you committed a fix, hope that does it! Thanks
40 replies
NNuxt
Created by Frox on 2/24/2025 in #❓・help
ohash error eferenceError: Cannot access 'defaults' before initialization
yeah spent most of my work day on this, very annoying
40 replies
NNuxt
Created by Frox on 2/24/2025 in #❓・help
ohash error eferenceError: Cannot access 'defaults' before initialization
hi @Frox I had the same issue. I created an issue in the nuxt repo (maybe should have gone to nitro repo) https://github.com/nuxt/nuxt/issues/31222. Essentially I just ended up reverting to older versions to keep things working with this:
"nuxt": "3.13.2",
},
"overrides": {
"nitropack": "2.10.4",
"h3": "1.15.0"
}
"nuxt": "3.13.2",
},
"overrides": {
"nitropack": "2.10.4",
"h3": "1.15.0"
}
40 replies
NNuxt
Created by Frox on 2/24/2025 in #❓・help
ohash error eferenceError: Cannot access 'defaults' before initialization
today im getting this randomly, I assume its a similar issue:
ReferenceError: Cannot access 'nativeFuncLength' before initialization.
at isNativeFunction (/app/.output/server/chunks/nitro/nitro.mjs:6060:69)
at function (/app/.output/server/chunks/nitro/nitro.mjs:5999:9)
at array (/app/.output/server/chunks/nitro/nitro.mjs:5950:14)
at object (/app/.output/server/chunks/nitro/nitro.mjs:5923:14)
at serialize (/app/.output/server/chunks/nitro/nitro.mjs:5889:10)
at hash (/app/.output/server/chunks/nitro/nitro.mjs:5885:53)
at defineCachedEventHandler (/app/.output/server/chunks/nitro/nitro.mjs:6213:34)
at /app/.output/server/chunks/nitro/nitro.mjs:5015:17
ReferenceError: Cannot access 'nativeFuncLength' before initialization.
at isNativeFunction (/app/.output/server/chunks/nitro/nitro.mjs:6060:69)
at function (/app/.output/server/chunks/nitro/nitro.mjs:5999:9)
at array (/app/.output/server/chunks/nitro/nitro.mjs:5950:14)
at object (/app/.output/server/chunks/nitro/nitro.mjs:5923:14)
at serialize (/app/.output/server/chunks/nitro/nitro.mjs:5889:10)
at hash (/app/.output/server/chunks/nitro/nitro.mjs:5885:53)
at defineCachedEventHandler (/app/.output/server/chunks/nitro/nitro.mjs:6213:34)
at /app/.output/server/chunks/nitro/nitro.mjs:5015:17
40 replies
NNuxt
Created by Frox on 2/24/2025 in #❓・help
ohash error eferenceError: Cannot access 'defaults' before initialization
tried a minimal repo with one server route setting the cookie and another getting the cookie and the error isnt ocurring. Can't seem to reproduce it
40 replies
NNuxt
Created by Frox on 2/24/2025 in #❓・help
ohash error eferenceError: Cannot access 'defaults' before initialization
yeah...gonna see if I can create a reproduction to create an issue in the nuxt github repo
40 replies
NNuxt
Created by Frox on 2/24/2025 in #❓・help
ohash error eferenceError: Cannot access 'defaults' before initialization
using override with h3 1.15.0 worked, thanks again @Frox .
40 replies
NNuxt
Created by Frox on 2/24/2025 in #❓・help
ohash error eferenceError: Cannot access 'defaults' before initialization
this randomly started happening to my production build as well, thanks so much for posting @Frox . Will try your workaround and report back
40 replies
NNuxt
Created by Danny Vogel on 10/24/2024 in #❓・help
Missing environmental variable causing infinite errors
@kapa.ai I use runtime config and all variables are set to empty strings. The values are loaded through the .env file in local development and via the dockerfile when deployed. I won't be setting fallback/default values. I suppose a plugin that checks all envs are loaded could work.
9 replies
NNuxt
Created by Danny Vogel on 10/1/2024 in #❓・help
Issue: Initial page load flash before hydration
Took me way too long to find but what finally seems to have resolved it is disabling all third party scripts (cookie yes, recaptcha, google analytics and helpshift). Now to figure out which one exactly caused the issue but for now im super relieved to have found it!
16 replies
NNuxt
Created by Danny Vogel on 10/1/2024 in #❓・help
Issue: Initial page load flash before hydration
Thanks, i'll see if I can figure out whats going on there and otherwise just continue dumbing down till its solved. Will update if I find anything interesting
16 replies
NNuxt
Created by Danny Vogel on 10/1/2024 in #❓・help
Issue: Initial page load flash before hydration
that blue line dip is curious but hard to determine what exactly is happening. Its the 'javascript heap'. Again, I could be way off base
16 replies
NNuxt
Created by Danny Vogel on 10/1/2024 in #❓・help
Issue: Initial page load flash before hydration
No description
16 replies