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
Runtime config set in Nuxt config needs to be serialisable. Map is not a valid type for it, and no matter what, won't be passed directly to the browser. It's possible we could accept Map as a type for it in nuxt.config but I think the benefit is very slight, when you could simply do:
We might be able to do some interesting things with serialising different data types between server -> client (e.g. #12831, #19205) but I think that we should not support them between nuxt.config -> build. Rather, we should update the types for runtimeConfig and appConfig input in nuxt.config to disallow non-JSON-serialisable types from being set as an early-warning flag for users.
Environment
Linux
v17.2.0
3.0.0-rc.3
npm@8.1.4
vite
-
-
-
Reproduction
in
nuxt.config.ts
add:Describe the bug
The map is transformed into an empty object (regardless if the map was empty or not) instead of being passed to the browser as-is.
Additional context
The expected behavior was working in rc1
Logs
No response
The text was updated successfully, but these errors were encountered: