DrupalSettings.responsive_menu is undefined

Created on 1 November 2016, over 7 years ago
Updated 29 February 2024, 4 months ago

Hi
This is my first post, so if it is misplaced please let me know. I did try to search for similar but did not find any.

I have installed the Drupal 8 version of responsive menus.
I have placed responsive menu mobile icon and Horizontal menu in my Header block

I get this JS-error in chrome
Uncaught TypeError: Cannot read property 'position' of undefined(…)

which refer to this line:
var position = drupalSettings.responsive_menu.position; ( I found the line in responsive_menu.config.js line num:20)

I found out that drupalSettings.responsive_menu is undefined, but I can't figure out why. ( I have the Horizontal menu added)

I got the latest jquery version of mmenu downloaded from http://mmenu.frebsite.nl
I have the latest version og hammerjs and superfish in my libraries.

I have placed a div-container around my content and another for the header.

it is all running on localHost at the moment.

Any suggestions to what I might have done wrong ?

πŸ› Bug report
Status

Closed: works as designed

Version

1.0

Component

Code

Created by

πŸ‡©πŸ‡°Denmark mdam

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024