Problem/Motivation

When trying to use the provided juicer.js on a site also using Slick and other modules, the JS console throws errors related to once not being a function.

drupal.js?v=8.9.3:13 Uncaught TypeError: i(...).once is not a function
    at Object.attach (slick.load.min.js?v=8.9.3:1)
    at drupal.js?v=8.9.3:25
    at Array.forEach (<anonymous>)
    at Object.Drupal.attachBehaviors (drupal.js?v=8.9.3:22)
    at drupal.init.js?v=8.9.3:28
    at HTMLDocument.listener (drupal.init.js?v=8.9.3:20)
attach	@	slick.load.min.js?v=8.9.3:1
(anonymous)	@	drupal.js?v=8.9.3:25
Drupal.attachBehaviors	@	drupal.js?v=8.9.3:22
(anonymous)	@	drupal.init.js?v=8.9.3:28
listener	@	drupal.init.js?v=8.9.3:20
setTimeout (async)		
Drupal.throwError	@	drupal.js?v=8.9.3:12
(anonymous)	@	drupal.js?v=8.9.3:27
Drupal.attachBehaviors	@	drupal.js?v=8.9.3:22
(anonymous)	@	drupal.init.js?v=8.9.3:28
listener	@	drupal.init.js?v=8.9.3:20

Steps to reproduce

Proposed resolution

Modify how the libraries are being loaded in Drupal 8 so that they do not conflict with core jQuery and Slick.

Remaining tasks

User interface changes

API changes

Data model changes

Comments

mikemadison created an issue. See original summary.

mikemadison’s picture

mikemadison’s picture

Status: Active » Needs review
StatusFileSize
new611 bytes
bemarlan’s picture

Status: Needs review » Reviewed & tested by the community

Patch fixes the issue for me.

  • vuil committed 5b5a680 on 8.x-1.x authored by mikemadison
    Issue #3166167 by mikemadison, bemarlan, vuil: Uncaught TypeError: i...
vuil’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.