Hi @Mr.Xurrent I have been trying to reproduce locally and haven’t been able to regardless of how my plugins are set up. You said only plugins by the team were enabled but do you have any other plugins installed that are disabled?
Can you also try running this in the console when you are seeing the error and pasting the result here:
(() => {
const raw = JSON.parse(
JSON.parse(document.querySelector("#data-preloaded").textContent).site
).admin_config_login_routes;
const live = Discourse.__container__
.lookup("service:site")
.admin_config_login_routes;
return {
raw,
rawType: typeof raw,
rawConstructor: raw?.constructor?.name,
rawIsArray: Array.isArray(raw),
live,
liveType: typeof live,
liveConstructor: live?.constructor?.name,
liveIsArray: Array.isArray(live),
liveHasMap: typeof live?.map === "function",
arrayPrototypeHasMap: typeof Array.prototype.map === "function",
};
})()
At this point I am really unsure how you could be getting a value for admin_config_login_routes that doesn’t allow map. When I disable all plugins from the server with LOAD_PLUGINS=0, I get an empty array. At all other points, I have an array of values. Both work with map but something like {} or "oauth2" outside of an array would trigger the error.