Skip to content

[Panic]: vite 8.0.1 #8808

@WangJincheng4869

Description

@WangJincheng4869

Panic message

rendering chunks (791)...Rolldown panicked. This is a bug in Rolldown, not your code.
Rolldown panicked. This is a bug in Rolldown, not your code.

thread '<unnamed>' (17176) panicked at crates\rolldown_utils\src\hash_placeholder.rs:56:38:
byte index 3359 is not a char boundary; it is inside '' (bytes 3357..3360) of `import{ht as e}from"./router-!~{002}~.js";import{c as t,f as n}from"./vue-router-!~{003}~.js";import"./i18n-!~{005}~.js";import{$a as r,C as i,D as a,Eo as o,Er as s,Io as c,Ka as l,Nt as u,Pt as d,Qa as f,Ro as p,Wa as m,Wo as h,Xt as g,Yo as _,ao as v,eo`[...]
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Please report this issue at: https://github.com/rolldown/rolldown/issues/new?template=panic_report.yml

thread '<unnamed>' (12416) panicked at crates\rolldown_utils\src\hash_placeholder.rs:56:38:
byte index 1737 is not a char boundary; it is inside '' (bytes 1735..1738) of `import{i as e,q as t,t as n,zt as r}from"./router-!~{002}~.js";import{c as i}from"./vue-router-!~{003}~.js";import{$a as a,C as o,Ct as s,D as c,Do as l,Ea as u,Eo as d,Ga as ee,Io as f,Jo as p,Ka as m,Kt as te,Lt as ne,Nr as h,Nt as re,Pt as ie,Q as ae,Qa`[...]

Please report this issue at: https://github.com/rolldown/rolldown/issues/new?template=panic_report.yml
✗ Build failed in 1m 34s
error during build:
[Panic in async function
Error: Panic in async function] {
  code: 'GenericFailure'
}
 ELIFECYCLE  Command failed with exit code 1.
 ELIFECYCLE  Command failed with exit code 1.

Reproduction

项目很大,不知道如何提供(8.0.0 可以正常打包,8.0.1 报错)

System Info

System:
    OS: Windows 11 10.0.26200
    CPU: (16) x64 AMD Ryzen 9 7940H  w/ Radeon 780M Graphics     
    Memory: 11.87 GB / 31.22 GB
  Binaries:
    Node: 24.12.0 - D:\Program Files\nodejs\node.EXE
    npm: 11.6.2 - D:\Program Files\nodejs\npm.CMD
    pnpm: 10.32.1 - D:\Users\jcwang\AppData\Roaming\npm\pnpm.CMD
  Browsers:
    Edge: Chromium (141.0.3537.99)
    Internet Explorer: 11.0.26100.7309

Additional context

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Priority

None yet

Effort

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions