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
Awaiting the client.start module import before importing client.app gives Vite a chance to define the global constant replacements before the client hooks and universal hooks modules are loaded. However, I don't think this is the right solution.
Describe the bug
Defined a constant in Vite config and used it in hooks.client.js, it result in
ReferenceError: __SOME_THING__ is not defined.
This only affect dev server, and it only happens when used in top-level execution.
Reproduction
Logs
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: