Cannot read property 'alwaysWriteToDisk' of undefined
See original GitHub issueAfter upgrading webpack@5.1.2, webpack-cli@4.0.0 and html-webpack-plugin@5.0.0-alpha.3, I have the following error when building in production / development mode
TypeError: Cannot read property 'alwaysWriteToDisk' of undefined
at HtmlWebpackHarddiskPlugin.writeAssetToDisk (C:\Users\tdarneix\Development\centreon-dev-ecosystem-wp5\centreon\node_modules\html-webpack-harddisk-plugin\index.js:46:33)
at C:\Users\tdarneix\Development\centreon-dev-ecosystem-wp5\centreon\node_modules\html-webpack-harddisk-plugin\index.js:27:16
at eval (eval at create (C:\Users\tdarneix\Development\centreon-dev-ecosystem-wp5\centreon\node_modules\html-webpack-plugin\node_modules\tapable\lib\HookCodeFactory.js:74:10), <anonymous>:15:1)
at new Promise (<anonymous>)
at Hook.eval [as promise] (eval at create (C:\Users\tdarneix\Development\centreon-dev-ecosystem-wp5\centreon\node_modules\html-webpack-plugin\node_modules\tapable\lib\HookCodeFactory.js:74:10), <anonymous>:4:8)
at Hook.PROMISE_DELEGATE [as _promise] (C:\Users\tdarneix\Development\centreon-dev-ecosystem-wp5\centreon\node_modules\html-webpack-plugin\node_modules\tapable\lib\Hook.js:22:14)
at C:\Users\tdarneix\Development\centreon-dev-ecosystem-wp5\centreon\node_modules\html-webpack-plugin\index.js:341:89
at runMicrotasks (<anonymous>)
Does the alwaysWriteToDisk is still available on html-webpack-plugin ?
Is there a way to wirte assets to disk no matter the build type ?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Cannot read property 'tapAsync' of undefined #63 - GitHub
Got the error "Cannot read property 'tapAsync' of undefined" ... filename: 'layout.pug', alwaysWriteToDisk: true, // other config }) ...
Read more >Webpack: TypeError: Cannot read property ... - Stack Overflow
Webpack: TypeError: Cannot read property 'properties' of undefined · it works fine for me, can you clarify which script gives the error? What ......
Read more >html-webpack-plugin - npm
This is a webpack plugin that simplifies creation of HTML files to serve your webpack bundles. This is especially useful for webpack bundles ......
Read more >Webpack HtmlWebpackPlugin removes DOM elements-Reactjs
... Cannot apply text-align to Material UI Input Component, but everything else works · WebpackError: Cannot read property 'node' of undefined ...
Read more >Cannot read property 'get' of undefined : r/node - Reddit
Cannot read property 'get' of undefined. Hi, i am making a discord bot in java script. I am trying to use a command...
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

Can you please try html-webpack-plugin@5.0.0-alpha.5 ?
Cool thanks for testing 👍