Skip to content

[Bug]: svg-sprite-loader causes panic "should set in compilation first" with Rspack/Rsbuild #12617

@wxy-hh

Description

@wxy-hh

System Info

System:
OS: macOS 26
CPU: M4
Memory: 16
Shell: zsh
Binaries:
Node: v20.19.4
pnpm: 10.26.1
npmPackages:
@rsbuild/core: ^1.7.1
@rsbuild/plugin-vue2: ^1.0.4
svg-sprite-loader: ^6.0.11

Details

@rsbuild/core从1.6.15升级到1.7.1后启动报错:Please file an issue on GitHub with the backtrace below: https://github.com/web-infra-dev/rspack/issues: panicked at crates/rspack_core/src/utils/deref_option.rs:52:26:

Image

Reproduce link

No response

Reproduce Steps

rspack-svg-sprite-bug.zip

Metadata

Metadata

Assignees

Labels

pending triageThe issue/PR is currently untouched.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions