This repository was archived by the owner on Mar 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Warnings with webpack 5 and HtmlWebpackPlugin #30
Copy link
Copy link
Open
Description
I encounter the following warning when using the twing-loader along with the HtmlWebpackPlugin:
WARNING in ./template/landingpage/preview.twig (./node_modules/html-webpack-plugin/lib/loader.js!./template/landingpage/preview.twig)
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:/dev/bsi-cx-design-template/internal/environment.js"
* "C:/dev/bsi-cx-design-template/template/landingpage/preview.twig"
* "_layout.twig"
Child HtmlWebpackCompiler compiled with 3 warnings
I will submit a pull request, that resolves this issue (just creating this issue to reference it in the pull request).
Affected versions:
html-webpack-plugin: 5.3.1
twing: 5.0.2
twing-loader: 4.0.0
webpack: 5.39.1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working