tauri-apps / tauri-apps/tauri

open a new window in project, click the `esc` before page rendered,then the window can't load anymore[bug]

Open
#5,877 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: needs triage type: bug
Dominant language
Rust
Stars
111k
Forks
4k
Avg merge
2d 7h
Merged PRs (30d)
45

Description

Describe the bug

in release mode, the tauri window is empty white. and console log can see

859.bb7e252ceb1980f60d32.min.js:257 
        
       ChunkLoadError: Loading chunk 304 failed.
(error: https://tauri.localhost/bundles/304.701caa4a04040202d99c.min.js)
    at z.f.j (main.a04e3fa6c3590586362d.min.js:4:984)
    at main.a04e3fa6c3590586362d.min.js:3:13914
    at Array.reduce (<anonymous>)
    at z.e (main.a04e3fa6c3590586362d.min.js:3:13893)
    at main.a04e3fa6c3590586362d.min.js:2:38328
    at U (859.bb7e252ceb1980f60d32.min.js:256:8175)
    at $d (859.bb7e252ceb1980f60d32.min.js:259:9062)
    at ph (859.bb7e252ceb1980f60d32.min.js:259:894)
    at Uy (859.bb7e252ceb1980f60d32.min.js:259:819)
    at vh (859.bb7e252ceb1980f60d32.min.js:257:87950)

in debug mode:
the page is red and error blew.

微信图片_20221220120307
Reproduction

open a new window in project, click the esc before page rendered

Expected behavior

No response

Platform and versions

› OS: Windows 10.0.19045 X64
› Webview2: 108.0.1462.54
› MSVC:
- Visual Studio ���ɹ��� 2022
› Node.js: 18.12.1
› npm: 8.19.2
› pnpm: Not installed!
› yarn: 1.22.19
› rustup: 1.25.1
› rustc: 1.65.0
› cargo: 1.65.0
› Rust toolchain: stable-x86_64-pc-windows-msvc

Packages
› @tauri-apps/cli [NPM]: 1.2.1
› @tauri-apps/api [NPM]: 1.2.0
› tauri [RUST]: 1.2.1,
› tauri-build [RUST]: 1.2.1,
› tao [RUST]: 0.15.6,
› wry [RUST]: 0.22.6,

App
› build-type: bundle
› CSP: unset
› distDir: ../dist
› devPath: http://localhost:8080/
› framework: React
› bundler: Webpack

App directory structure
├─ .git
├─ .husky
├─ .idea
├─ .vscode
├─ dist
├─ doc
├─ node_modules
├─ src
├─ src-tauri
├─ target
└─ webpack

Stack trace

No response

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure on Windows by opening a new project window and pressing Esc before the page renders, in both release and debug modes. Start by tracing the window handling in src-tauri and the generated chunks or configuration under webpack; use the reported ChunkLoadError as the failure signal. Done means the window loads normally after this sequence.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, rust, webpack
Domain
desktop, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.