Skip to content

[stimulus-bundle] Symfony 6.4 and Assetmapper (importmap:require @hotwired/stimulus fails) #1191

@tacman

Description

@tacman

is there a way to test this with Symfony 6.4 and AssetMapper?

symfony new demo-64 --webapp --version=next && cd demo-64 
composer config extra.symfony.allow-contrib true
export SYMFONY_ENDPOINT=https://raw.githubusercontent.com/symfony/recipes/flex/pull-1245/index.json
composer req symfony/asset-mapper:^6.4
composer req symfony/stimulus-bundle:2.x-dev

It's failing on the all-important stimulus package:

bin/console importmap:require @hotwired/stimulus

In JsDelivrEsmResolver.php line 192:
                                                                                                                                                                             
  Error 400 downloading packages from jsDelivr for "@hotwired/stimulus". Check your package names. Response: Invalid URL. The URL structure is /npm/package@version/file.js  
                                                                                                                                                                             

In CommonResponseTrait.php line 173:
                                                                        
  HTTP/2 400  returned for "https://cdn.jsdelivr.net/npm/@3.2.2/+esm".  
                                                                        

importmap:require [--entrypoint] [--path PATH] [--] <packages>...

Does the recipe need to be changed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy