# Uncaught TypeError: Cannot read property 'classList' of null in shopware 6

**URL:** <https://forum.shopware.com/t/uncaught-typeerror-cannot-read-property-classlist-of-null-in-shopware-6/90429>\
**Category:** Programming (EN)\
**Tags:** programming\
**Created:** [20. September 2021 um 11:38 UTC](https://forum.shopware.com/t/uncaught-typeerror-cannot-read-property-classlist-of-null-in-shopware-6/90429 "2021-09-20T11:38:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![abinjohnedamana](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/abinjohnedamana/32/17378_2.png) [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Post date:** [20. September 2021 um 11:38 UTC](https://forum.shopware.com/t/uncaught-typeerror-cannot-read-property-classlist-of-null-in-shopware-6/90429/1 "2021-09-20T11:38:45Z")

</div>

Hi

I have a Shopware 6 shop [https://test.implify.de/I](https://test.implify.de/I) have created another sales channel [https://ch.implify.de/My](https://ch.implify.de/My) problem is the submenus are not showing on hover the main menu in the new sales channel [https://ch.implify.de/I](https://ch.implify.de/I) got the following error from the console on hover

```auto
`all.js?1632137151937866:5 Uncaught TypeError: Cannot read property 'classList' of null`
` at e.value (all.js?1632137151937866:5)`
` at e.value (all.js?1632137151937866:5)`
` at all.js?1632137151937866:5`
` at NodeList.forEach (<anonymous>)`
` at Function.value (all.js?1632137151937866:3)`
` at e.value (all.js?1632137151937866:5)`
` at e.value (all.js?1632137151937866:5)`

```

How to fix this?

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [20. September 2021 um 22:30 UTC](https://forum.shopware.com/t/uncaught-typeerror-cannot-read-property-classlist-of-null-in-shopware-6/90429/2 "2021-09-20T22:30:35Z")

</div>

Did you assign the categories to the new sales channel? Nevertheless, this error should not happen at all.

---

<div class="post-metadata">

**Author:** ![abinjohnedamana](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/abinjohnedamana/32/17378_2.png) [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Post date:** [21. September 2021 um 07:18 UTC](https://forum.shopware.com/t/uncaught-typeerror-cannot-read-property-classlist-of-null-in-shopware-6/90429/4 "2021-09-21T07:18:56Z")

</div>

The `Hide categories in the menu bar` plugin is the reason for this issue.

> **[Hide categories in the menu bar](https://store.shopware.com/en/loyxx26593836747/hide-categories-in-the-menu-bar.html)**
>
> Sometimes you want to hide certain categories in the navigation, or even in the sidebar, so that they do not disturb. With our SW6 plugin you can…
