-
Notifications
You must be signed in to change notification settings - Fork 108
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
Could not find HTML asset #5
Comments
+1 |
1 similar comment
+1 |
Can someone share their |
+1 |
@developit it is very simple new HtmlWebpackPlugin({
filename: 'index.html',
template: '../index.html',
chunksSortMode: 'none'
}) and |
What worked for me was the order of plugins in the plugins array. Putting crittersplugin after htmlwebpackplugin made it work for me |
Moving it after |
@harrygreen, any stack Trace? Which version? |
Hi, I ran into the same issue... I think this is due to a change in Maybe when the Line 116 in 8e9e9c0
afterEmit ?)
Solution: revert to a stable version of |
@tmf good catch, that's likely the issue. |
+1 I'm having the same issue here |
+1 same here |
+1 same issue |
2 similar comments
+1 same issue |
+1 same issue |
Does this plugin require html-webpack-plugin? |
Did anyone fix the issue? I've tried moving it after, using the stable version, nothing worked. |
Still running into this bug. |
This bug is still on tried with the latest version. |
Looks like we'll need to make this plugin more specific to html-webpack-plugin as of v4: |
I'm getting the same error Could not find HTML asset.
at E:\web\microflash\node_modules\critters-webpack-plugin\dist\critters.js:168:39
at AsyncSeriesHook.eval [as callAsync] (eval at create (E:\web\microflash\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:10:1)
at AsyncSeriesHook.lazyCompileHook (E:\web\microflash\node_modules\tapable\lib\Hook.js:154:20)
at E:\web\microflash\node_modules\webpack\lib\Compilation.js:1414:32
at AsyncSeriesHook.eval [as callAsync] (eval at create (E:\web\microflash\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:7:1)
at AsyncSeriesHook.lazyCompileHook (E:\web\microflash\node_modules\tapable\lib\Hook.js:154:20)
at E:\web\microflash\node_modules\webpack\lib\Compilation.js:1409:36
at AsyncSeriesHook.eval [as callAsync] (eval at create (E:\web\microflash\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:7:1)
at AsyncSeriesHook.lazyCompileHook (E:\web\microflash\node_modules\tapable\lib\Hook.js:154:20)
at E:\web\microflash\node_modules\webpack\lib\Compilation.js:1405:32
at AsyncSeriesHook.eval [as callAsync] (eval at create (E:\web\microflash\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:7:1)
at AsyncSeriesHook.lazyCompileHook (E:\web\microflash\node_modules\tapable\lib\Hook.js:154:20)
at Compilation.seal (E:\web\microflash\node_modules\webpack\lib\Compilation.js:1342:27)
at E:\web\microflash\node_modules\webpack\lib\Compiler.js:675:18
at E:\web\microflash\node_modules\webpack\lib\Compilation.js:1261:4
at AsyncSeriesHook.eval [as callAsync] (eval at create (E:\web\microflash\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:29:1) with {
minify: true,
templateContent () {
return createHTMLRenderer(projectConfig.htmlTemplate)({
app: '<div id="app"></div>'
})
}
}
Environment |
@naiyerasif you find a solution? Running into this now too. |
@dsacramone Unfortunately, this became a showstopper for me and I had to revert back to puppeteer for my use case. There's an open PR #52 against this issue, but not sure if it is going anywhere. |
I can confirm the following PR #62 is fixing this issue for me. |
+1 same
webpack: 4.44.1 |
This has been fixed in #84 and published as critters-webpack-plugin@3.0.0. |
i ran into the same issue ,and my html-webpack-plugin version is 5.5.0 |
Followed usage instructions, and get this error:
Tried with
html-webpack-plugin
onwebpack 4.10.2
nodejs 10.3.0
The text was updated successfully, but these errors were encountered: