Closed yancy-hong closed 1 month ago
I have also tried to use Cargo to initialize the project:
PS F:\project\rust-projects> cargo install create-tauri-app --locked
Updating crates.io index
Ignored package `create-tauri-app v4.5.1` is already installed, use --force to override
PS F:\project\rust-projects> cargo create-tauri-app
✔ Project name · test
✔ Identifier · com.test.app
✔ Choose which language to use for your frontend · TypeScript / JavaScript - (pnpm, yarn, npm, bun)
✔ Choose your package manager · npm
✔ Choose your UI template · Vanilla
✔ Choose your UI flavor · JavaScript
Template created! To get started run:
cd test
npm install
npm run tauri android init
For Desktop development, run:
npm run tauri dev
For Android development, run:
npm run tauri android dev
PS F:\project\rust-projects> cd .\test\
PS F:\project\rust-projects\test> cargo tauri dev
Running BeforeDevCommand (`npm run dev`)
> test@0.1.0 dev
> vite
VITE v5.4.8 ready in 208 ms
➜ Local: http://localhost:1420/
Info Watching F:\project\rust-projects\test\src-tauri for changes...
Compiling test v0.1.0 (F:\project\rust-projects\test\src-tauri)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.06s
Similarly, the project still flashes back when started.
So I no longer insist on using the cargo tauri dev
or npm run tauri dev
command to start the project. After executing the command:
cargo install create-tauri-app --locked
cargo create-tauri-app
I tried to use the IDE RustRover
to start the project. The following error is reported in the IDE's console:
cargo.exe run --color=always --package tauri-test --bin tauri-test
Finished dev profile [unoptimized + debuginfo] target(s) in 0.23s
Running target\debug\tauri-test.exe
error: process didn't exit successfully: target\debug\tauri-test.exe (exit code: 0x80000003)
Is there something I did wrong?
Can you please also include the output of cargo tauri info
as required by the issue template? Thanks.
Sorry.
The issue template content has been updated at the place of 'Full tauri info
output' above.
At the same time, I have also added a failed GIF image at the place of 'Reproduction'.
Hmm, looks like it's failing to start the webview. Can you try Windows Settings -> Apps -> Microsoft Edge WebView2 -> Change -> Repair
?
Success! Tauri is working!
I found that my previous WebView2 version was 121.0.2277.83
. Now, after updating it to 129.0.2792.89
, Tauri has been successfully started.
Thank you for your help.
Describe the bug
Hi, I am a newbie to Tauri. According to the quick-start tutorial on the Tauri official website, I created a project. However, the window flashed back when it was started.
Reproduction
Partial logs:
GIF effect picture:
Expected behavior
The window has been successfully launched.
Full
tauri info
outputStack trace
No response
Additional context
OS: Windows11