tauri-apps / tauri

Build smaller, faster, and more secure desktop and mobile applications with a web frontend.
https://tauri.app
Apache License 2.0
82.96k stars 2.49k forks source link

[bug] (Maybe Not) Tauri cannot handle resources imported with <link>. #11276

Open origin-coding opened 1 day ago

origin-coding commented 1 day ago

Describe the bug

My Tauri app only displays blank screen after building for production, and some requests returns "No data found for resource with given identifier": image image

Reproduction

I'm using Nuxt + Vite as my frontend framework, and I found that the screen is blank after building for production. Then I turned on "devtools" feature in my Cargo.toml, and tried to debug in production. I found that some files cannot be correctly loaded, like the image below: image

And I found all files requested by index.html and with tag not correctly returned, the status code was 200 OK, but no data was returned. image So I tried to change one tag with Githubissues.

  • Githubissues is a development platform for aggregating issues.