Skip to content
This repository was archived by the owner on Dec 3, 2023. It is now read-only.
This repository was archived by the owner on Dec 3, 2023. It is now read-only.

[Static Dumper] encore_entry_link_tags are not printed on subsequent routes #3931

@nlemoine

Description

@nlemoine

Hi!

I'm facing an issue with the usage of encore_entry_link_tags or encore_entry_script_tags. I have a quite simple Symfony project with two routes.

The first dumped route is ok, all the assets are printed. The issue comes on the second route (and maybe all subsequent routes), none of the encore_entry_link_tags or encore_entry_script_tags assets are printed leaving the page unstyled.

I don't know this bundle well enough to debug this but found that commenting this line solves the issue:

https://github.com/symfony/webpack-encore-bundle/blob/1729c314574f32e49f9660a0cee870f7e603864f/src/Asset/EntrypointLookup.php#L87

Any idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions