Replies: 4 comments 9 replies
-
|
Hello @Sheetaa, sorry we can't investigate the problem further without reproduction demo, please provide a repro demo by forking rspack-repro, or provide a minimal GitHub repository by yourself. Issues labeled by |
Beta Was this translation helpful? Give feedback.
-
|
We can't help without more info. You can set |
Beta Was this translation helpful? Give feedback.
-
|
Like I mentioned above, I can't reproduce the bug even I used the same version code and the same deploy environment. Needless to say if I change the config settings to debug.
|
Beta Was this translation helpful? Give feedback.
-
|
The core reason of such is that the module is not loaded yet when the code actually runs. But in the reality, this is never gonna happen in the Rspack chunk loading algorithm, if it happens, it should be bug of Rspack. If you are loading chunks yourself instead of Rspack runtime, then you're likely to load all initial chunks before you start executing |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
System Info
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
4.19.91-27.5.al7.x86_64
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 2
Core(s) per socket: 2
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 85
Model name: Intel(R) Xeon(R) Platinum 8269CY CPU @ 2.50GHz
Stepping: 7
CPU MHz: 2500.000
BogoMIPS: 5000.00
Hypervisor vendor: KVM
Virtualization type: full
L1d cache: 32K
L1i cache: 32K
L2 cache: 1024K
L3 cache: 36608K
NUMA node0 CPU(s): 0-3
Details
现象
页面打开时 js 报错白屏
排查原因
chunk 919874 引用了 chunk 588802,但是 588802 不存在,实际对应的 chunk id 的是 366421,chunk id 引用和提供的不一致
可以看下面搜索结果,正常情况下 chunk id 搜索结果至少有2个,1个定义,1个引用。而这2个 id 都只能搜出1个。588802只有引用,366421只有定义。
排查难点
尝试回滚到出问题的代码提交版本,重新编译部署(多次部署确认),问题没有复现,并且查看 chunk id 和出问题时候不一致。也就是后续的正常部署 chunk id 都是稳定的,只有出问题的那次 id 不同。
新部署的 id 如下:
环境信息
moduleId 和 chunkId 没有专门设置,使用的默认值 'deterministic'
Reproduce link
No response
Reproduce Steps
无法重新编译复现,这是最奇怪的点
Beta Was this translation helpful? Give feedback.
All reactions