You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With ssr: false, the useRuntimeConfig() breaks somehow. I get an error and the entire application is not rendered.
Additional context
It has to do with these lines:
construntimeConfig=process.server ? options.ssrContext.runtimeConfig : reactive(nuxtApp.payload.config);constcompatibilityConfig=newProxy(runtimeConfig,{get(target,prop){if(propintarget){returntarget[prop];}if(process.dev&&propintarget.public){console.warn(`[nuxt] [runtimeConfig] You are trying to access a public runtime config value (\`${prop}\`) directly from the top level. This currently works (for backward compatibility with Nuxt 2) but this compatibility layer will be removed in v3.5. Instead, you can update \`config['${prop}']\` to \`config.public['${prop}']\`.`);}returntarget.public[prop];},set(target,prop,value){if(process.server||prop==="public"||prop==="app"){returnfalse;}target[prop]=value;target.public[prop]=value;returntrue;}});
Logs
Error while mounting app: TypeError: `target` argument of Proxy must be an object, got undefined
The text was updated successfully, but these errors were encountered:
Environment
Reproduction
https://stackblitz.com/edit/github-eky4to?file=app.vue
Describe the bug
With
ssr: false
, theuseRuntimeConfig()
breaks somehow. I get an error and the entire application is not rendered.Additional context
It has to do with these lines:
Logs
The text was updated successfully, but these errors were encountered: