Skip to content

[Bug]: Runtime error occurs depending on the lazy import order. #5870

@yyy672532

Description

@yyy672532

Reproduction link or steps

Errors occurred in the Windows and Ubuntu builds.
(Stackblitz uses the WebAssembly build, so the error does not occur?)
https://stackblitz.com/edit/vitejs-vite-nfwwwqq7?file=package.json&terminal=dev

What is expected?

Execute npm run build.
Generate init_~ method in dist/assets.index.js 65 step. (On StackBlitz, it is generated.)

What is actually happening?

It is not generated init_~ method in the Windows build, and a runtime error occurred in the browser console.

System Info

System:
    OS: Windows 11 10.0.26100
    CPU: (24) x64 AMD Ryzen 9 9900X 12-Core Processor
    Memory: 34.74 GB / 47.10 GB
  Binaries:
    Node: 22.17.1 - C:\Program Files\nodejs\node.EXE
    npm: 11.5.1 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Chromium (139.0.3405.111)

Any additional comments?

Perhaps the init_~ methods are not being generated when using re-exports?

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions