You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Imports in less are added as dependencies with relative paths ("node_modules/package/file.less"), but webpack requires absolute paths ("/home/user/project/node_modules/package/file.less").
Logs
WARNING in ./app/App.svelte
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:
* "node_modules/package/file.less"
@ ./app/App.svelte
@ ./app/app.js
To Reproduce
Use webpack with svelte-loader and svelte-preprocess:
Describe the bug
Imports in less are added as dependencies with relative paths ("node_modules/package/file.less"), but webpack requires absolute paths ("/home/user/project/node_modules/package/file.less").
Logs
To Reproduce
Use webpack with svelte-loader and svelte-preprocess:
Use an import within less in a svelte file:
During build, webpack will complain about invalid dependencies.
Example that reproduces the error: https://github.com/lundal/svelte-less-example (
$ yarn install && yarn build
)Expected behavior
No complaints from webpack
The text was updated successfully, but these errors were encountered: