Nothing works right. I've tried putting the library files in the right directory and nothing works. I've tried version 8x2.5 with 1.1.1 and other versions. Nothing.

Comments

lquessenberry created an issue. See original summary.

lquessenberry’s picture

I keep getting this.

drupal.js?v=8.9.0-dev:13 Uncaught ReferenceError: GridStack is not defined
at Object.init (:1:1327)
at Object.dBlazy.forEach (:225:18)
at Object.attach (:1:1548)
at drupal.js?v=8.9.0-dev:25
at Array.forEach ()
at Object.Drupal.attachBehaviors (drupal.js?v=8.9.0-dev:22)
at HTMLDivElement. (ajax.js?v=8.9.0-dev:560)
at Function.each (jquery.min.js?v=3.4.1:2)
at k.fn.init.each (jquery.min.js?v=3.4.1:2)
at Drupal.AjaxCommands.insert (ajax.js?v=8.9.0-dev:558)

gausarts’s picture

Status: Active » Postponed (maintainer needs more info)

Thank you.

What does /admin/reports/status say about GridStack library exactly?

gausarts’s picture

Title: Can't install properly. » Can't install properly without GridStack library
Component: Code » Documentation
Category: Bug report » Support request
Status: Postponed (maintainer needs more info) » Fixed

Looks like an obvious missing requirement. Be sure to install the library properly first.
The same applies to any module which normally requires third party library.

Friendly tips:
Do not always take composer for granted. Always verify the install at /admin/reports/status for sure.

Feel free to re-open if still an issue.

lquessenberry’s picture

Thanks. Yes this is fixed, but I have another issue related to it. Turns out a `drush cr` was all I had to do to fix my problem.

Status: Fixed » Closed (fixed)

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