Double-oxygeN/nim-loader

It reports incorrect dependency report

Double-oxygeN opened this issue · 0 comments

Here is an example report:

asset main.js 408 KiB [emitted] (name: main)
asset index.html 320 bytes [compared for emit]
./src/main.nim 391 KiB [built] [code generated] [1 warning]

WARNING in ./src/main.nim
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:
 * "nim"

webpack 5.72.1 compiled with 1 warning in 636 ms