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

chore: update vite, vitest and @sveltejs/vite-plugin-svelte #1287

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

benoitf
Copy link
Contributor

@benoitf benoitf commented Feb 6, 2025

What does this PR do?

update vite, vitest and @sveltejs/vite-plugin-svelte
try to update as vitest 3 has default with vite 6, and @sveltejs/vite-plugin-svelte requires new vite 6
so need to update 3 of them at once

Screenshot / video of UI

What issues does this PR fix or reference?

How to test this PR?

please test carefully

@benoitf benoitf marked this pull request as ready for review February 6, 2025 19:18
@benoitf benoitf requested a review from a team as a code owner February 6, 2025 19:18
@benoitf benoitf requested review from dgolovin, feloy, axel7083, cdrage and deboer-tim and removed request for a team February 6, 2025 19:18
Copy link
Contributor

@deboer-tim deboer-tim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The build looked fine, but when I tried to run this branch the extension doesn't load at all. This is what's in the extension console log:

Uncaught Svelte error: lifecycle_function_unavailable
`mount(...)` is not available on the server
https://svelte.dev/e/lifecycle_function_unavailable
    at hh (http://f5e6f914-4457-48f4-b580-11e4f97cd4f0.webview.localhost:44000/media/index-BWVFyiS1.js:23:11416)
    at uh (http://f5e6f914-4457-48f4-b580-11e4f97cd4f0.webview.localhost:44000/media/index-BWVFyiS1.js:25:147)
    at http://f5e6f914-4457-48f4-b580-11e4f97cd4f0.webview.localhost:44000/media/index-BWVFyiS1.js:91:894
    at http://f5e6f914-4457-48f4-b580-11e4f97cd4f0.webview.localhost:44000/media/index-BWVFyiS1.js:1:173
    at http://f5e6f914-4457-48f4-b580-11e4f97cd4f0.webview.localhost:44000/media/index-BWVFyiS1.js:91:916

@benoitf
Copy link
Contributor Author

benoitf commented Feb 6, 2025

what the e2e tests do then ?

@benoitf
Copy link
Contributor Author

benoitf commented Feb 6, 2025

@deboer-tim I downgraded vite, on my end it's ok

fixes dependabot issues
Signed-off-by: Florent Benoit <[email protected]>
@benoitf
Copy link
Contributor Author

benoitf commented Feb 6, 2025

rebased to fix conflicts

Copy link
Contributor

@deboer-tim deboer-tim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, much better now.

@deboer-tim deboer-tim merged commit 3b4f7ba into podman-desktop:main Feb 6, 2025
6 checks passed
@cdrage
Copy link
Contributor

cdrage commented Feb 10, 2025

FYI upgrading to vite 6 MAYYY (haven't 100% confirmed yet) have messed up how we show svelte code, that's why I had to revert it before: #1116

See new issues:
#1304
#1303
#1302

Pointing towards our svelte code not being up-to-date, so most likely fix it svelte side rather than reverting back to 5 again.

@benoitf
Copy link
Contributor Author

benoitf commented Feb 10, 2025

I think reactivity should not be related to the updated components directly

maybe there is a problem in the component, just that it's being highlighted

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

Successfully merging this pull request may close these issues.

3 participants