I get this error at the Status report site

GRIDSTACK LIBRARY Not installed
The GridStack library should be installed at /libraries/gridstack/dist/gridstack-h5.js|gridstack-static.js, or any path supported by core D8.9 library finder. Check out file or folder permissions if troubled.

--
Here it is a solution, please update the docs for the latest versions of
GridStack (8.x-2.9+ and DEV ) that require library v5:

composer require 'npm-asset/gridstack:^5.1.1'

or
npm install --save gridstack@5.1.1

otherwise it will download version 6.0.x

Comments

desix75 created an issue. See original summary.

desix75’s picture

Issue summary: View changes
desix75’s picture

Version: 8.x-2.8 » 8.x-2.9
gausarts’s picture

Category: Support request » Task

Noted. Thank you.

Marking this as task.

To support v6 while supporting v4-v5, we should consinder hook_library_info_alter and modify path to a new location if detected. Samples are at Slick or Splide.

If anyone are interested, patches are welcome to be included here or at a new thread, no problems. Thanks.

belba’s picture

For people who have problems downloading the library via composer. Here I copy the info obtained from the Blazy UI help info.

You need the asset-packagist.

Under repositories add :

"repositories": [
        {
            "type": "composer",
            "url": "https://asset-packagist.org"
        }
    ]

Under extra add :

"extra": {
        "installer-types": [
            "bower-asset",
            "npm-asset"
        ],
        "installer-paths": {
            "web/libraries/{$name}": [
                "type:drupal-library",
                "type:bower-asset",
                "type:npm-asset"
            ],

Run this command

composer require oomphinc/composer-installers-extender

Then try to reinstall the library in version 5.x as above instructed.

gausarts’s picture

Title: GRIDSTACK LIBRARY Not installed » GRIDSTACK LIBRARY v6+ is not supported yet
gausarts’s picture

Status: Active » Fixed

Should be there since 2.10+.

GridStack library moves very faster than any humble developers could catch up:

  • V5.1.1 is the only latest tested version, and the last version which is more efficient thanks to clear separation between front-end and back-end, IMHO.
  • V6-8+ (as of this writing) will need more free time which I currently don't have. Chasing up different file or folder structures for every version, aside from breaking changes, is already a bit too exhausting for small projects.

As an end user, I don't mind older versions as long as they work properly, or at least as expected.
For this reason I also prefer older Slick v1.6 than the newest ones, mostly due to unresolved bugs with the latest ones. I don't worry much about minor improvements, I would worry more about battle-tested versions and their stability.

Once we got more free time we should consider to update, but no priorities in the near future.

Thanks.

Status: Fixed » Closed (fixed)

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