Closed runkobe24 closed 1 day ago
If I delete stylusOptions, an error will be reported: TypeError: expected rgba or hsla, but got ident:$primary-color;
If I don't delete it, this error will appear again: Module build failed: ╰─▶ × Error: RspackResolver(NotFound("s"))
There is a type issue in @rsbuild/plugin-stylus
, we will fix the type with https://github.com/web-infra-dev/rsbuild/pull/3972
The correct usage is:
pluginStylus({
stylusOptions: {
import: [path.join(__dirname, "./src/lib/stylus/vars.styl")],
},
})
Version
Details
This is my current 【rsbuild.config.ts】 configuration:
Reproduce link
https://codesandbox.io/p/devbox/exciting-mopsa-7jhpsw?file=%2Frsbuild.config.ts%3A1%2C1-46%2C1
Reproduce Steps
yarn dev