Commit 06b484e
build: force resolution of
This resolution is needed as otherwise if webpack versions are not on the exact version the compilation will fail.
Example of such errors;
```
packages/angular_devkit/build_angular/src/webpack/configs/common.ts:219:7 - error TS2345: Argument of type 'CopyPlugin' is not assignable to parameter of type '{ apply(compiler: Compiler): void; }'.
Types of property 'apply' are incompatible.
Type '(compiler: import("/home/circleci/ng/node_modules/@types/copy-webpack-plugin/node_modules/webpack/types").Compiler) => void' is not assignable to type '(compiler: import("/home/circleci/ng/node_modules/webpack/types").Compiler) => void'.
Types of parameters 'compiler' and 'compiler' are incompatible.
Type 'import("/home/circleci/ng/node_modules/webpack/types").Compiler' is not assignable to type 'import("/home/circleci/ng/node_modules/@types/copy-webpack-plugin/node_modules/webpack/types").Compiler'.
The types of 'hooks.shouldEmit' are incompatible between these types.
Type 'import("/home/circleci/ng/node_modules/tapable/tapable").SyncBailHook<[import("/home/circleci/ng/node_modules/webpack/types").Compilation], boolean, import("/home/circleci/ng/node_modules/tapable/tapable").UnsetAdditionalOptions>' is not assignable to type 'import("/home/circleci/ng/node_modules/tapable/tapable").SyncBailHook<[import("/home/circleci/ng/node_modules/@types/copy-webpack-plugin/node_modules/webpack/types").Compilation], boolean, import("/home/circleci/ng/node_modules/tapable/tapable").UnsetAdditionalOptions>'.
219 new CopyWebpackPlugin({
~~~~~~~~~~~~~~~~~~~~~~~
220 patterns: copyWebpackPluginPatterns,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
221 }),
~~~~~~~~
```
(cherry picked from commit fdbbcfd)@types/copy-webpack-plugin/webpack
1 parent 529a5bd commit 06b484e
2 files changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
64 | 67 | | |
65 | 68 | | |
66 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11740 | 11740 | | |
11741 | 11741 | | |
11742 | 11742 | | |
11743 | | - | |
| 11743 | + | |
11744 | 11744 | | |
11745 | 11745 | | |
11746 | 11746 | | |
| |||
0 commit comments