Composer does not install library

Created on 10 February 2023, over 1 year ago
Updated 15 February 2023, over 1 year ago

Installing the module with composer does not install the libraries that is required by the module to work.

Log error;

Warning: file_get_contents(libraries/intl-tel-input/build/js/intlTelInput.js): Failed to open stream: No such file or directory in _locale_parse_js_file() (line 1116 of /home/keratai2/public_html/xxxxxx.com/web/core/modules/locale/locale.module)
#0 /home/keratai2/public_html/xxxxxx.com/web/core/includes/bootstrap.inc(158): _drupal_error_handler_real()
#1 [internal function]: _drupal_error_handler()
#2 /home/keratai2/public_html/xxxxxx.com/web/core/modules/locale/locale.module(1116): file_get_contents()
#3 /home/keratai2/public_html/xxxxxx.com/web/core/modules/locale/locale.module(550): _locale_parse_js_file()
#4 /home/keratai2/public_html/xxxxxx.com/web/core/modules/locale/locale.module(510): locale_js_translate()
#5 /home/keratai2/public_html/xxxxxx.com/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(545): locale_js_alter()
#6 /home/keratai2/public_html/xxxxxx.com/web/core/lib/Drupal/Core/Asset/AssetResolver.php(261): Drupal\Core\Extension\ModuleHandler->alter()
#7 /home/keratai2/public_html/xxxxxx.com/web/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php(319): Drupal\Core\Asset\AssetResolver->getJsAssets()
#8 /home/keratai2/public_html/xxxxxx.com/web/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php(158): Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAssetLibraries()
#9 /home/keratai2/public_html/xxxxxx.com/web/core/lib/Drupal/Core/EventSubscriber/HtmlResponseSubscriber.php(45): Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAttachments()
#10 [internal function]: Drupal\Core\EventSubscriber\HtmlResponseSubscriber->onRespond()
#11 /home/keratai2/public_html/xxxxxx.com/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func()
#12 /home/keratai2/public_html/xxxxxx.com/vendor/symfony/http-kernel/HttpKernel.php(196): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
#13 /home/keratai2/public_html/xxxxxx.com/vendor/symfony/http-kernel/HttpKernel.php(184): Symfony\Component\HttpKernel\HttpKernel->filterResponse()
#14 /home/keratai2/public_html/xxxxxx.com/vendor/symfony/http-kernel/HttpKernel.php(74): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#15 /home/keratai2/public_html/xxxxxx.com/web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#16 /home/keratai2/public_html/xxxxxx.com/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#17 /home/keratai2/public_html/xxxxxx.com/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#18 /home/keratai2/public_html/xxxxxx.com/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#19 /home/keratai2/public_html/xxxxxx.com/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#20 /home/keratai2/public_html/xxxxxx.com/web/core/lib/Drupal/Core/DrupalKernel.php(681): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#21 /home/keratai2/public_html/xxxxxx.com/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#22 {main}

Edit: Drupal 10.0.3 / PHP 8.1

πŸ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡ΉπŸ‡·Turkey RgnYLDZ

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

Comments & Activities

  • Issue created by @RgnYLDZ
  • πŸ‡ΉπŸ‡·Turkey RgnYLDZ

    Followed instructions given in https://www.drupal.org/docs/8/modules/telephone-international-widget/ins... β†’

    But still get composer errors;

    Your requirements could not be resolved to an installable set of packages.
    
      Problem 1
        - Root composer.json requires intl-tel-input/intl-tel-input 16.0.0 -> satisfiable by intl-tel-input/intl-tel-input[16.0.0].
        - intl-tel-input/intl-tel-input 16.0.0 requires composer/installers ~1.0 -> found composer/installers[v1.0.0, ..., v1.12.0] but it conflicts with your root composer.json require (^2.0).
    
    Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
    You can also try re-running composer require with an explicit version constraint, e.g. "composer require drupal/telephone_international_widget:*" to figure out if any version is installable, or "composer require drupal/telephone_international_widget:^2.1" if you know which you need.
    
    Installation failed, reverting ./composer.json and ./composer.lock to their original content.
  • First commit to issue fork.
  • @guedressel opened merge request.
  • Status changed to Needs review over 1 year ago
  • πŸ‡¦πŸ‡ΉAustria guedressel

    Updating the required version of composer/installers package resolves this issue.

Production build 0.69.0 2024