Nuxt3 useRuntimeConfig is not defined.
#1285
Replies: 5 comments 5 replies
-
|
I used |
Beta Was this translation helpful? Give feedback.
-
|
Is there any update on this? Is there a way to access |
Beta Was this translation helpful? Give feedback.
-
|
this looks cleaner and it works as well: |
Beta Was this translation helpful? Give feedback.
-
|
I ended up using To mock |
Beta Was this translation helpful? Give feedback.
-
|
just call it that way: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am testing pinia store in
nuxt3app.Inside
setup()of store I'm usinguseRuntimeConfigto get initial value for counter from public config variables and I got this errorReferenceError: useRuntimeConfig is not defineddon't know how to solve itcode
Beta Was this translation helpful? Give feedback.
All reactions