-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[AssetMapper] Give better error message if importmap_polyfill
is set to true
#53725
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
There are some packages resolved on jsdelivr / npm with the name "1" or "2" ... So nothing to do on this side... Concenring the importmap_polyfill, it relates to your other issue i guess ? |
My scenario was: I copied the entire I thought this might be a trap into which other lazy developers could run too. So if there's an easy fix, you could maybe forbid |
I agree this could be confusing. We could make |
To treat true / null / "not set" as default value, while still displaying the default in "sf debug:config framework asset_mapper" .. i will need a hand.. i can't find a way to do this without repeating the value in the config. (poke @weaverryan ? 👼 ) If we want to throw an error, it's easier. |
IMO: Then just throw the error! Anything that prevents people from actually doing |
I wont preventing anyone from running What i can do is throw an error if someone set "true" as value for importmap_polyfill. Is that ok for you ? |
Sure! |
Symfony version(s) affected
7.0.2
Description
When setting the
importmap_polyfill
setting totrue
(instead of an entry point's name), the resulting error message reads:Now, when actually doing
php bin/console importmap:require 1
, there is indeed something added called1
.It would be nice if the error message could be improved for this case.
How to reproduce
See above.
Possible Solution
If you think that it's not worth it, just close here :-)
The
importmap_polyfill
setting is properly documented at https://symfony.com/doc/current/frontend/asset_mapper.html#framework-asset-mapper-importmap-polyfillAdditional Context
No response
The text was updated successfully, but these errors were encountered: