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
Operating system: Windows_NT. Node version is v20.13.1, Nuxt version is 3.11.2, and CLI version is 3.11.1. The problem is related to passing a user-defined function in runtimeConfig, which cannot handle functions and arrays.
nuxtbot
changed the title
I want to pass in a user-defined function, but runtimeConfig cannot pass in functions and arrays.
"I want to pass in a user-defined function, but runtimeConfig cannot pass in functions and arrays."
May 28, 2024
If I use addTemplate to set a config file to the user directory, how should I write it? Are there any simple examples?
and i have read #20933#18762
Still no solution found
Summary (generated):
Here is a brief summary of the text in English:
Operating system: Windows_NT. Node version is v20.13.1, Nuxt version is 3.11.2, and CLI version is 3.11.1. The problem is related to passing a user-defined function in runtimeConfig, which cannot handle functions and arrays.
Environment
Reproduction
https://github.com/copyfrom/nuxt-http/blob/chore/src/runtime/core/options.ts
Describe the bug
I want to pass in a user-defined function, but runtimeConfig cannot pass in functions and arrays.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: