asset main.js 29.5 KiB [emitted] (name: main)
runtime modules 972 bytes 5 modules
cacheable modules 14.5 KiB
...
./src.js 4.82 KiB [built] [code generated]
WARNING in ./style.styl (./node_modules/css-loader/dist/cjs.js!./node_modules/stylus-native-loader/dist/cjs.js!./style.styl)
Invalid dependencies have been reported by plugins or loaders for this module. All reported dependencies need to be absolute paths.
Invalid dependencies may lead to broken watching and caching.
As best effort we try to convert all invalid values to absolute paths and converting globs into context dependencies, but this is deprecated behavior.
Loaders: Pass absolute paths to this.addDependency (existing files), this.addMissingDependency (not existing files), and this.addContextDependency (directories).
Plugins: Pass absolute paths to fileDependencies (existing files), missingDependencies (not existing files), and contextDependencies (directories).
Globs: They are not supported. Pass absolute path to the directory as context dependencies.
The following invalid values have been reported:
* "C:/test/node_modules/stylus-native-loader/lib"
* "C:/test/node_modules/stylus-native-loader/lib/vendors-official.styl"
* "C:/test/node_modules/stylus/lib/functions"
* and more ...
* "C:/test/node_modules/stylus/lib/functions/index.styl"
@ ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js!./node_modules/stylus-native-loader/dist/cjs.js!./style.styl 8:6-147 22:17-24 26:0-117 26:0-117 27:22-29 27:33-47 27:50-64
@ ./src.js 34:0-68
webpack 5.72.1 compiled with 1 warning in 802 ms
I think it's a Windows issue because it's working on WSL.
Getting this warning:
style.styl
src.js
Running
webpack
output:I think it's a Windows issue because it's working on WSL.
The original
stylus-loader
works too.