[Bug]: rspack serve
fails with InvalidArg
if Rule.options has function in it
#8180
Labels
bug
Something isn't working
System Info
System:
OS: macOS 15.0.1
CPU: (10) arm64 Apple M1 Max
Memory: 1.92 GB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.16.0 - ~/.local/state/fnm_multishells/79899_1729519945071/bin/node
npm: 10.8.1 - ~/.local/state/fnm_multishells/79899_1729519945071/bin/npm
pnpm: 9.12.2 - ~/.local/state/fnm_multishells/79899_1729519945071/bin/pnpm
Browsers:
Chrome: 130.0.6723.59
Safari: 18.0.1
npmPackages:
@rspack/cli: 1.0.13 => 1.0.13
@rspack/core: 1.0.13 => 1.0.13
@rspack/plugin-react-refresh: 1.0.0 => 1.0.0
Details
In attempt to migrate from
webpack
I stumbled upon the following error that is a little bit hard to trace, but the root cause is the following:ts-loader
allows to provideoptions.getCustomTransformers
as function.Starting the web server results in the following error:
Is it possible to improve error message here?
Reproduce link
https://github.com/skoch13/rspack-repro
Reproduce Steps
Rule.options
rspack serve
or check repro at https://github.com/skoch13/rspack-repro
The text was updated successfully, but these errors were encountered: