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
[AssetMapper] JavaScriptImportPathCompiler::compile(): returns null in some cases #54096
Comments
I can't tell if it's related to the underlying datatables.net libraries being updated, I've opened an issue there as well: https://datatables.net/forums/discussion/78313/2-0-error-with-importmaps#latest You'll see that error with the importmap:update command, it fails right away. |
It appears that a file in importmap is not longer available. From the library author: datatables.net-dt/css/jquery.dataTables.min.css This part at least is wrong (it resolves to a 404 later in the message that you quote. The correct file is now named datatables.net-dt/css/dataTables.dataTables.min.css. Same file, different name. |
Since upgrading to Symfony 7.0.4, our dev site no longer loads css and js If I try to put the js path present in the dev HTML, the error is as follows Symfony\Component\AssetMapper\Compiler\JavaScriptImportPathCompiler::compile(): Return value must be of type string, null returned in vendor/symfony/asset-mapper/Compiler/JavaScriptImportPathCompiler.php (line 119)
|
Possible duplicate of #54078 |
Closed in favor of #54078 |
Symfony version(s) affected
7.0.4
Description
Something changed between 6.4.3 and 6.4.4 (and 7.0.3 and 7.0.4).
In the example below, assetmapper is locked to 7.0.3, but updating causes the problem.
How to reproduce
All is well. Update to
composer require symfony/asset-mapper:^7.0.4 bin/console importmap:update # failure! symfony open:local bin/console importmap:install bin/console importmap:update symfony open:local
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: