Skip to content

[Autocomplete] - Asset mapper installs wrong css file #2901

Closed
@leevigraham

Description

@leevigraham

Following the install instructions on a new project I get the following error:

An exception has been thrown during the rendering of a template ("The autoimport "tom-select/dist/css/tom-select.default.css" could not be found in importmap.php. Try running "php bin/console importmap:require tom-select/dist/css/tom-select.default.css".") in base.html.twig at line 12.

I believe this is because my install of TomSelect is version 2.4.3:

Image

While the current version of Autocomplete expects 2.2.2

https://github.com/symfony/ux/blob/2.x/src/Autocomplete/assets/package.json#L40

Looking at the difference between jsdeliver package.json for 2.2.2 and 2.4.3 it seems the exported files have changed.

2.2.2;

Image

2.4.3:

Image

It seems 2.4.1 introduced the style property in the package.json: https://www.jsdelivr.com/documentation#id-configuring-a-default-file-in-packagejson

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions