Closed
Description
Description
I'm trying to install what appears to be a normal package from jsdeliver, it won't install but I have no idea why.
bin/console importmap:require @tabler/core
https://www.jsdelivr.com/package/npm/@tabler/core
On a related note, I think importmap:require needs the option to define an endpoint, so that esms can be served outside of jsdeliver.
Example
symfony new tabler --webapp --version=next && cd tabler
composer config minimum-stability dev
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
bin/console importmap:require @tabler/core
I image it has something to do with entrypoints and the package not being configured correctly, but since it appears to work with yarn, package developers may need more guidance is something isn't correct.
yarn add @tabler/core
yarn add v1.22.19
warning package.json: No license field
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
warning No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
warning No license field
success Saved 4 new dependencies.
info Direct dependencies
└─ @tabler/core@1.0.0-beta20
info All dependencies
├─ @popperjs/core@2.11.8
├─ @tabler/core@1.0.0-beta20
├─ @tabler/icons@2.39.0
└─ bootstrap@5.3.1
Done in 10.03s.
FWIW, @tabler/icons work. Is it because core is in beta?
bin/console importmap:require @tabler/icons
[OK] Package "@tabler/icons" added to importmap.php.
Use the new package normally by importing "@tabler/icons".