- Issue created by @kaszarobert
- Status changed to Closed: works as designed
almost 2 years ago 10:40am 9 March 2023 - πΈπ°Slovakia kaszarobert
I managed to fix it. That npm installed the wrong version. I solved by adding this to the site's composer.json:
"repositories": { "drupal": { "type": "composer", "url": "https://packages.drupal.org/8" }, "assets": { "type": "composer", "url": "https://asset-packagist.org" }, "clipboard.js": { "type": "package", "package": { "name": "zenorocha/clipboard.js", "version": "2.0.11", "type": "drupal-library", "dist": { "url": "https://github.com/zenorocha/clipboard.js/archive/refs/tags/v2.0.11.zip", "type": "zip" }, "require": { "composer/installers": "~1.0" } } } },
And then running
composer require zenorocha/clipboard.js
I installed the right needed library with composer.