# Help - Extension Example Main-Menu does not add menu, just the command

**URL:** <https://discourse.jupyter.org/t/help-extension-example-main-menu-does-not-add-menu-just-the-command/26259>\
**Category:** JupyterLab\
**Tags:** help-wanted\
**Created:** [June 11, 2024, 6:25pm UTC](https://discourse.jupyter.org/t/help-extension-example-main-menu-does-not-add-menu-just-the-command/26259 "2024-06-11T18:25:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gutow](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/gutow/32/4721_2.png) [@gutow](https://discourse.jupyter.org/u/gutow)\
**Post date:** [June 11, 2024, 6:25pm UTC](https://discourse.jupyter.org/t/help-extension-example-main-menu-does-not-add-menu-just-the-command/26259/1 "2024-06-11T18:25:55Z")

</div>

I am trying to rewrite extensions I developed to work under classic jupyter notebooks to work with JupyterLab. I am trying to develop against version ^4. One of my needs are custom menus. I am trying to start with the [main-menu](https://github.com/jupyterlab/extension-examples) extension example. The problem is the example does not add a menu, just the command and there are no obvious errors in the browser console.

When I do jlpm build I do get some warnings about where the crypto and webpack are provided. I assume that has to do with the @jupyterlab modules not being completely up-to-date on where things are in npm. So I do not think those are the problem. Could one of the example authors please suggest what is now failing?

Thanks,  
Jonathan

---

<div class="post-metadata">

**Author:** ![gutow](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/gutow/32/4721_2.png) [@gutow](https://discourse.jupyter.org/u/gutow)\
**Post date:** [June 11, 2024, 9:40pm UTC](https://discourse.jupyter.org/t/help-extension-example-main-menu-does-not-add-menu-just-the-command/26259/2 "2024-06-11T21:40:20Z")

</div>

I can partially answer my own question. The example is missing menu creation code from index.ts. I have sort of managed to cobble something together by pulling pieces from the lab base code and the non-working jupyterlab-snippets code. Is their a minimal example that does work? If I get this working properly I will make a pull request to correct the example.

---

<div class="post-metadata">

**Author:** ![gutow](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/gutow/32/4721_2.png) [@gutow](https://discourse.jupyter.org/u/gutow)\
**Post date:** [June 12, 2024, 5:07pm UTC](https://discourse.jupyter.org/t/help-extension-example-main-menu-does-not-add-menu-just-the-command/26259/3 "2024-06-12T17:07:14Z")

</div>

It appears the example is expecting to load the settings from the schema in a .json file, but I cannot figure out how that is supposed to work within the structure of the example. I have managed to build a menu using code only in my own project. I will report an issue for the example.
