Sidebar cannot find app workspaces

Hi, I am trying to use the new sidebar feature with a custom app.

I created a new app, a new module, and a workspace inside that app.

Now, I am facing some issues with the sidebar UI:

  1. When I click on the app, the URL navigates to the one defined in hooks.py, but not on the first click.
  2. When I open a Doctype under that app, the sidebar becomes blank.

Here is a short gif illustrating the issue:
2025-01-15 14.18.41

Console Error:
I noticed the following error in the console:

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'workspaces')
    at Sidebar.make_sidebar (desk.bundle.V6ESJGGS.js:sourcemap:18433:85)
    at AppsSwitcher.set_current_app (desk.bundle.V6ESJGGS.js:sourcemap:18768:26)
    at Workspace.show_page (desk.bundle.V6ESJGGS.js:sourcemap:41105:42)Understand this errorAI
desk.bundle.V6ESJGGS.js:sourcemap:18433 
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'workspaces')
    at Sidebar.make_sidebar (desk.bundle.V6ESJGGS.js:sourcemap:18433:85)
    at AppsSwitcher.set_current_app (desk.bundle.V6ESJGGS.js:sourcemap:18768:26)
    at Object.update (desk.bundle.V6ESJGGS.js:sourcemap:31226:42)
    at Object.add (desk.bundle.V6ESJGGS.js:sourcemap:31198:12)
    at form.js:593:23

I performed a simple test in the console and found that the workspaces object is missing in the boot info.

How can I set or resolve this issue?

Screenshot of my console test:

Workspace Settings:

Framework: v15.x.x-develop (638b118) (develop)

Thank you very much for help.

1 Like

Hi,

Iā€™m working on a custom app and running into a similar issue with the sidebar. Iā€™ve set up an app, module, and workspace, but sometimes the app doesnā€™t load properly on the first click. Also, when I open a Doctype, the sidebar turns blank.

Iā€™m still learning Frappe, so Iā€™m not sure if Iā€™ve missed something during the setup. Did you manage to find a solution for this?

Thanks!

Hi, I still havenā€™t found a solution.