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

Error from createHash after upgrading to 4.20.0 on targeting amd #8081

Closed
JounQin opened this issue Sep 25, 2018 · 0 comments
Closed

Error from createHash after upgrading to 4.20.0 on targeting amd #8081

JounQin opened this issue Sep 25, 2018 · 0 comments

Comments

@JounQin
Copy link
Member

JounQin commented Sep 25, 2018

Bug report

What is the current behavior?

internal/crypto/hash.js:58
    throw new ERR_INVALID_ARG_TYPE('data',
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be one of type string, TypedArray, or DataView. Received type undefined
    at Hash.update (internal/crypto/hash.js:58:11)
    at BulkUpdateDecorator.update (/local/GitHub/test/node_modules/webpack/lib/util/createHash.js:35:14)
    at mainTemplate.hooks.hash.tap.hash (/local/GitHub/test/node_modules/webpack/lib/AmdMainTemplatePlugin.js:82:9)
    at SyncHook.eval [as call] (eval at create (/local/GitHub/test/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:11:1)
    at SyncHook.lazyCompileHook (/local/GitHub/test/node_modules/tapable/lib/Hook.js:154:20)
    at MainTemplate.updateHash (/local/GitHub/test/node_modules/webpack/lib/MainTemplate.js:506:19)
    at Compilation.createHash (/local/GitHub/test/node_modules/webpack/lib/Compilation.js:2218:21)
    at hooks.optimizeTree.callAsync.err (/local/GitHub/test/node_modules/webpack/lib/Compilation.js:1259:9)
    at AsyncSeriesHook.eval [as callAsync] (eval at create (/local/GitHub/test/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:6:1)
    at AsyncSeriesHook.lazyCompileHook (/local/GitHub/test/node_modules/tapable/lib/Hook.js:154:20)
    at Compilation.seal (/local/GitHub/test/node_modules/webpack/lib/Compilation.js:1215:27)
    at hooks.make.callAsync.err (/local/GitHub/test/node_modules/webpack/lib/Compiler.js:541:17)
    at _err0 (eval at create (/local/GitHub/test/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:11:1)
    at _addModuleChain (/local/GitHub/test/node_modules/webpack/lib/Compilation.js:1066:12)
    at processModuleDependencies.err (/local/GitHub/test/node_modules/webpack/lib/Compilation.js:982:9)
    at process._tickCallback (internal/process/next_tick.js:61:11)
error Command failed with exit code 1.

If the current behavior is a bug, please provide the steps to reproduce.
https://github.com/JounQin/test/tree/webpack
yarn && yarn build

If you downgrade webpack to 4.19.1, it will work.

What is the expected behavior?
No error

Other relevant information:
webpack version: 4.20.0
Node.js version: 10.11.0
Operating System: macOS Mojave

@sokra sokra closed this as completed in d836bcb Sep 25, 2018
sokra added a commit that referenced this issue Sep 25, 2018
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

1 participant