RHSTOR-7463:Upgrade webpack to 5.99.9 #2137
Merged
+38
−33
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
https://issues.redhat.com/browse/RHSTOR-7463
Upgradation of webpack to 5.99.9 is raising error:
[webpack-cli] TypeError: The 'compilation' argument must be an instance of Compilation
at NormalModule.getCompilationHooks (/Users/vaddempudinikhitha/Desktop/Update/webpack/odf-console/node_modules/@openshift-console/dynamic-plugin-sdk-webpack/node_modules/webpack/lib/NormalModule.js:261:10)
at (/Users/vaddempudinikhitha/Desktop/Update/webpack/odf-console/node_modules/src/webpack/ConsoleRemotePlugin.ts:461:28)
at Hook.eval [as call] (eval at create (/Users/vaddempudinikhitha/Desktop/Update/webpack/odf-console/node_modules/tapable/lib/HookCodeFactory.js:19:10), :11:1)
at Hook.CALL_DELEGATE [as _call] (/Users/vaddempudinikhitha/Desktop/Update/webpack/odf-console/node_modules/tapable/lib/Hook.js:14:14)
at Compiler.newCompilation (/Users/vaddempudinikhitha/Desktop/Update/webpack/odf-console/node_modules/webpack/lib/Compiler.js:1272:30)
at /Users/vaddempudinikhitha/Desktop/Update/webpack/odf-console/node_modules/webpack/lib/Compiler.js:1317:29
at Hook.eval [as callAsync] (eval at create (/Users/vaddempudinikhitha/Desktop/Update/webpack/odf-console/node_modules/tapable/lib/HookCodeFactory.js:33:10), :6:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/Users/vaddempudinikhitha/Desktop/Update/webpack/odf-console/node_modules/tapable/lib/Hook.js:18:14)
at Compiler.compile (/Users/vaddempudinikhitha/Desktop/Update/webpack/odf-console/node_modules/webpack/lib/Compiler.js:1312:28)
at /Users/vaddempudinikhitha/Desktop/Update/webpack/odf-console/node_modules/webpack/lib/Compiler.js:593:12
Add resolution 'webpack' and upgrade it to 5.99.9 to resolve the issue