Frox
ohash error eferenceError: Cannot access 'defaults' before initialization
Thank to @pi0 he did it, https://github.com/nitrojs/nitro/issues/3225
I think we can then close this, and continue on github.
40 replies
ohash error eferenceError: Cannot access 'defaults' before initialization
@Danny Vogel
Good news I've managed to create reproduction: https://stackblitz.com/edit/github-8y9ws25x
Updated your issue on Github
40 replies
ohash error eferenceError: Cannot access 'defaults' before initialization
Comes from: https://github.com/nitrojs/nitro/blob/67c396ba109ec209584a4603b72a2905308ad08c/src/runtime/internal/hash.ts
40 replies
ohash error eferenceError: Cannot access 'defaults' before initialization
And is all related to this change: https://github.com/unjs/h3/compare/v1.15.0...v1.15.1
40 replies
ohash error eferenceError: Cannot access 'defaults' before initialization
Also think is related to this as well: https://github.com/nitrojs/nitro/issues/3123
40 replies
ohash error eferenceError: Cannot access 'defaults' before initialization
Ok the issue is the new update of h3 https://github.com/unjs/h3/releases
Downgrading to 1.15.0 resolved it.
But the thing is nitro uses h3 as dep: "h3": "^1.15.0",
40 replies
loadingTemplate - how to use?
Asked on SO with more details: https://stackoverflow.com/questions/78765002/how-to-set-loadingtemplate-inside-custom-nuxt-module
2 replies
Repository pattern server side / How to use plugin custom fetch server side ?
Not sure If I understood your question correctly:
But You can define (as on your screenshot) Nitro Handler that will call you PHP API.
Browser -> Nitro -> PHP API.
So your repo with Bearers and endpoints will not be exposed on the client (Browser)
Browser will call you Nitro (Nuxt App) Endpoints.
Is this works for you?
5 replies