Skip to content
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

Profiler error #40

Closed
D3strukt0r opened this issue Aug 26, 2024 · 5 comments
Closed

Profiler error #40

D3strukt0r opened this issue Aug 26, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@D3strukt0r
Copy link

vite-plugin-symfony version

7.0.3

vite-bundle version

7.0.3

your OS, node version, Symfony version, PHP version

Debian Docker Container, Node 18.20.4, Symfony 6.4.10, PHP 8.3.10

Description

I just tried to upgrade from 6.5.0 to 7.0.3 without changing any other config, and now the profiler bar won't load.

image

When I check the URL where the 500 happened (https://project.test/_wdt/101c50), I get the error "An exception has been thrown during the rendering of a template ("Unable to generate a URL for the named route "_profiler_vite" as such route does not exist.")."

image

The profiler URL still works though (https://project.test/_profiler/a9a6f9?panel=pentatrion_vite.vite_collector&type=request)

image

How to reproduce

Dunno, I just updated. Maybe because we are still using Symfony 6.4 for this project?

Possible Solution

No response

@D3strukt0r D3strukt0r added the bug Something isn't working label Aug 26, 2024
@lhapaipai
Copy link
Owner

Hi @D3strukt0r,
This is a major version change, this means there may be changes on your part to make

check the migration v7 guide. you have to update the recipe and make updates manually.

@D3strukt0r
Copy link
Author

ah thanks, sorry didn't see that, i'll close if it worked

@D3strukt0r
Copy link
Author

Ok worked, thanks :)

but shouldn't that change for the routes/pentatrion_vite.yaml be in the recipes? @lhapaipai

@lhapaipai
Copy link
Owner

the update is in the recipe but indeed. you are in a case where it did not update you.

check the pr : symfony/recipes-contrib#1652

I had created a temporary version 6.5 just long enough for the pr of the symfony recipe to be accepted so that the recipe would already be merged on the day of v7 (that was the original intention). But as a result, it took me longer to release v7, people migrated to v6.5 and although the config/routes/pentatrion_vite.yaml file changed between v6.5 and v7, the recipe does not apply a second time. Sorry, I will know for next time

@jeremyVignelles
Copy link

Thanks for the thread, I faced the same issue today.

Can this issue be pinned for a while so that people like me migrating and wondering could find this more easily ? (I know it's in the migration docs, but it can sometimes be easier to find on the issues page).

@lhapaipai lhapaipai pinned this issue Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants