JS error with affix

Created on 31 January 2023, almost 2 years ago
Updated 26 July 2023, over 1 year ago

I've just installed barrio and bootstrap_sass, last stable version of both (5.5.9 and 5.0.6).
I've create subtheme, compiled, it works.
If I try to enable affix for a navbar, it works only for logged users.
If I navigate to a page as anonymous I've this js error:

Uncaught ReferenceError: once is not defined
    attach http://localhost:8888/themes/contrib/bootstrap_barrio/js/affix.js?v=10.0.2:29
    attachBehaviors http://localhost:8888/core/misc/drupal.js?v=10.0.2:166
    attachBehaviors http://localhost:8888/core/misc/drupal.js?v=10.0.2:162
    <anonymous> http://localhost:8888/core/misc/drupal.init.js?v=10.0.2:32
    listener http://localhost:8888/core/misc/drupal.init.js?v=10.0.2:20
    domReady http://localhost:8888/core/misc/drupal.init.js?v=10.0.2:26
    <anonymous> http://localhost:8888/core/misc/drupal.init.js?v=10.0.2:31
    <anonymous> http://localhost:8888/core/misc/drupal.init.js?v=10.0.2:34

It starts on line 29 of affix.js

What's wrong?

Thanks.

💬 Support request
Status

Active

Version

5.0

Component

Code

Created by

🇮🇹Italy arrubiu

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

Comments & Activities

Production build 0.71.5 2024