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

Can't read property of hash when adding plugin #21

Closed
DerArkeN opened this issue Feb 11, 2022 · 1 comment
Closed

Can't read property of hash when adding plugin #21

DerArkeN opened this issue Feb 11, 2022 · 1 comment

Comments

@DerArkeN
Copy link

`D:\Aaron\Coding\untis-google-web\node_modules\webpack\lib\NormalModule.js:1353
hash.update(this.buildInfo.hash);
^

TypeError: Cannot read properties of undefined (reading 'hash')
at NormalModule.updateHash (D:\Aaron\Coding\untis-google-web\node_modules\webpack\lib\NormalModule.js:1353:30)
at Compilation._createModuleHash (D:\Aaron\Coding\untis-google-web\node_modules\webpack\lib\Compilation.js:3935:10)
at Compilation.createModuleHashes (D:\Aaron\Coding\untis-google-web\node_modules\webpack\lib\Compilation.js:3902:25)
at D:\Aaron\Coding\untis-google-web\node_modules\webpack\lib\Compilation.js:3009:11
at Hook.eval [as callAsync] (eval at create (D:\Aaron\Coding\untis-google-web\node_modules\tapable\lib\HookCodeFactory.js:33:10), :6:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (D:\Aaron\Coding\untis-google-web\node_modules\tapable\lib\Hook.js:18:14)
at D:\Aaron\Coding\untis-google-web\node_modules\webpack\lib\Compilation.js:2965:36
at Hook.eval [as callAsync] (eval at create (D:\Aaron\Coding\untis-google-web\node_modules\tapable\lib\HookCodeFactory.js:33:10), :6:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (D:\Aaron\Coding\untis-google-web\node_modules\tapable\lib\Hook.js:18:14)
at Compilation.seal (D:\Aaron\Coding\untis-google-web\node_modules\webpack\lib\Compilation.js:2956:27)`

after adding the plugin to the webpack config.
@Richienb
Copy link
Owner

Try this solution: mzgoddard/hard-source-webpack-plugin#416 (comment)

@DerArkeN DerArkeN closed this as completed Oct 9, 2024
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

2 participants