Could not find HTML asset
See original GitHub issueFollowed usage instructions, and get this error:
Error: Could not find HTML asset.
at C:\TFS\WorkZone\WZC\Main\Source\client\node_modules\critters-webpack-plugin\dist\critters.js:200:39
at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\TFS\WorkZone\WZC\Main\Source\client\node_modules\tapable\lib\HookCodeFactory.js:24:12), <anonymous>:7:1)
at AsyncSeriesHook.lazyCompileHook [as _callAsync] (C:\TFS\WorkZone\WZC\Main\Source\client\node_modules\tapable\lib\Hook.js:35:21)
at hooks.optimizeChunkAssets.callAsync.err (C:\TFS\WorkZone\WZC\Main\Source\client\node_modules\webpack\lib\Compilation.js:976:32)
at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\TFS\WorkZone\WZC\Main\Source\client\node_modules\tapable\lib\HookCodeFactory.js:24:12), <anonymous>:6:1)
at AsyncSeriesHook.lazyCompileHook [as _callAsync] (C:\TFS\WorkZone\WZC\Main\Source\client\node_modules\tapable\lib\Hook.js:35:21)
at hooks.additionalAssets.callAsync.err (C:\TFS\WorkZone\WZC\Main\Source\client\node_modules\webpack\lib\Compilation.js:971:36)
at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\TFS\WorkZone\WZC\Main\Source\client\node_modules\tapable\lib\HookCodeFactory.js:24:12), <anonymous>:6:1)
at AsyncSeriesHook.lazyCompileHook [as _callAsync] (C:\TFS\WorkZone\WZC\Main\Source\client\node_modules\tapable\lib\Hook.js:35:21)
at hooks.optimizeTree.callAsync.err (C:\TFS\WorkZone\WZC\Main\Source\client\node_modules\webpack\lib\Compilation.js:967:32)
at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\TFS\WorkZone\WZC\Main\Source\client\node_modules\tapable\lib\HookCodeFactory.js:24:12), <anonymous>:6:1)
at AsyncSeriesHook.lazyCompileHook [as _callAsync] (C:\TFS\WorkZone\WZC\Main\Source\client\node_modules\tapable\lib\Hook.js:35:21)
at Compilation.seal (C:\TFS\WorkZone\WZC\Main\Source\client\node_modules\webpack\lib\Compilation.js:904:27)
at hooks.make.callAsync.err (C:\TFS\WorkZone\WZC\Main\Source\client\node_modules\webpack\lib\Compiler.js:494:17)
at _done (eval at create (C:\TFS\WorkZone\WZC\Main\Source\client\node_modules\tapable\lib\HookCodeFactory.js:24:12), <anonymous>:9:1)
at _err1 (eval at create (C:\TFS\WorkZone\WZC\Main\Source\client\node_modules\tapable\lib\HookCodeFactory.js:24:12), <anonymous>:32:22)
at _addModuleChain (C:\TFS\WorkZone\WZC\Main\Source\client\node_modules\webpack\lib\Compilation.js:770:12)
at processModuleDependencies.err (C:\TFS\WorkZone\WZC\Main\Source\client\node_modules\webpack\lib\Compilation.js:709:9)
at process._tickCallback (internal/process/next_tick.js:61:11)
Tried with html-webpack-plugin
on
webpack 4.10.2
nodejs 10.3.0
Issue Analytics
- State:
- Created 5 years ago
- Reactions:21
- Comments:26 (3 by maintainers)
Top Results From Across the Web
Error: Cannot find module 'html-webpack-plugin'
UPDATE: I noticed that I cannot see the version for "html-webpack-plugin". It displays as it is not installed. However, I have installed it,...
Read more >html-loader - npm
Html loader module for webpack. Latest version: 4.2.0, last published: 3 months ago. Start using html-loader in your project by running `npm ...
Read more >Troubleshooting - Unity - Manual
Error refreshing assets (or Error refreshing packages). If your network can't reach the package registry server, it's probably because there is a connection...
Read more >Static Asset Handling - Vite
...or you simply don't want to have to import an asset first just to get its URL. Then you can place the asset...
Read more >"Could not find Asset" when scanning an Asset barcode in BIM 360 ...
Issue: · "Could not find Asset. Barcode: *XX* Type: org.iso.Code128" · Causes: · Solution: · See Also: · Products:.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi,
I ran into the same issue…
I think this is due to a change in
html-webpack-plugin@next
(tested with4.0.0-beta.4
): the hooks were renamed in https://github.com/jantimon/html-webpack-plugin/pull/1032.Maybe when the
4.0.0
version will be released, https://github.com/GoogleChromeLabs/critters/blob/8e9e9c0fd2e2c482bb836ba19bce03e1aed29d02/src/index.js#L116 needs to use one of these hooks: https://github.com/jantimon/html-webpack-plugin#events (maybeafterEmit
?)Solution: revert to a stable version of
html-webpack-plugin
. Hope that helps.Moving it after
HtmlWebpackPlugin
worked for me, but then got the more cryptic error:undefined