tauri-apps / tauri

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

[bug] In dev,node_modules 500 #11747

Open shiyanaaa opened 1 day ago

shiyanaaa commented 1 day ago

Describe the bug

image 77202562b27ddf5c344b3240e89284e0 In Windows, everything is normal. When running on Android, the development environment dependency reports a 500 error that cannot be loaded, but it can be accessed via localhost:1420, and it can be accessed after packaging into an APK

Reproduction

No response

Expected behavior

No response

Full tauri info output

[✔] Environment
- OS: Windows 10.0.22631 x86_64 (X64)
✔ WebView2: 127.0.2651.105
✔ MSVC: Visual Studio Community 2022
✔ rustc: 1.82.0 (f6e511eec 2024-10-15)
✔ cargo: 1.82.0 (8f40fc59f 2024-08-21)
✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
- node: 22.2.0
- npm: 10.7.0
- bun: 1.1.30

[-] Packages
- tauri 🦀: 2.1.1
- tauri-build 🦀: 2.0.3
- wry 🦀: 0.47.0
- tao 🦀: 0.30.8
- @tauri-apps/api : 2.1.1
- @tauri-apps/cli : 2.1.0

[-] Plugins
- tauri-plugin-http 🦀: 2.0.3
- @tauri-apps/plugin-http : 2.0.1
- tauri-plugin-fs 🦀: 2.0.3
- @tauri-apps/plugin-fs : not installed!
- tauri-plugin-os 🦀: 2.0.1
- @tauri-apps/plugin-os : 2.0.0
- tauri-plugin-shell 🦀: 2.0.2
- @tauri-apps/plugin-shell : 2.0.1

[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../dist
- devUrl: http://localhost:1420/
- framework: Vue.js
- bundler: Vite

Stack trace

No response

Additional context

No response

FabianLars commented 1 day ago

Please include the output of the tauri info command as requested by the issue template.

Also, what kind of project is this? Based on create-tauri-app?

shiyanaaa commented 1 day ago

Please include the output of the tauri info command as requested by the issue template.

Also, what kind of project is this? Based on create-tauri-app?

npm create tauri-app@latest [✔] Environment

[-] Packages

[-] Plugins

[-] App

shiyanaaa commented 3 hours ago

So, no one is going to deal with it