A user, merefield, reported an error when loading the account preferences route directly (http://localhost:4200/u/merefield/preferences/account) in their local development environment. The error was an Uncaught ReferenceError related to the queryParams declaration. This issue did not occur on Meta or on merefield’s Raspberry Pi development install.
After troubleshooting, including trying safe mode and re-pulling from the repository, david suggested that the issue might be related to one of the plugins bundled in the core. However, david later revealed that the problem was actually caused by the navigation mode being set to “dropdown” (not sidebar). A fix for this issue has been implemented by vinothkannans and merefield was able to reproduce the issue in the classic dropdown format on their Raspberry Pi.
Error occurred:
- While rendering:
-top-level
application
discourse-root
user
user-nav
horizontal-overflow-nav
d-navigation-item
link-to
<anonymous> discourse-boot.js:21
Uncaught ReferenceError: While generating link to route "userPrivateMessages": can't access lexical declaration 'queryParams' before initialization
This without any Theme Components or plugins installed on current dev build …
Does using safe mode locally help? (I know you said there aren’t any custom plugins/themes, but perhaps it’s being affected by one of the plugins bundled in core)
Aha, we had some other reports of this @merefield and managed to track it down. Looks like it happens when the navigation mode is “dropdown” (not sidebar)