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

[bug] CSS randomly applied using Sveltekit + Tauri (v1 and v2) #10173

Open
CraneCristal opened this issue Jul 2, 2024 · 1 comment
Open

[bug] CSS randomly applied using Sveltekit + Tauri (v1 and v2) #10173

CraneCristal opened this issue Jul 2, 2024 · 1 comment
Labels
platform: Linux status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@CraneCristal
Copy link

CraneCristal commented Jul 2, 2024

Describe the bug

When launching tauri in dev mode, some CSS is not applied, and it changes from one launch to another. It seems like the scoped CSS is randomly applied or not.

  • launch 1 (css randomly applied)
    Screenshot_20240702_110829

  • launch 2 (no code change but everything seem correct this time)
    Screenshot_20240702_104936

I cannot reproduce the same issue in browser and the only workaround I find for now is to reload all with ViteJs.
The issue does not happen in build.

Reproduction

No response

Expected behavior

No response

Full tauri info output

/usr/bin/npm run tauri dev

> [email protected] tauri
> tauri dev

    Running BeforeDevCommand (`npm run dev`)

> [email protected] dev
> vite dev

Using existing cloned repo
ℹ [paraglide] Compiling Messages into ./src/lib/paraglide                                                                                                                                                                                          

  VITE v5.3.1  ready in 1070 ms

  ➜  Local:   http://localhost:5173/
  ➜  Network: use --host to expose
    Info Watching /home/nathan/Documents/Projects/fusion-launcher/src-tauri for changes...
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.13s
alternate canonicalPath:  / currentLang:  en localized:  /

Stack trace

No response

Additional context

Tested with webkit2gtk-4.1 on Linux

@CraneCristal CraneCristal added status: needs triage This issue needs to triage, applied to new issues type: bug labels Jul 2, 2024
@FabianLars
Copy link
Member

I cannot reproduce the same issue in browser and the only workaround I find for now is to reload all with ViteJs.

Can you test it in epiphany (also known as Gnome Web) too? It's a browser using webkitgtk like tauri. This way we can check whether it's an upstream issue or our fault.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: Linux status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

2 participants