Skip to content

[Bug]: support svg-chunk-webpack-plugin #5766

@singh-jay

Description

@singh-jay

System Info

System:
OS: macOS 14.3.1
CPU: (8) arm64 Apple M1
Memory: 43.17 MB / 8.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 21.5.0 - /opt/homebrew/bin/node
npm: 10.2.4 - /opt/homebrew/bin/npm
Browsers:
Brave Browser: 121.1.62.165
Chrome: 119.0.6045.199
Safari: 17.3.1

Details

I'm trying to migrate our projects to rspack, everything is working fine except the svg sprites. Tried different plugins but got a similar error. I tried to find a solution to use svg sprites but could not, any guide on how to use svg-sprite with rspack will be helpful.

Getting error -
/node_modules/svg-chunk-webpack-plugin/lib/loader.js:20
this._module.factoryMeta = this._module.factoryMeta || {};
^

TypeError: Cannot read properties of undefined (reading 'factoryMeta')
at Object.SvgChunkWebpackLoader

Reproduce link

https://github.com/singh-jay/svg-chunk-plugin-test

Reproduce Steps

  1. clone the repo
  2. run bun install
  3. run bun dev

Metadata

Metadata

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions