react-styleguidist icon indicating copy to clipboard operation
react-styleguidist copied to clipboard

clean-webpack-plugin must be upgraded to match webpack 5

Open igorpupkinable opened this issue 3 years ago • 1 comments

Current behavior

clean-webpack-plugin@3 is not compatible with webpack 5 because of older @types/webpack

To reproduce Install latest version of react-styleguidist and webpack 5. Run type checks with TypeScript.

Expected behavior No type issues reported.

Actual behaviour 267 type errors reported.

$ tsc --build
node_modules/@types/webpack/index.d.ts:32:3 - error TS2305: Module '"tapable"' has no exported member 'Tapable'.

32   Tapable,
     ~~~~~~~

node_modules/@types/webpack/index.d.ts:1081:23 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type arguments.

1081             resolver: SyncWaterfallHook;
                           ~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1082:22 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type arguments.

1082             factory: SyncWaterfallHook;
                          ~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1083:28 - error TS2707: Generic type 'AsyncSeriesWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type arguments.

1083             beforeResolve: AsyncSeriesWaterfallHook;
                                ~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1084:27 - error TS2707: Generic type 'AsyncSeriesWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type arguments.

1084             afterResolve: AsyncSeriesWaterfallHook;
                               ~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1085:27 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type arguments.

1085             createModule: SyncBailHook;
                               ~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1086:21 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type arguments.

1086             module: SyncWaterfallHook;
                         ~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1087:27 - error TS2314: Generic type 'HookMap<H>' requires 1 type argument(s).

1087             createParser: HookMap;
                               ~~~~~~~

node_modules/@types/webpack/index.d.ts:1089:30 - error TS2314: Generic type 'HookMap<H>' requires 1 type argument(s).

1089             createGenerator: HookMap;
                                  ~~~~~~~

node_modules/@types/webpack/index.d.ts:1090:24 - error TS2314: Generic type 'HookMap<H>' requires 1 type argument(s).

1090             generator: HookMap;
                            ~~~~~~~

node_modules/@types/webpack/index.d.ts:1099:33 - error TS2314: Generic type 'HookMap<H>' requires 1 type argument(s).

1099                 evaluateTypeof: HookMap;
                                     ~~~~~~~

node_modules/@types/webpack/index.d.ts:1100:27 - error TS2314: Generic type 'HookMap<H>' requires 1 type argument(s).

1100                 evaluate: HookMap;
                               ~~~~~~~

node_modules/@types/webpack/index.d.ts:1101:37 - error TS2314: Generic type 'HookMap<H>' requires 1 type argument(s).

1101                 evaluateIdentifier: HookMap;
                                         ~~~~~~~

node_modules/@types/webpack/index.d.ts:1102:44 - error TS2314: Generic type 'HookMap<H>' requires 1 type argument(s).

1102                 evaluateDefinedIdentifier: HookMap;
                                                ~~~~~~~

node_modules/@types/webpack/index.d.ts:1103:47 - error TS2314: Generic type 'HookMap<H>' requires 1 type argument(s).

1103                 evaluateCallExpressionMember: HookMap;
                                                   ~~~~~~~

node_modules/@types/webpack/index.d.ts:1104:28 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type arguments.

1104                 statement: SyncBailHook;
                                ~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1105:30 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type arguments.

1105                 statementIf: SyncBailHook;
                                  ~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1106:24 - error TS2314: Generic type 'HookMap<H>' requires 1 type argument(s).

1106                 label: HookMap;
                            ~~~~~~~

node_modules/@types/webpack/index.d.ts:1107:25 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type arguments.

1107                 import: SyncBailHook;
                             ~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1108:34 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type arguments.

1108                 importSpecifier: SyncBailHook;
                                      ~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1109:25 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type arguments.

1109                 export: SyncBailHook;
                             ~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1110:31 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type arguments.

1110                 exportImport: SyncBailHook;
                                   ~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1111:36 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type arguments.

1111                 exportDeclaration: SyncBailHook;
                                        ~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1112:35 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type arguments.

1112                 exportExpression: SyncBailHook;
                                       ~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1113:34 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type arguments.

1113                 exportSpecifier: SyncBailHook;
                                      ~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1114:40 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type arguments.

1114                 exportImportSpecifier: SyncBailHook;
                                            ~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1115:33 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type arguments.

1115                 varDeclaration: SyncBailHook;
                                     ~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1116:36 - error TS2314: Generic type 'HookMap<H>' requires 1 type argument(s).

1116                 varDeclarationLet: HookMap;
                                        ~~~~~~~

node_modules/@types/webpack/index.d.ts:1117:38 - error TS2314: Generic type 'HookMap<H>' requires 1 type argument(s).

1117                 varDeclarationConst: HookMap;
                                          ~~~~~~~

node_modules/@types/webpack/index.d.ts:1118:36 - error TS2314: Generic type 'HookMap<H>' requires 1 type argument(s).

1118                 varDeclarationVar: HookMap;
                                        ~~~~~~~

node_modules/@types/webpack/index.d.ts:1119:28 - error TS2314: Generic type 'HookMap<H>' requires 1 type argument(s).

1119                 canRename: HookMap;
                                ~~~~~~~

node_modules/@types/webpack/index.d.ts:1120:25 - error TS2314: Generic type 'HookMap<H>' requires 1 type argument(s).

1120                 rename: HookMap;
                             ~~~~~~~

node_modules/@types/webpack/index.d.ts:1121:27 - error TS2314: Generic type 'HookMap<H>' requires 1 type argument(s).

1121                 assigned: HookMap;
                               ~~~~~~~

node_modules/@types/webpack/index.d.ts:1122:25 - error TS2314: Generic type 'HookMap<H>' requires 1 type argument(s).

1122                 typeof: HookMap;
                             ~~~~~~~

node_modules/@types/webpack/index.d.ts:1123:29 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type arguments.

1123                 importCall: SyncBailHook;
                                 ~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1124:23 - error TS2314: Generic type 'HookMap<H>' requires 1 type argument(s).

1124                 call: HookMap;
                           ~~~~~~~

node_modules/@types/webpack/index.d.ts:1125:32 - error TS2314: Generic type 'HookMap<H>' requires 1 type argument(s).

1125                 callAnyMember: HookMap;
                                    ~~~~~~~

node_modules/@types/webpack/index.d.ts:1126:22 - error TS2314: Generic type 'HookMap<H>' requires 1 type argument(s).

1126                 new: HookMap;
                          ~~~~~~~

node_modules/@types/webpack/index.d.ts:1127:29 - error TS2314: Generic type 'HookMap<H>' requires 1 type argument(s).

1127                 expression: HookMap;
                                 ~~~~~~~

node_modules/@types/webpack/index.d.ts:1128:38 - error TS2314: Generic type 'HookMap<H>' requires 1 type argument(s).

1128                 expressionAnyMember: HookMap;
                                          ~~~~~~~

node_modules/@types/webpack/index.d.ts:1129:48 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type arguments.

1129                 expressionConditionalOperator: SyncBailHook;
                                                    ~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1130:44 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type arguments.

1130                 expressionLogicalOperator: SyncBailHook;
                                                ~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1131:26 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type arguments.

1131                 program: SyncBailHook;
                              ~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1140:28 - error TS2707: Generic type 'AsyncSeriesWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type arguments.

1140             beforeResolve: AsyncSeriesWaterfallHook;
                                ~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1141:27 - error TS2707: Generic type 'AsyncSeriesWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type arguments.

1141             afterResolve: AsyncSeriesWaterfallHook;
                               ~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1142:33 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type arguments.

1142             contextModuleFiles: SyncWaterfallHook;
                                     ~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1143:27 - error TS2707: Generic type 'AsyncSeriesWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type arguments.

1143             alternatives: AsyncSeriesWaterfallHook;
                               ~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1163:21 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type arguments.

1163             unseal: SyncHook;
                         ~~~~~~~~

node_modules/@types/webpack/index.d.ts:1164:19 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type arguments.

1164             seal: SyncHook;
                       ~~~~~~~~

node_modules/@types/webpack/index.d.ts:1166:40 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type arguments.

1166             optimizeDependenciesBasic: SyncBailHook<Module[]>;
                                            ~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1167:35 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type arguments.

1167             optimizeDependencies: SyncBailHook<Module[]>;
                                       ~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1168:43 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type arguments.

1168             optimizeDependenciesAdvanced: SyncBailHook<Module[]>;
                                               ~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1171:23 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type arguments.

1171             optimize: SyncHook;
                           ~~~~~~~~

node_modules/@types/webpack/index.d.ts:1173:35 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type arguments.

1173             optimizeModulesBasic: SyncBailHook<Module[]>;
                                       ~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1174:30 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type arguments.

1174             optimizeModules: SyncBailHook<Module[]>;
                                  ~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1175:38 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type arguments.

1175             optimizeModulesAdvanced: SyncBailHook<Module[]>;
                                          ~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1190:27 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type arguments.

1190             shouldRecord: SyncBailHook;
                               ~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1209:25 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type arguments.

1209             beforeHash: SyncHook;
                             ~~~~~~~~

node_modules/@types/webpack/index.d.ts:1210:24 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type arguments.

1210             afterHash: SyncHook;
                            ~~~~~~~~

node_modules/@types/webpack/index.d.ts:1216:33 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type arguments.

1216             beforeModuleAssets: SyncHook;
                                     ~~~~~~~~

node_modules/@types/webpack/index.d.ts:1217:40 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type arguments.

1217             shouldGenerateChunkAssets: SyncBailHook;
                                            ~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1218:32 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type arguments.

1218             beforeChunkAssets: SyncHook;
                                    ~~~~~~~~

node_modules/@types/webpack/index.d.ts:1223:31 - error TS2707: Generic type 'AsyncSeriesHook<T, AdditionalOptions>' requires between 1 and 2 type arguments.

1223             additionalAssets: AsyncSeriesHook;
                                   ~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1229:33 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type arguments.

1229             needAdditionalSeal: SyncBailHook;
                                     ~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1230:24 - error TS2707: Generic type 'AsyncSeriesHook<T, AdditionalOptions>' requires between 1 and 2 type arguments.

1230             afterSeal: AsyncSeriesHook;
                            ~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1238:33 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type arguments.

1238             needAdditionalPass: SyncBailHook;
                                     ~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1239:28 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type arguments.

1239             childCompiler: SyncHook;
                                ~~~~~~~~

node_modules/@types/webpack/index.d.ts:1243:43 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type arguments.

1243             optimizeExtractedChunksBasic: SyncBailHook<Chunk[]>;
                                               ~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1244:38 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type arguments.

1244             optimizeExtractedChunks: SyncBailHook<Chunk[]>;
                                          ~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1245:46 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type arguments.

1245             optimizeExtractedChunksAdvanced: SyncBailHook<Chunk[]>;
                                                  ~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1258:27 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type arguments.

1258             jsonpScript?: SyncWaterfallHook<string, Chunk, string> | undefined;
                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1259:22 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type arguments.

1259             require: SyncWaterfallHook<string, Chunk, string>;
                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1260:32 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type arguments.

1260             requireExtensions: SyncWaterfallHook<string, Chunk, string>;
                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1261:28 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type arguments.

1261             requireEnsure: SyncWaterfallHook<string, Chunk, string>;
                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1262:24 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type arguments.

1262             localVars: SyncWaterfallHook<string, Chunk, string>;
                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1263:27 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type arguments.

1263             afterStartup: SyncWaterfallHook<string, Chunk, string>;
                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1277:22 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type arguments.

1277             content: SyncWaterfallHook;
                          ~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1278:21 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type arguments.

1278             module: SyncWaterfallHook;
                         ~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1279:21 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type arguments.

1279             render: SyncWaterfallHook;
                         ~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1280:22 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type arguments.

1280             package: SyncWaterfallHook;
                          ~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1281:19 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type arguments.

1281             hash: SyncHook;
                       ~~~~~~~~

node_modules/@types/webpack/index.d.ts:1375:25 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type arguments.

1375             shouldEmit: SyncBailHook<Compilation>;
                             ~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1377:29 - error TS2707: Generic type 'AsyncSeriesHook<T, AdditionalOptions>' requires between 1 and 2 type arguments.

1377             additionalPass: AsyncSeriesHook;
                                 ~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1393:25 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type arguments.

1393             watchClose: SyncHook;
                             ~~~~~~~~

node_modules/@types/webpack/index.d.ts:1394:26 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type arguments.

1394             environment: SyncHook;
                              ~~~~~~~~

node_modules/@types/webpack/index.d.ts:1395:31 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type arguments.

1395             afterEnvironment: SyncHook;
                                   ~~~~~~~~

node_modules/@types/webpack/index.d.ts:1398:26 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type arguments.

1398             entryOption: SyncBailHook;
                              ~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1418:25 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type arguments.

1418             watchClose: SyncHook;
                             ~~~~~~~~

node_modules/@types/webpack/index.d.ts:1485:24 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type arguments.

1485         _pluginCompat: SyncBailHook<compilation.Compilation>;
                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:32:3 - error TS2305: Module '"tapable"' has no exported member 'Tapable'.

32   Tapable,
     ~~~~~~~

node_modules/@types/webpack/index.d.ts:1081:23 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type arguments.

1081             resolver: SyncWaterfallHook;
                           ~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1082:22 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type arguments.

1082             factory: SyncWaterfallHook;
                          ~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1083:28 - error TS2707: Generic type 'AsyncSeriesWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type arguments.

1083             beforeResolve: AsyncSeriesWaterfallHook;
                                ~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1084:27 - error TS2707: Generic type 'AsyncSeriesWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type arguments.

1084             afterResolve: AsyncSeriesWaterfallHook;
                               ~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1085:27 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type arguments.

1085             createModule: SyncBailHook;
                               ~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1086:21 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type arguments.

1086             module: SyncWaterfallHook;
                         ~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1087:27 - error TS2314: Generic type 'HookMap<H>' requires 1 type argument(s).

1087             createParser: HookMap;
                               ~~~~~~~

node_modules/@types/webpack/index.d.ts:1089:30 - error TS2314: Generic type 'HookMap<H>' requires 1 type argument(s).

1089             createGenerator: HookMap;
                                  ~~~~~~~

node_modules/@types/webpack/index.d.ts:1090:24 - error TS2314: Generic type 'HookMap<H>' requires 1 type argument(s).

1090             generator: HookMap;
                            ~~~~~~~
...
...
...
node_modules/@types/webpack/index.d.ts:1395:31 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type arguments.

1395             afterEnvironment: SyncHook;
                                   ~~~~~~~~

node_modules/@types/webpack/index.d.ts:1398:26 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type arguments.

1398             entryOption: SyncBailHook;
                              ~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1418:25 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type arguments.

1418             watchClose: SyncHook;
                             ~~~~~~~~

node_modules/@types/webpack/index.d.ts:1485:24 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type arguments.

1485         _pluginCompat: SyncBailHook<compilation.Compilation>;
                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Found 267 errors.

igorpupkinable avatar Jul 15 '22 11:07 igorpupkinable

this is being worked on https://github.com/styleguidist/react-styleguidist/pull/1996

ThomasRoest avatar Aug 10 '22 07:08 ThomasRoest