Skip to content

[AssetMapper] Unable to find asset from ApiPlatform bundle #60684

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

Open
egiraud-lwb opened this issue Jun 4, 2025 · 1 comment
Open

[AssetMapper] Unable to find asset from ApiPlatform bundle #60684

egiraud-lwb opened this issue Jun 4, 2025 · 1 comment

Comments

@egiraud-lwb
Copy link

egiraud-lwb commented Jun 4, 2025

Symfony version(s) affected

7.3.0

Description

I am running into an error each time i create a new Symfony 7.3 project with AssetMapper and Api Platform. When running the asset-map:compile command

It seems that the asset mapper is trying to import a file that is coming from a commented part of the graphiql.min.js file that is not supposed to be imported.

I might be doing something wrong but i have never encountered this issue before version 7.3 of Symfony.

How to reproduce

Create a new project

symfony new my_project_directory --version="7.3.x-dev" --webapp

Install Api Platform

composer require api

Compile your assets

php bin/console asset-map:compile

Possible Solution

For now i just delete the comment related to the issue directly inside the minified javascript code but there might be an underlying issue on how the comment is handled.

Additional Context

In JavaScriptImportPathCompiler.php line 144:

Unable to find asset "./path/to/domAnimations" imported from "vendor\api-platform\core\src\Symfony\Bundle\Resources\public\graphiql\graphiql.min.js".

@egiraud-lwb
Copy link
Author

The part of the code that is causing the issue is located on line 37795 in the file graphiql.min.js

* <LazyMotion features={() => import('./path/to/domAnimations')}>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy