symfonysymfony-assetmapper

How to use imported libraries with symfony's asset mapper ? (sf 7.0.4)


I wanted to try symfony's brand new assetmapper on my latest project, without external imports, it works just fine, but I cant yet get how to make it work when it comes to imported libraries...

I used symfony doc command bin/console importmap:require ... to import the libraries

enter image description here

If I alias the imports it seems they cannot be found...

enter image description here

And if I dont alias the imports, the link is not broken anymore but no way to use the libraries...

enter image description here

Thank you for your future help!


Solution

  • Actually, although the linter says otherwise, it works when the import is aliased, just be careful to import the css that goes with the import or visually you might not see any differences...