Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Warnings with webpack 5 and HtmlWebpackPlugin #30

Open
ofabel opened this issue Jun 21, 2021 · 0 comments · May be fixed by #31
Open

Warnings with webpack 5 and HtmlWebpackPlugin #30

ofabel opened this issue Jun 21, 2021 · 0 comments · May be fixed by #31
Assignees
Labels
bug Something isn't working
Milestone

Comments

@ofabel
Copy link

ofabel commented Jun 21, 2021

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

ofabel pushed a commit to ofabel/twing-loader that referenced this issue Jun 21, 2021
@ofabel ofabel linked a pull request Jun 21, 2021 that will close this issue
visurel added a commit to visurel/twing-loader that referenced this issue Mar 19, 2023
@ericmorand ericmorand added this to the 5.0.0 milestone Mar 11, 2024
@ericmorand ericmorand self-assigned this Mar 11, 2024
@ericmorand ericmorand added the bug Something isn't working label Mar 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants