420
Views
3
Comments
Cannot read property 'querySelectorAll' of null

Hi.

i just update my app to OutsystemsUI 2.3.0 and after the update when i open the Menu Block i got the this error Cannot read property 'querySelectorAll' of null.

As far as i could track this error caused by javascript on a action called SetMenuAttributes.

Probably the problem is in the second line:

var menu = document.querySelector('.app-menu-links');


Anyone's getting this error too? 

2020-09-11 18-53-44
Stacey Levine

Hi David,


Can you go to service center and look for the log? If so, please post the entire log.

2025-07-21 09-18-19
David Rodrigues

Solved!

I was not using the class app-menu-links anymore on the menu block. That was causing the problem.

2022-01-13 11-39-41
Bernardo Cardoso
Staff

Hi David,


Thank you for the report. Sorry that you encountered that issue. We will improve that code, to prevent that from happening.


Best regards,

Bernardo Cardoso


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.