Skip to content
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

Getting hashingUnhandled type error when running build:prod #326

Closed
lanocturne opened this issue Feb 11, 2016 · 4 comments
Closed

Getting hashingUnhandled type error when running build:prod #326

lanocturne opened this issue Feb 11, 2016 · 4 comments

Comments

@lanocturne
Copy link

I am getting below errors when trying to build prod dist

75% hashingUnhandled rejection TypeError: Reduce of empty array with no initial value
    at Array.reduce (native)
    at Compilation.<anonymous> (/ui/node_modules/webpack-md5-hash/plugin/webpack_md5_hash.js:27:82)
    at Compilation.applyPlugins (/ui/node_modules/webpack/node_modules/tapable/lib/Tapable.js:26:37)

Build dev dist works. My webpack.prod.config.js is updated and modified similar to webpack.config.js

Could anyone guides where I should look onto?

@PatrickJS
Copy link
Owner

can you see issue erm0l0v/webpack-md5-hash#1

@dsebastien
Copy link

Hey @gdi2290 what's the actual reason for using webpack-md5-hash? To get less risk of collisions? If so, apparently it's possible to simply pass a different hashing algorithm in the output options as per the last comment there: https://webpack.github.io/docs/long-term-caching.html

@dsebastien
Copy link

FYI I've created a sibling project with SHA rather than MD5: https://www.npmjs.com/package/webpack-sha-hash

@lanocturne
Copy link
Author

@gdi2290 Thank you! After updating md5-hash to 0.0.5 it shows me the useful error stack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants