-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webpack 4 Entrypoint undefined #895
Comments
The entry point is injected into webpack - what would be the correct way to give it a name? |
Is this a Webpack issue then? |
Does it produce any error or is this just a cosmetic issue? |
It is just a cosmetic issue, so it is not really that important. It just might be confusing for new users. |
If someone can find out how we can change it I would love to merge it into the plugin |
@sokra Do you perhaps know how the |
its giving same error even when providing template and filename options . |
Same issue.
|
Same issue webpack.config.js...
plugins: [
...
new HtmlWebPackPlugin({
title: '...',
template: path.resolve(folderSrc, 'index.html'),
filename: 'index.html',
hash: true
})
]
... Output...
Child html-webpack-plugin for "index.html":
1 asset
Entrypoint undefined = index.html
... Env
|
Setting the property |
Child html-webpack-plugin for "index.html": the same error is not cosmetic, since the script stops and the bundle does not end |
yep, provide all arguments to the SingleEntryPlugin constructor: html-webpack-plugin/lib/compiler.js Line 50 in 8131d8b
The last one is the entrypoint name. |
I'm just install and config html-loader. Then it working properly. So you can try |
Fixed in 3.0.7 |
I updated the package to the latest version, but I do not know why it continues with "some" error and the script does not end, please help Child html-webpack-plugin for "index.html": this is my log file: |
Please report bugs here #900 |
Thanks for the fix @jantimon! |
@ErikSchierboom please note that we will probably revert this change because of #900 |
The last version did not fix hmr for me. Html files doesn't update after compile. |
HMR not working for me in 3.1.0 and still entrypoint appears as undefined. |
Can you please try older versions and let me know which version works with HMR for you? |
Same issue |
same issue in v3.1.0 with webpack config below ...
const config = {
mode: mode,
entry: {
index: './index.js'
},
context: projectPath,
output: {
filename: '[name].[chunkhash:22].js',
chunkFilename: '[name].[chunkhash:22].js',
path: buildPath
},
plugins: [
new HTMLWebpackPlugin({
template: 'index.html',
})
]
} |
There seems to be a regression from 3.0.7 to 3.1.0. Installing 3.0.7 fixes the issue:
|
sorry, moved onto fuse-box... |
@jantimon Bam! Guess that explains it. Thanks for the update. There should be something in the documentation that states the current problem, and the workaround. People will be spending several hours trying to fix a problem that it's not their own. |
@superjose - actually it’s not an error just a meaningless log message :) |
In the past it was a job for extract-text-webpack-plugin. Unfortunately said plugin does not play well with webpack 4. According to Michael Ciniawsky: extract-text-webpack-plugin reached a point where maintaining it become too much of a burden and it’s not the first time upgrading a major webpack version was complicated and cumbersome due to issues with it now i userd "mini-css-extract-plugin" is here to overcome those issues |
Same issue here, v3.2.0 |
same issue here :( |
Same here!) Please do something!) |
same issue.. need help.... |
Same issue here, v3.2.0 |
Please see #895 (comment) |
Same issue here, v3.2.0 |
Hope someone can fix #900 soon so this issue can be swiftly resolved. |
@jantimon Thanks for the response! I think everyone will come flocking around without actually reading the issue. Why not put it on the front of the README.md that it's a false positive? |
it's not a meaningless log issue as the build fails... |
@AhHa45 It does not cause the build to fail - it might be the last log message of webpack before your build fails. If it really causes a build failure please open a bug report with a reproduction example. Please see #895 (comment) |
Description
When working with Webpack 4, people can now start with zero-configuration. This allows one to quickly get started with using Webpack, without any of the configuration hassle. Trying out Webpack 4, I tried to create a minimal configuration that uses the
HtmlWebpackPlugin
(see the Config section). While functionally working, I do get a warning about an undefined entrypoint.While I can ignore this warning, I'm not sure if there actually is a problem or if there is something I can do about it. If there is something wrong in my configuration, it would be great if a message was printed that explains how to fix it.
I can reproduce this is in both
development
andproduction
mode.Error Message & Stack Trace
Config
Minimal version:
More explicit version that also has the warning:
Version with HTML loader that also has the warning:
Environment
The text was updated successfully, but these errors were encountered: