Fancytree library is not found locally

Created on 18 December 2024, about 2 months ago

For a few days now, this warning has appeared on both Drupal 10 and Drupal 11:

Fancytree library is not found locally. 
The fancytree library will be loaded via CDN, but consider adding it as a composer dependency.

I manually loaded the library, but the warning did not disappear. What could be the cause?

Thanks and best regards

💬 Support request
Status

Active

Version

2.0

Component

Miscellaneous

Created by

🇮🇹Italy giordy

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

Merge Requests

Comments & Activities

  • Issue created by @giordy
  • First commit to issue fork.
  • 🇺🇸United States adrianm6254

    I'm not sure how you tried installing fancytree library but I was able to install it with no problems.

    I used the `wikimedia/composer-merge-plugin` to install the library using composer.

    You can find the procedure here to accomplish it:

    https://www.drupal.org/docs/contributed-modules/webform/webform-cookbook...

  • Pipeline finished with Failed
    about 2 months ago
    Total: 213s
    #377565
  • 🇮🇳India kumareshbaksi

    Made the changes. MR 61, please review.

  • 🇮🇹Italy giordy

    Unfortunately I can't use composer because it is not included in the hosting plan.
    I have been using the module for years and I had never been asked for this library. I don't understand why it happens now.

    Thanks and best regards

  • 🇨🇦Canada paintingguy

    I've tried #23 and cannot make this work. Could you please check if this is correct? Thank you for any help :)

    "require": {
    ....
    "wikimedia/composer-merge-plugin": "dev-feature/composer-v2"
    },
    ...
    "extra": {
    "merge-plugin": {
    "include": [
    "www/modules/contrib/webform/composer.libraries.json",
    "www/modules/custom/*/composer.json",
    "www/profiles/custom/*/composer.json",
    "www/themes/custom/*/composer.json"
    ],
    "merge-extra": true,
    "merge-extra-deep": true,
    "merge-scripts": true
    },
    }
    ...

    "repositories": {
    "asset-packagist": {
    "type": "composer",
    "url": "https://asset-packagist.org"
    },
    "drupal": {
    "type": "composer",
    "url": "https://packages.drupal.org/8"
    },
    "composer-merge-plugin-composer2": {
    "type": "vcs",
    "url": "https://github.com/mcaskill/composer-merge-plugin"
    }
    },

  • 🇺🇸United States adrianm6254

    Looks like you need to add "www/modules/contrib/taxonomy_manager/composer.libraries.json" to your merge-plugin statement.

    "extra": {
    "merge-plugin": {
    "include": [
    "www/modules/contrib/webform/composer.libraries.json",
    "www/modules/custom/*/composer.json",
    "www/profiles/custom/*/composer.json",
    "www/themes/custom/*/composer.json"
    ],

  • 🇨🇦Canada paintingguy

    Thanks for chiming in, adrianm6254 . I still can't get this. I'm not the sharpest coder. I hope I'm not pushing my welcome but here is my composer.json before adding this to it. I would be so grateful if you could add it for me. I must be doing something wrong.

    ********************

    {
    "name": "drupal/legacy-project",
    "description": "Project template for Drupal 9 projects with composer following drupal/drupal layout",
    "type": "project",
    "license": "GPL-2.0-or-later",
    "homepage": " https://www.drupal.org/project/drupal ",
    "support": {
    "docs": " https://www.drupal.org/docs/user_guide/en/index.html ",
    "chat": " https://www.drupal.org/node/314178 "
    },
    "repositories": {
    "dropzonejs": {
    "type": "package",
    "package": {
    "name": "enyo/dropzone",
    "version": "6.0.0-beta.2",
    "type": "drupal-library",
    "dist": {
    "url": "https://github.com/dropzone/dropzone/releases/download/v6.0.0-beta.2/dis...",
    "type": "zip"
    }
    }
    }
    },
    "repositories": [
    {
    "type": "package",
    "package": {
    "name": "jackmoore/colorbox",
    "version": "1.6.4",
    "type": "drupal-library",
    "dist": {
    "url": "https://github.com/jackmoore/colorbox/archive/1.6.4.zip",
    "type": "zip"
    }
    }
    }
    ],
    "repositories": [
    {
    "type": "composer",
    "url": "https://packages.drupal.org/8"
    }
    ],
    "require": {
    "composer/composer": "^2.2",
    "composer/installers": "^2.2",
    "defuse/php-encryption": "^2.4",
    "drupal/adaptivetheme": "^6.0",
    "drupal/adsense": "^1.5",
    "drupal/anchor_link": "^3.0@alpha",
    "drupal/antibot": "^2.0",
    "drupal/asset_injector": "^2.19",
    "drupal/at_theme": "^2.0",
    "drupal/augmentor_openai_gpt3": "^1.0",
    "drupal/back_to_top": "^3.0",
    "drupal/backup_migrate": "^5.0",
    "drupal/bartik": "^1.0",
    "drupal/better_search": "^2.0",
    "drupal/better_social_sharing_buttons": "^4.0",
    "drupal/book": "^2.0@alpha",
    "drupal/bootstrap": "^5.0",
    "drupal/bootstrap3": "^1.0",
    "drupal/bootstrap5": "^4.0",
    "drupal/bootstrap_barrio": "^5.5",
    "drupal/bootstrap_business": "^1.0@beta",
    "drupal/bootstrap_layouts": "^5.3",
    "drupal/bootstrap_library": "^2.0",
    "drupal/breadcrumb_extra_field": "^3.0@alpha",
    "drupal/browser_back_button": "^2.0",
    "drupal/bulk_edit_terms": "^1.7",
    "drupal/bulma": "^1.0",
    "drupal/callus": "^2.3",
    "drupal/captcha": "^2.0",
    "drupal/ckeditor5_icons": "^1.0",
    "drupal/ckeditor5_inline_styles": "^1.0",
    "drupal/ckeditor5_plugin_pack": "^1.1",
    "drupal/ckeditor_font": "^2.0@beta",
    "drupal/classy": "^1.0",
    "drupal/codemirror_editor": "^2.0",
    "drupal/colorbox": "^2.0",
    "drupal/colorbox_field_formatter": "^2.1",
    "drupal/colorbox_inline": "^2.0",
    "drupal/colossal_menu": "^3.0",
    "drupal/comments_order": "^3.0",
    "drupal/components": "^3.0@beta",
    "drupal/composer_deploy": "^1.7",
    "drupal/computed_field": "^4.0@alpha",
    "drupal/config_default_image": "^2.0@beta",
    "drupal/contact_block": "^2.0",
    "drupal/core": "^10.4",
    "drupal/core-composer-scaffold": "10.4.1",
    "drupal/core-project-message": "10.4.1",
    "drupal/core-recommended": "10.4.1",
    "drupal/core-vendor-hardening": "^10.2",
    "drupal/cshs": "^4.0",
    "drupal/css_editor": "^2.0",
    "drupal/ctools": "^4.0",
    "drupal/custom_breadcrumbs": "^1.1",
    "drupal/default_content": "^2.0@alpha",
    "drupal/devel": "^5.0",
    "drupal/devel_entity_updates": "^4.1",
    "drupal/diff": "^2.0@beta",
    "drupal/dropzonejs": "^2.10",
    "drupal/ds": "^3.23",
    "drupal/easy_adsense": "^1.0@alpha",
    "drupal/easy_breadcrumb": "^2.0",
    "drupal/editor_advanced_image": "^3.0",
    "drupal/editor_advanced_link": "^2.2",
    "drupal/editor_file": "^2.0@RC",
    "drupal/editoria11y": "^2.1",
    "drupal/embed": "^1.7",
    "drupal/entity": "^1.4",
    "drupal/entity_browser": "^2.10",
    "drupal/entity_clone": "^2.0@beta",
    "drupal/entity_embed": "^1.6",
    "drupal/entity_update": "^3.0",
    "drupal/entity_usage": "^2.0@beta",
    "drupal/exclude_node_title": "^1.4",
    "drupal/expand_collapse_formatter": "^2.0",
    "drupal/extlink": "^2.0@beta",
    "drupal/faq": "^1.2",
    "drupal/faqfield": "^8.0",
    "drupal/field_permissions": "^1.4",
    "drupal/file_delete": "^3.0",
    "drupal/file_entity": "^2.0@RC",
    "drupal/file_to_media": "^1.0",
    "drupal/fivestar": "^1.0@alpha",
    "drupal/flag": "^4.0@beta",
    "drupal/floating_block": "^2.0",
    "drupal/fontawesome": "^2.26",
    "drupal/fontyourface": "^4.0",
    "drupal/forum": "^1.0",
    "drupal/gin_toolbar": "^2.0",
    "drupal/glossify": "^3.0",
    "drupal/google_analytics": "^4.0",
    "drupal/google_tag": "^2.0",
    "drupal/googlereviews": "^1.1",
    "drupal/hierarchical_taxonomy_menu": "^2.0",
    "drupal/hierarchy_manager": "^3.3",
    "drupal/honeypot": "^2.1",
    "drupal/hreflang": "^1.12",
    "drupal/iek": "^1.3",
    "drupal/imageapi_optimize": "^4.1@beta",
    "drupal/imageapi_optimize_gd": "^2.0",
    "drupal/imageapi_optimize_webp": "^2.0",
    "drupal/imagefield_tokens": "^3.1",
    "drupal/imagick": "^1.11",
    "drupal/imce": "^3.0",
    "drupal/inline_entity_form": "^3.0@RC",
    "drupal/jquery_ui": "^1.6",
    "drupal/jquery_ui_accordion": "^2.0",
    "drupal/jquery_ui_draggable": "^2.1",
    "drupal/jquery_ui_effects": "^2.0",
    "drupal/jquery_ui_resizable": "^2.1",
    "drupal/jsonapi_extras": "^3.26",
    "drupal/layout_bg": "^1.4",
    "drupal/layout_builder_restrictions": "^3.0",
    "drupal/libraries": "^4.0",
    "drupal/linkit": "^7.0@alpha",
    "drupal/machine_name_widget": "^3.1",
    "drupal/manage_display": "^3.0",
    "drupal/media_bulk_upload": "^3.0",
    "drupal/media_directories": "^2.1@beta",
    "drupal/media_entity_browser": "^3.0",
    "drupal/media_gallery": "^3.0",
    "drupal/media_library_edit": "^3.0",
    "drupal/media_library_form_element": "^2.0",
    "drupal/menu_breadcrumb": "^2.0@alpha",
    "drupal/menu_delete": "^2.3",
    "drupal/metatag": "^2.0",
    "drupal/minifyhtml": "^2.0",
    "drupal/minifyjs": "^3.0",
    "drupal/modal_page": "^6.0@beta",
    "drupal/notify_widget": "^1.0",
    "drupal/pager_metadata": "^1.0",
    "drupal/paragraphs": "^1.17",
    "drupal/pathauto": "^1.13",
    "drupal/pathologic": "^2.0@alpha",
    "drupal/permissionspolicy": "^1.2",
    "drupal/photoswipe": "^5.0",
    "drupal/quickedit": "^1.0",
    "drupal/quote": "^4.0",
    "drupal/redirect": "^1.9",
    "drupal/remove_http_headers": "^2.1",
    "drupal/responsive_image_preload": "^2.0",
    "drupal/restui": "^1.22",
    "drupal/rip": "^1.1",
    "drupal/scanner": "^2.0@beta",
    "drupal/schema_metatag": "^3.0",
    "drupal/scn": "^2.0",
    "drupal/search_exclude": "^3.0@beta",
    "drupal/seckit": "^2.0",
    "drupal/select2": "^1.15",
    "drupal/similarterms": "^1.8",
    "drupal/simple_sitemap": "^4.1",
    "drupal/snippet_manager": "^3.0",
    "drupal/starrating": "^4.1@alpha",
    "drupal/statistics": "^1.0",
    "drupal/superfish": "^1.7",
    "drupal/tagclouds": "^2.0",
    "drupal/taxonomy_bulk_actions": "^1.0",
    "drupal/taxonomy_import": "^2.0",
    "drupal/taxonomy_manager": "^2.0",
    "drupal/taxonomy_menu_ui": "^3.0",
    "drupal/taxonomy_path_breadcrumb": "^1.0",
    "drupal/taxonomy_unique": "^2.5",
    "drupal/term_merge": "^2.0@beta",
    "drupal/term_reference_change": "^2.0@beta",
    "drupal/term_reference_fancytree": "^3.0",
    "drupal/term_reference_tree": "^2.0",
    "drupal/term_sidebar": "^1.0",
    "drupal/theme_per_user": "^1.0",
    "drupal/theme_switcher": "^2.0",
    "drupal/token": "^1.13",
    "drupal/token_filter": "^2.1",
    "drupal/token_or": "^2.2",
    "drupal/unlimited_number": "^2.0",
    "drupal/upgrade_status": "^4.3",
    "drupal/user_bundle": "^1.2",
    "drupal/video_embed_field": "^3.0@alpha",
    "drupal/views_accordion": "^2.0",
    "drupal/views_bootstrap": "^5.5@beta",
    "drupal/views_bulk_edit": "^3.0",
    "drupal/views_bulk_operations": "^4.3@beta",
    "drupal/votingapi": "^3.0@beta",
    "drupal/votingapi_reaction": "^1.7",
    "drupal/webp": "^1.0@RC",
    "drupal/yoast_seo": "^2.0@alpha",
    "drush/drush": "^12.5",
    "enyo/dropzone": "^5.9",
    "jangregor/phpstan-prophecy": "^1.0",
    "laminas/laminas-httphandlerrunner": "^2.10",
    "mck89/peast": "^1.15",
    "oomphinc/composer-installers-extender": "^2.0",
    "phpstan/phpstan-phpunit": "^1.3",
    "roave/better-reflection": "^6.19",
    "symfony/error-handler": "^6.4",
    "twbs/bootstrap": "5.3.3",
    "wikimedia/composer-merge-plugin": "^2.1"
    },
    "conflict": {
    "drupal/drupal": "*"
    },
    "minimum-stability": "stable",
    "prefer-stable": true,
    "config": {
    "allow-plugins": {
    "composer/installers": true,
    "dealerdirect/phpcodesniffer-composer-installer": true,
    "drupal/core-composer-scaffold": true,
    "drupal/core-project-message": true,
    "drupal/core-vendor-hardening": true,
    "oomphinc/composer-installers-extender": true,
    "php-http/discovery": true,
    "phpstan/extension-installer": true,
    "wikimedia/composer-merge-plugin": true
    },
    "sort-packages": true
    },
    "extra": {
    "drupal-scaffold": {
    "locations": {
    "web-root": "./"
    }
    },
    "installer-paths": {
    "core": [
    "type:drupal-core"
    ],
    "libraries/{$name}": [
    "type:drupal-library"
    ],
    "modules/contrib/{$name}": [
    "type:drupal-module"
    ],
    "profiles/contrib/{$name}": [
    "type:drupal-profile"
    ],
    "themes/contrib/{$name}": [
    "type:drupal-theme"
    ],
    "drush/Commands/contrib/{$name}": [
    "type:drupal-drush"
    ],
    "modules/custom/{$name}": [
    "type:drupal-custom-module"
    ],
    "profiles/custom/{$name}": [
    "type:drupal-custom-profile"
    ],
    "themes/custom/{$name}": [
    "type:drupal-custom-theme"
    ]
    },
    "drupal-core-project-message": {
    "include-keys": [
    "homepage",
    "support"
    ],
    "post-create-project-cmd-message": [
    " ",
    " Congratulations, you’ve installed the Drupal codebase ",
    " from the drupal/legacy-project template! ",
    " ",
    "",
    "Next steps:",
    " * Install the site: https://www.drupal.org/docs/installing-drupal ",
    " * Read the user guide: https://www.drupal.org/docs/user_guide/en/index.html ",
    " * Get support: https://www.drupal.org/support ",
    " * Get involved with the Drupal community:",
    " https://www.drupal.org/getting-involved ",
    " * Remove the plugin that prints this message:",
    " composer remove drupal/core-project-message"
    ]
    }
    },
    "require-dev": {
    "mglaman/phpstan-drupal": "^1.2",
    "palantirnet/drupal-rector": "^0.18.6",
    "phpstan/extension-installer": "^1.3",
    "phpstan/phpstan": "^1.10",
    "phpstan/phpstan-deprecation-rules": "^1.1"
    }
    }

  • 🇺🇸United States adrianm6254

    Hi paintingguy,

    Here are the issues I see with your composer.json

    1) You should only have 1 repository heading

      "repositories": [
        {
          "type": "package",
          "package": {
            "name": "enyo/dropzone",
            "version": "6.0.0-beta.2",
            "type": "drupal-library",
            "dist": {
              "url": "https://github.com/dropzone/dropzone/releases/download/v6.0.0-beta.2/dis...",
              "type": "zip"
            }
          }
        },
        {
          "type": "package",
          "package": {
            "name": "jackmoore/colorbox",
            "version": "1.6.4",
            "type": "drupal-library",
            "dist": {
              "url": "https://github.com/jackmoore/colorbox/archive/1.6.4.zip",
              "type": "zip"
            }
          }
        },
        {
          "type": "composer",
          "url": "https://packages.drupal.org/8"
        }
      ],
    

    2) You are missing "merge-plugin section which is placed under the "extra" section

            "merge-plugin": {
                "include": [
                    "web/modules/contrib/webform/composer.libraries.json",
                    "web/modules/contrib/*/composer.libraries.json"
                ]
            },
    

    3) I don't see your fancytree/fancytree package in the require section
    - you have to run "composer require fancytree/fancytree" once everything is setup in your composer.json to install the library

  • 🇨🇦Canada paintingguy

    I have tried for days to get this to work.

    {
    "name": "drupal/legacy-project",
    "description": "Project template for Drupal 9 projects with composer following drupal/drupal layout",
    "type": "project",
    "license": "GPL-2.0-or-later",
    "homepage": " https://www.drupal.org/project/drupal ",
    "support": {
    "docs": " https://www.drupal.org/docs/user_guide/en/index.html ",
    "chat": " https://www.drupal.org/node/314178 "
    },
    "repositories": [
    {
    "asset-packagist": {
    "type": "composer",
    "url": "https://asset-packagist.org"
    },
    "composer-merge-plugin-composer2": {
    "type": "vcs",
    "url": "https://github.com/mcaskill/composer-merge-plugin"
    },
    "type": "package",
    "package": {
    "name": "jackmoore/colorbox",
    "version": "1.6.4",
    "type": "drupal-library",
    "dist": {
    "url": "https://github.com/jackmoore/colorbox/archive/1.6.4.zip",
    "type": "zip"
    }
    }
    },
    {
    "type": "package",
    "package": {
    "name": "enyo/dropzone",
    "version": "5.9.3",
    "type": "drupal-library",
    "dist": {
    "url": "https://github.com/dropzone/dropzone/releases/download/v5.9.3/dist.zip",
    "type": "zip"
    }
    }
    },
    {
    "type": "package",
    "package": {
    "name": "exif-js/exif-js",
    "version": "v2.3.0",
    "type": "drupal-library",
    "dist": {
    "type": "zip",
    "url": "https://github.com/exif-js/exif-js/archive/refs/tags/v2.3.0.zip"
    }
    }
    },
    {
    "repositories": {
    "jquery.fancytree": {
    "type": "package",
    "package": {
    "name": "jquery/fancytree",
    "version": "2.38.3",
    "type": "drupal-library"
    }
    }
    },
    "type": "composer",
    "url": "https://packages.drupal.org/8"
    }
    ],
    "require": {
    "composer/composer": "^2.2",
    "composer/installers": "^2.2",
    "defuse/php-encryption": "^2.4",
    "drupal/adaptivetheme": "^6.0",
    "drupal/adsense": "^1.5",
    "drupal/anchor_link": "^3.0@alpha",
    "drupal/antibot": "^2.0",
    "drupal/asset_injector": "^2.19",
    "drupal/at_theme": "^2.0",
    "drupal/augmentor_openai_gpt3": "^1.0",
    "drupal/back_to_top": "^3.0",
    "drupal/backup_migrate": "^5.0",
    "drupal/bartik": "^1.0",
    "drupal/better_search": "^2.0",
    "drupal/better_social_sharing_buttons": "^4.0",
    "drupal/blog": "^3.1",
    "drupal/book": "^2.0@alpha",
    "drupal/bootstrap": "^5.0",
    "drupal/bootstrap5": "^4.0",
    "drupal/bootstrap_barrio": "^5.5",
    "drupal/bootstrap_business": "^1.0@beta",
    "drupal/bootstrap_layouts": "^5.3",
    "drupal/bootstrap_library": "^2.0",
    "drupal/breadcrumb_extra_field": "^3.0@alpha",
    "drupal/browser_back_button": "^2.0",
    "drupal/bulk_edit_terms": "^1.7",
    "drupal/bulma": "^1.0",
    "drupal/callus": "^2.3",
    "drupal/captcha": "^2.0",
    "drupal/ckeditor5_icons": "^1.0",
    "drupal/ckeditor5_inline_styles": "^1.0",
    "drupal/ckeditor5_plugin_pack": "^1.1",
    "drupal/ckeditor_font": "^2.0@beta",
    "drupal/classy": "^1.0",
    "drupal/codemirror_editor": "^2.0",
    "drupal/colorbox": "^2.1",
    "drupal/colorbox_field_formatter": "^2.1",
    "drupal/colorbox_inline": "^2.0",
    "drupal/colossal_menu": "^3.0",
    "drupal/comments_order": "^3.0",
    "drupal/components": "^3.0@beta",
    "drupal/composer_deploy": "^1.7",
    "drupal/computed_field": "^4.0@alpha",
    "drupal/config_default_image": "^2.0@beta",
    "drupal/contact_block": "^2.0",
    "drupal/core": "^10.4",
    "drupal/core-composer-scaffold": "10.4.1",
    "drupal/core-project-message": "10.4.1",
    "drupal/core-recommended": "10.4.1",
    "drupal/core-vendor-hardening": "^10.2",
    "drupal/cshs": "^4.0",
    "drupal/css_editor": "^2.0",
    "drupal/ctools": "^4.0",
    "drupal/custom_breadcrumbs": "^1.1",
    "drupal/default_content": "^2.0@alpha",
    "drupal/devel": "^5.0",
    "drupal/devel_entity_updates": "^4.1",
    "drupal/diff": "^2.0@beta",
    "drupal/dropzonejs": "^2.11",
    "drupal/ds": "^3.23",
    "drupal/easy_adsense": "^1.0@alpha",
    "drupal/easy_breadcrumb": "^2.0",
    "drupal/editor_advanced_image": "^3.0",
    "drupal/editor_advanced_link": "^2.2",
    "drupal/editor_file": "^2.0@RC",
    "drupal/embed": "^1.7",
    "drupal/entity": "^1.4",
    "drupal/entity_browser": "^2.10",
    "drupal/entity_clone": "^2.0@beta",
    "drupal/entity_embed": "^1.6",
    "drupal/entity_update": "^3.0",
    "drupal/entity_usage": "^2.0@beta",
    "drupal/exclude_node_title": "^1.4",
    "drupal/expand_collapse_formatter": "^2.0",
    "drupal/extlink": "^2.0@beta",
    "drupal/faqfield": "^8.0",
    "drupal/field_permissions": "^1.4",
    "drupal/file_delete": "^3.0",
    "drupal/file_entity": "^2.0@RC",
    "drupal/file_to_media": "^1.0",
    "drupal/fivestar": "^1.0@alpha",
    "drupal/flag": "^4.0@beta",
    "drupal/floating_block": "^2.0",
    "drupal/fontawesome": "^2.26",
    "drupal/fontyourface": "^4.0",
    "drupal/forum": "^1.0",
    "drupal/gin_toolbar": "^2.0",
    "drupal/glossify": "^3.0",
    "drupal/google_analytics": "^4.0",
    "drupal/google_tag": "^2.0",
    "drupal/googlereviews": "^1.1",
    "drupal/hierarchical_taxonomy_menu": "^2.0",
    "drupal/hierarchy_manager": "^3.3",
    "drupal/honeypot": "^2.1",
    "drupal/hreflang": "^1.12",
    "drupal/iek": "^1.3",
    "drupal/imageapi_optimize": "^4.1@beta",
    "drupal/imageapi_optimize_gd": "^2.0",
    "drupal/imageapi_optimize_webp": "^2.0",
    "drupal/imagefield_tokens": "^3.1",
    "drupal/imagick": "^1.11",
    "drupal/imce": "^3.0",
    "drupal/inline_entity_form": "^3.0@RC",
    "drupal/jquery_ui": "^1.6",
    "drupal/jquery_ui_accordion": "^2.0",
    "drupal/jquery_ui_draggable": "^2.1",
    "drupal/jquery_ui_effects": "^2.0",
    "drupal/jquery_ui_resizable": "^2.1",
    "drupal/jsonapi_extras": "^3.26",
    "drupal/layout_bg": "^1.4",
    "drupal/layout_builder_restrictions": "^3.0",
    "drupal/libraries": "^4.0",
    "drupal/linkit": "^7.0@alpha",
    "drupal/machine_name_widget": "^3.1",
    "drupal/manage_display": "^3.0",
    "drupal/media_bulk_upload": "^3.0",
    "drupal/media_directories": "^2.1@beta",
    "drupal/media_entity_browser": "^3.0",
    "drupal/media_gallery": "^3.0",
    "drupal/media_library_edit": "^3.0",
    "drupal/media_library_form_element": "^2.0",
    "drupal/menu_breadcrumb": "^2.0@alpha",
    "drupal/menu_delete": "^2.3",
    "drupal/metatag": "^2.0",
    "drupal/minifyhtml": "^2.0",
    "drupal/minifyjs": "^3.0",
    "drupal/modal_page": "^6.0@beta",
    "drupal/notify_widget": "^1.0",
    "drupal/pager_metadata": "^1.0",
    "drupal/paragraphs": "^1.17",
    "drupal/pathauto": "^1.13",
    "drupal/pathologic": "^2.0@alpha",
    "drupal/permissionspolicy": "^1.2",
    "drupal/photoswipe": "^5.0",
    "drupal/quickedit": "^1.0",
    "drupal/quote": "^4.0",
    "drupal/redirect": "^1.9",
    "drupal/remove_http_headers": "^2.1",
    "drupal/responsive_image_preload": "^2.0",
    "drupal/restui": "^1.22",
    "drupal/rip": "^1.1",
    "drupal/scanner": "^2.0@beta",
    "drupal/schema_metatag": "^3.0",
    "drupal/scn": "^2.0",
    "drupal/search_exclude": "^3.0@beta",
    "drupal/seckit": "^2.0",
    "drupal/select2": "^1.15",
    "drupal/similarterms": "^1.8",
    "drupal/simple_sitemap": "^4.1",
    "drupal/snippet_manager": "^3.0",
    "drupal/starrating": "^4.1@alpha",
    "drupal/statistics": "^1.0",
    "drupal/superfish": "^1.7",
    "drupal/tagclouds": "^2.0",
    "drupal/taxonomy_bulk_actions": "^1.0",
    "drupal/taxonomy_import": "^2.0",
    "drupal/taxonomy_manager": "^2.0",
    "drupal/taxonomy_menu_ui": "^3.0",
    "drupal/taxonomy_path_breadcrumb": "^1.0",
    "drupal/taxonomy_unique": "^2.5",
    "drupal/term_merge": "^2.0@beta",
    "drupal/term_reference_change": "^2.0@beta",
    "drupal/term_reference_fancytree": "^3.0",
    "drupal/term_reference_tree": "^2.0",
    "drupal/term_sidebar": "^1.0",
    "drupal/theme_per_user": "^1.0",
    "drupal/theme_switcher": "^2.0",
    "drupal/token": "^1.13",
    "drupal/token_filter": "^2.1",
    "drupal/token_or": "^2.2",
    "drupal/unlimited_number": "^2.0",
    "drupal/upgrade_status": "^4.3",
    "drupal/user_bundle": "^1.2",
    "drupal/video_embed_field": "^3.0@alpha",
    "drupal/views_accordion": "^2.0",
    "drupal/views_bootstrap": "^5.5@beta",
    "drupal/views_bulk_edit": "^3.0",
    "drupal/views_bulk_operations": "^4.3@beta",
    "drupal/votingapi": "^3.0@beta",
    "drupal/votingapi_reaction": "^1.7",
    "drupal/webp": "^1.0@RC",
    "drupal/yoast_seo": "^2.0@alpha",
    "drush/drush": "^12.5",
    "enyo/dropzone": "^5.9",
    "exif-js/exif-js": "^2.3",
    "jackmoore/colorbox": "^1.6",
    "jangregor/phpstan-prophecy": "^1.0",
    "jquery/fancytree": "*",
    "laminas/laminas-httphandlerrunner": "^2.10",
    "mck89/peast": "^1.15",
    "oomphinc/composer-installers-extender": "^2.0",
    "phpstan/phpstan-phpunit": "^1.3",
    "roave/better-reflection": "^6.19",
    "seld/jsonlint": "^1.11",
    "symfony/error-handler": "^6.4",
    "twbs/bootstrap": "5.3.3",
    "wikimedia/composer-merge-plugin": "^2.1"
    },
    "conflict": {
    "drupal/drupal": "*"
    },
    "minimum-stability": "stable",
    "prefer-stable": true,
    "config": {
    "allow-plugins": {
    "composer/installers": true,
    "dealerdirect/phpcodesniffer-composer-installer": true,
    "drupal/core-composer-scaffold": true,
    "drupal/core-project-message": true,
    "drupal/core-vendor-hardening": true,
    "oomphinc/composer-installers-extender": true,
    "php-http/discovery": true,
    "phpstan/extension-installer": true,
    "wikimedia/composer-merge-plugin": true
    },
    "sort-packages": true
    },
    "extra": {
    "merge-plugin": {
    "include": [
    "web/modules/contrib/webform/composer.libraries.json",
    "web/modules/contrib/taxonomy_manager/composer.libraries.json",
    "web/modules/custom/*/composer.json",
    "web/profiles/custom/*/composer.json",
    "web/themes/custom/*/composer.json"
    ]
    },
    "drupal-scaffold": {
    "locations": {
    "web-root": "./"
    }
    },
    "installer-name": "jquery.fancytree"
    },
    "dist": {
    "url": "https://github.com/mar10/fancytree/archive/refs/tags/v2.38.3.zip",
    "type": "zip",
    "license": "MIT",
    "installer-types": [
    "npm-asset",
    "bower-asset"
    ],
    "installer-paths": {
    "web/libraries/{$name}": [
    "type:drupal-library",
    "type:npm-asset",
    "type:bower-asset"
    ],
    "core": [
    "type:drupal-core"
    ],
    "libraries/{$name}": [
    "type:drupal-library"
    ],
    "modules/contrib/{$name}": [
    "type:drupal-module"
    ],
    "profiles/contrib/{$name}": [
    "type:drupal-profile"
    ],
    "themes/contrib/{$name}": [
    "type:drupal-theme"
    ],
    "drush/Commands/contrib/{$name}": [
    "type:drupal-drush"
    ],
    "modules/custom/{$name}": [
    "type:drupal-custom-module"
    ],
    "profiles/custom/{$name}": [
    "type:drupal-custom-profile"
    ],
    "themes/custom/{$name}": [
    "type:drupal-custom-theme"
    ],
    "merge-extra": true,
    "merge-extra-deep": true,
    "merge-scripts": true
    },
    "drupal-core-project-message": {
    "include-keys": [
    "homepage",
    "support"
    ],
    "post-create-project-cmd-message": [
    " ",
    " Congratulations, you’ve installed the Drupal codebase ",
    " from the drupal/legacy-project template! ",
    " ",
    "",
    "Next steps:",
    " * Install the site: https://www.drupal.org/docs/installing-drupal ",
    " * Read the user guide: https://www.drupal.org/docs/user_guide/en/index.html ",
    " * Get support: https://www.drupal.org/support ",
    " * Get involved with the Drupal community:",
    " https://www.drupal.org/getting-involved ",
    " * Remove the plugin that prints this message:",
    " composer remove drupal/core-project-message"
    ]
    }
    },
    "require-dev": {
    "mglaman/phpstan-drupal": "^1.2",
    "palantirnet/drupal-rector": "^0.18.6",
    "phpstan/extension-installer": "^1.3",
    "phpstan/phpstan": "^1.12",
    "phpstan/phpstan-deprecation-rules": "^1.1"
    }
    }

  • 🇺🇸United States adrianm6254

    First of all, the last composer.json (#11) has a lot of conflicting code (changes that I did not suggest) for installing the fancytree library with composer.

    For my help you need to do is go back to what you posted in #9.

    Apply the suggestions I gave from #10

    I you still have a problem I will work with you from there (without all the other changes you added).

  • 🇨🇦Canada paintingguy

    Hi adrianm6254, I really appreciate your help here.

    My current composer now (thanks to you making me aware of my messed up composer.json code) has fixed issues that were all added after years updating past drupal version, not realizing how these were added. Things just seemed to work until I starting trying to make fancytree work. Never the less, there is no way to make fancytree work via your suggestions .

    This current composer.json includes everything that works with the exception of fancytree. If remove the repositories, my updates break. I wish I could just do as you suggest but won't work without breaking things.

    {
    "name": "drupal/legacy-project",
    "description": "Project template for Drupal 9 projects with composer following drupal/drupal layout",
    "type": "project",
    "license": "GPL-2.0-or-later",
    "homepage": " https://www.drupal.org/project/drupal ",
    "support": {
    "docs": " https://www.drupal.org/docs/user_guide/en/index.html ",
    "chat": " https://www.drupal.org/node/314178 "
    },
    "repositories": [
    {
    "asset-packagist": {
    "type": "composer",
    "url": "https://asset-packagist.org"
    },
    "composer-merge-plugin-composer2": {
    "type": "vcs",
    "url": "https://github.com/mcaskill/composer-merge-plugin"
    },
    "type": "package",
    "package": {
    "name": "jackmoore/colorbox",
    "version": "1.6.4",
    "type": "drupal-library",
    "dist": {
    "url": "https://github.com/jackmoore/colorbox/archive/1.6.4.zip",
    "type": "zip"
    }
    }
    },
    {
    "type": "package",
    "package": {
    "name": "enyo/dropzone",
    "version": "5.9.3",
    "type": "drupal-library",
    "dist": {
    "url": "https://github.com/dropzone/dropzone/releases/download/v5.9.3/dist.zip",
    "type": "zip"
    }
    }
    },
    {
    "type": "package",
    "package": {
    "name": "exif-js/exif-js",
    "version": "v2.3.0",
    "type": "drupal-library",
    "dist": {
    "type": "zip",
    "url": "https://github.com/exif-js/exif-js/archive/refs/tags/v2.3.0.zip"
    }
    }
    },
    {
    "type": "composer",
    "url": "https://packages.drupal.org/8"
    }
    ],
    "require": {
    "composer/composer": "^2.2",
    "composer/installers": "^2.2",
    "defuse/php-encryption": "^2.4",
    "drupal/adaptivetheme": "^6.0",
    "drupal/adsense": "^1.5",
    "drupal/anchor_link": "^3.0@alpha",
    "drupal/antibot": "^2.0",
    "drupal/asset_injector": "^2.19",
    "drupal/at_theme": "^2.0",
    "drupal/augmentor_openai_gpt3": "^1.0",
    "drupal/back_to_top": "^3.0",
    "drupal/backup_migrate": "^5.0",
    "drupal/bartik": "^1.0",
    "drupal/better_search": "^2.0",
    "drupal/better_social_sharing_buttons": "^4.0",
    "drupal/blog": "^3.1",
    "drupal/book": "^2.0@alpha",
    "drupal/bootstrap": "^5.0",
    "drupal/bootstrap5": "^4.0",
    "drupal/bootstrap_barrio": "^5.5",
    "drupal/bootstrap_business": "^1.0@beta",
    "drupal/bootstrap_layouts": "^5.3",
    "drupal/bootstrap_library": "^2.0",
    "drupal/breadcrumb_extra_field": "^3.0@alpha",
    "drupal/browser_back_button": "^2.0",
    "drupal/bulk_edit_terms": "^1.7",
    "drupal/bulma": "^1.0",
    "drupal/callus": "^2.3",
    "drupal/captcha": "^2.0",
    "drupal/ckeditor5_icons": "^1.0",
    "drupal/ckeditor5_inline_styles": "^1.0",
    "drupal/ckeditor5_plugin_pack": "^1.1",
    "drupal/ckeditor_font": "^2.0@beta",
    "drupal/classy": "^1.0",
    "drupal/codemirror_editor": "^2.0",
    "drupal/colorbox": "^2.1",
    "drupal/colorbox_field_formatter": "^2.1",
    "drupal/colorbox_inline": "^2.0",
    "drupal/colossal_menu": "^3.0",
    "drupal/comments_order": "^3.0",
    "drupal/components": "^3.0@beta",
    "drupal/composer_deploy": "^1.7",
    "drupal/computed_field": "^4.0@alpha",
    "drupal/config_default_image": "^2.0@beta",
    "drupal/contact_block": "^2.0",
    "drupal/core": "^10.4",
    "drupal/core-composer-scaffold": "10.4.1",
    "drupal/core-project-message": "10.4.1",
    "drupal/core-recommended": "10.4.1",
    "drupal/core-vendor-hardening": "^10.2",
    "drupal/cshs": "^4.0",
    "drupal/css_editor": "^2.0",
    "drupal/ctools": "^4.0",
    "drupal/custom_breadcrumbs": "^1.1",
    "drupal/default_content": "^2.0@alpha",
    "drupal/devel": "^5.0",
    "drupal/devel_entity_updates": "^4.1",
    "drupal/diff": "^2.0@beta",
    "drupal/dropzonejs": "^2.11",
    "drupal/ds": "^3.23",
    "drupal/easy_adsense": "^1.0@alpha",
    "drupal/easy_breadcrumb": "^2.0",
    "drupal/editor_advanced_image": "^3.0",
    "drupal/editor_advanced_link": "^2.2",
    "drupal/editor_file": "^2.0@RC",
    "drupal/embed": "^1.7",
    "drupal/entity": "^1.4",
    "drupal/entity_browser": "^2.10",
    "drupal/entity_clone": "^2.0@beta",
    "drupal/entity_embed": "^1.6",
    "drupal/entity_update": "^3.0",
    "drupal/entity_usage": "^2.0@beta",
    "drupal/exclude_node_title": "^1.4",
    "drupal/expand_collapse_formatter": "^2.0",
    "drupal/extlink": "^2.0@beta",
    "drupal/faqfield": "^8.0",
    "drupal/field_permissions": "^1.4",
    "drupal/file_delete": "^3.0",
    "drupal/file_entity": "^2.0@RC",
    "drupal/file_to_media": "^1.0",
    "drupal/fivestar": "^1.0@alpha",
    "drupal/flag": "^4.0@beta",
    "drupal/floating_block": "^2.0",
    "drupal/fontawesome": "^2.26",
    "drupal/fontyourface": "^4.0",
    "drupal/forum": "^1.0",
    "drupal/gin_toolbar": "^2.0",
    "drupal/glossify": "^3.0",
    "drupal/google_analytics": "^4.0",
    "drupal/google_tag": "^2.0",
    "drupal/googlereviews": "^1.1",
    "drupal/hierarchical_taxonomy_menu": "^2.0",
    "drupal/hierarchy_manager": "^3.3",
    "drupal/honeypot": "^2.1",
    "drupal/hreflang": "^1.12",
    "drupal/iek": "^1.3",
    "drupal/imageapi_optimize": "^4.1@beta",
    "drupal/imageapi_optimize_gd": "^2.0",
    "drupal/imageapi_optimize_webp": "^2.0",
    "drupal/imagefield_tokens": "^3.1",
    "drupal/imagick": "^1.11",
    "drupal/imce": "^3.0",
    "drupal/inline_entity_form": "^3.0@RC",
    "drupal/jquery_ui": "^1.6",
    "drupal/jquery_ui_accordion": "^2.0",
    "drupal/jquery_ui_draggable": "^2.1",
    "drupal/jquery_ui_effects": "^2.0",
    "drupal/jquery_ui_resizable": "^2.1",
    "drupal/jsonapi_extras": "^3.26",
    "drupal/layout_bg": "^1.4",
    "drupal/layout_builder_restrictions": "^3.0",
    "drupal/libraries": "^4.0",
    "drupal/linkit": "^7.0@alpha",
    "drupal/machine_name_widget": "^3.1",
    "drupal/manage_display": "^3.0",
    "drupal/media_bulk_upload": "^3.0",
    "drupal/media_directories": "^2.1@beta",
    "drupal/media_entity_browser": "^3.0",
    "drupal/media_gallery": "^3.0",
    "drupal/media_library_edit": "^3.0",
    "drupal/media_library_form_element": "^2.0",
    "drupal/menu_breadcrumb": "^2.0@alpha",
    "drupal/menu_delete": "^2.3",
    "drupal/metatag": "^2.0",
    "drupal/minifyhtml": "^2.0",
    "drupal/minifyjs": "^3.0",
    "drupal/modal_page": "^6.0@beta",
    "drupal/notify_widget": "^1.0",
    "drupal/pager_metadata": "^1.0",
    "drupal/paragraphs": "^1.17",
    "drupal/pathauto": "^1.13",
    "drupal/pathologic": "^2.0@alpha",
    "drupal/permissionspolicy": "^1.2",
    "drupal/photoswipe": "^5.0",
    "drupal/quickedit": "^1.0",
    "drupal/quote": "^4.0",
    "drupal/redirect": "^1.9",
    "drupal/remove_http_headers": "^2.1",
    "drupal/responsive_image_preload": "^2.0",
    "drupal/restui": "^1.22",
    "drupal/rip": "^1.1",
    "drupal/scanner": "^2.0@beta",
    "drupal/schema_metatag": "^3.0",
    "drupal/scn": "^2.0",
    "drupal/search_exclude": "^3.0@beta",
    "drupal/seckit": "^2.0",
    "drupal/select2": "^1.15",
    "drupal/similarterms": "^1.8",
    "drupal/simple_sitemap": "^4.1",
    "drupal/snippet_manager": "^3.0",
    "drupal/starrating": "^4.1@alpha",
    "drupal/statistics": "^1.0",
    "drupal/superfish": "^1.7",
    "drupal/tagclouds": "^2.0",
    "drupal/taxonomy_bulk_actions": "^1.0",
    "drupal/taxonomy_import": "^2.0",
    "drupal/taxonomy_manager": "^2.0",
    "drupal/taxonomy_menu_ui": "^3.0",
    "drupal/taxonomy_path_breadcrumb": "^1.0",
    "drupal/taxonomy_unique": "^2.5",
    "drupal/term_merge": "^2.0@beta",
    "drupal/term_reference_change": "^2.0@beta",
    "drupal/term_reference_fancytree": "^3.0",
    "drupal/term_reference_tree": "^2.0",
    "drupal/term_sidebar": "^1.0",
    "drupal/theme_per_user": "^1.0",
    "drupal/theme_switcher": "^2.0",
    "drupal/token": "^1.13",
    "drupal/token_filter": "^2.1",
    "drupal/token_or": "^2.2",
    "drupal/unlimited_number": "^2.0",
    "drupal/upgrade_status": "^4.3",
    "drupal/user_bundle": "^1.2",
    "drupal/video_embed_field": "^3.0@alpha",
    "drupal/views_accordion": "^2.0",
    "drupal/views_bootstrap": "^5.5@beta",
    "drupal/views_bulk_edit": "^3.0",
    "drupal/views_bulk_operations": "^4.3@beta",
    "drupal/votingapi": "^3.0@beta",
    "drupal/votingapi_reaction": "^1.7",
    "drupal/webp": "^1.0@RC",
    "drupal/yoast_seo": "^2.0@alpha",
    "drush/drush": "^12.5",
    "enyo/dropzone": "^5.9",
    "exif-js/exif-js": "^2.3",
    "jackmoore/colorbox": "^1.6",
    "jangregor/phpstan-prophecy": "^1.0",
    "laminas/laminas-httphandlerrunner": "^2.10",
    "mck89/peast": "^1.15",
    "oomphinc/composer-installers-extender": "^2.0",
    "phpstan/phpstan-phpunit": "^1.3",
    "roave/better-reflection": "^6.19",
    "seld/jsonlint": "^1.11",
    "symfony/error-handler": "^6.4",
    "twbs/bootstrap": "5.3.3",
    "wikimedia/composer-merge-plugin": "^2.1"
    },
    "conflict": {
    "drupal/drupal": "*"
    },
    "minimum-stability": "stable",
    "prefer-stable": true,
    "config": {
    "allow-plugins": {
    "composer/installers": true,
    "dealerdirect/phpcodesniffer-composer-installer": true,
    "drupal/core-composer-scaffold": true,
    "drupal/core-project-message": true,
    "drupal/core-vendor-hardening": true,
    "oomphinc/composer-installers-extender": true,
    "php-http/discovery": true,
    "phpstan/extension-installer": true,
    "wikimedia/composer-merge-plugin": true
    },
    "sort-packages": true
    },
    "extra": {
    "merge-plugin": {
    "include": [
    "web/modules/contrib/webform/composer.libraries.json",
    "web/modules/contrib/taxonomy_manager/composer.libraries.json",
    "web/modules/custom/*/composer.json",
    "web/profiles/custom/*/composer.json",
    "web/themes/custom/*/composer.json"
    ]
    },
    "drupal-scaffold": {
    "locations": {
    "web-root": "./"
    }
    },
    "installer-types": [
    "npm-asset",
    "bower-asset"
    ],
    "installer-paths": {
    "web/libraries/{$name}": [
    "type:drupal-library",
    "type:npm-asset",
    "type:bower-asset"
    ],
    "core": [
    "type:drupal-core"
    ],
    "libraries/{$name}": [
    "type:drupal-library"
    ],
    "modules/contrib/{$name}": [
    "type:drupal-module"
    ],
    "profiles/contrib/{$name}": [
    "type:drupal-profile"
    ],
    "themes/contrib/{$name}": [
    "type:drupal-theme"
    ],
    "drush/Commands/contrib/{$name}": [
    "type:drupal-drush"
    ],
    "modules/custom/{$name}": [
    "type:drupal-custom-module"
    ],
    "profiles/custom/{$name}": [
    "type:drupal-custom-profile"
    ],
    "themes/custom/{$name}": [
    "type:drupal-custom-theme"
    ],
    "merge-extra": true,
    "merge-extra-deep": true,
    "merge-scripts": true
    },
    "drupal-core-project-message": {
    "include-keys": [
    "homepage",
    "support"
    ],
    "post-create-project-cmd-message": [
    " ",
    " Congratulations, you’ve installed the Drupal codebase ",
    " from the drupal/legacy-project template! ",
    " ",
    "",
    "Next steps:",
    " * Install the site: https://www.drupal.org/docs/installing-drupal ",
    " * Read the user guide: https://www.drupal.org/docs/user_guide/en/index.html ",
    " * Get support: https://www.drupal.org/support ",
    " * Get involved with the Drupal community:",
    " https://www.drupal.org/getting-involved ",
    " * Remove the plugin that prints this message:",
    " composer remove drupal/core-project-message"
    ]
    }
    },
    "require-dev": {
    "mglaman/phpstan-drupal": "^1.2",
    "palantirnet/drupal-rector": "^0.18.6",
    "phpstan/extension-installer": "^1.3",
    "phpstan/phpstan": "^1.12",
    "phpstan/phpstan-deprecation-rules": "^1.1"
    }
    }

  • 🇺🇸United States adrianm6254

    Question? Where is your codebase located?

    Is it in the root directory or is it in the web directory?

    Make sure you are pointing composer to your contrib modules are located.

  • 🇺🇸United States adrianm6254

    Then make sure you are specifying your root directory under your merge-plugin & installer-path statements.

  • 🇮🇳India debrup

    I have checked the MR. The fix works and the warning is no longer showing.
    Drupal version used: Drupal 11.0.0
    Checked Fancytree library by using both CDN and composer install.

    Moving the issue to RTBC.

  • Pipeline finished with Skipped
    9 days ago
    #415185
  • First commit to issue fork.
  • 🇦🇺Australia VladimirAus Brisbane, Australia

    Thanks, all. Committed. 🥂

  • 🇮🇹Italy giordy

    Ok. 2.0.x-dev fixes the problem.

Production build 0.71.5 2024