Skip to content

node_modules not ignored even when provided in exclude #775

@BartusZak

Description

@BartusZak

Current behavior

Fallowed https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/tree/main/examples/babel-loader and can't make it right :(

Running

yarn start -> webpack serve --env NODE_ENV=development --progress --color returns

Found 120 errors in 109792 ms.

Terminal output
<i> [webpack-dev-server] [HPM] Proxy created: /api  -> https://api.local.dev.TEST.xyz
<i> [webpack-dev-server] Project is running at:
<i> [webpack-dev-server] Loopback: http://localhost:3000/
<i> [webpack-dev-server] On Your Network (IPv4): 
<i> [webpack-dev-server] On Your Network (IPv6): 
<i> [webpack-dev-server] Content not from webpack is served from 'C:\Users\test\public\assets' directory
<i> [webpack-dev-server] 404s will fallback to '/index.html'
hidden assets 732 KiB 107 assets
assets by status 28.6 MiB [emitted]
assets by path locales/ 78.5 KiB
  assets by path locales/en-GB/*.json 50.3 KiB 16 assets
  assets by path locales/pl-PL/*.json 28.2 KiB
    asset locales/pl-PL/permissions-privileges.a2aee5386ce511553cba.json 7.7 KiB [emitted] [immutable] [from: public/assets/locales/pl-PL/permissions-privileges.json] [copied]
    + 9 assets
assets by chunk 28.5 MiB (name: main)
  asset main.js 27.6 MiB [emitted] (name: main)
  asset main.css 858 KiB [emitted] (name: main)
asset favicon/favicon.ico 14.7 KiB [emitted] [from: public/assets/favicon/favicon.ico] [copied]
asset locales-manifest.json 7.28 KiB [emitted]
asset ajax-loader.fb6f3c230cb846e25247dfaa1da94d8f.gif 4.08 KiB [emitted] (auxiliary name: main)
asset index.html 895 bytes [emitted]
orphan modules 3.43 MiB (javascript) 13 KiB (runtime) [orphan] 799 modules
runtime modules 69.9 KiB 42 modules
javascript modules 7.4 MiB
modules by path ./node_modules/ 4.83 MiB 1755 modules
modules by path ./src/ 2.57 MiB 1253 modules
css modules 856 KiB
modules by path ./src/assets/styles/ 843 KiB
  css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!./src/assets/styles/semantic-ui.css (2) 843 KiB [built] [code generated]
  css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!./src/assets/styles/semantic-ui.css (1) 103 bytes [built] [code generated]
  css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!./src/assets/styles/semantic-ui.css 99 bytes [built] [code generated]
modules by path ./node_modules/ 12.7 KiB
  css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!./node_modules/react-toastify/dist/ReactToastify.min.css 7.51 KiB [built] [code generated]
  css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!./node_modules/slick-carousel/slick/slick-theme.css 3.42 KiB [built] [code generated]
  css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!./node_modules/slick-carousel/slick/slick.css 1.73 KiB [built] [code generated]
webpack 5.74.0 compiled successfully in 30319 ms
Type-checking in progress...
ERROR in ./node_modules/@types/jest/index.d.ts:416:62
TS1005: ']' expected.
  414 |     type ResolvedValue<T> = T extends PromiseLike<infer U> ? U | T : never;
  415 |     // see https://github.com/Microsoft/TypeScript/issues/25215
> 416 |     type NonFunctionPropertyNames<T> = keyof { [K in keyof T as T[K] extends Func ? never : K]: T[K]; };
      |                                                              ^^
  417 |     type GetAccessor = 'get';
  418 |     type SetAccessor = 'set';
  419 |     type PropertyAccessors<M extends keyof T, T extends {}> = M extends NonFunctionPropertyNames<Required<T>> ? GetAccessor | SetAccessor : never;

ERROR in ./node_modules/@types/jest/index.d.ts:416:65
TS1005: ';' expected.
  414 |     type ResolvedValue<T> = T extends PromiseLike<infer U> ? U | T : never;
  415 |     // see https://github.com/Microsoft/TypeScript/issues/25215
> 416 |     type NonFunctionPropertyNames<T> = keyof { [K in keyof T as T[K] extends Func ? never : K]: T[K]; };
      |                                                                 ^
  417 |     type GetAccessor = 'get';
  418 |     type SetAccessor = 'set';
  419 |     type PropertyAccessors<M extends keyof T, T extends {}> = M extends NonFunctionPropertyNames<Required<T>> ? GetAccessor | SetAccessor : never;

ERROR in ./node_modules/@types/jest/index.d.ts:416:70
TS1005: ';' expected.
  414 |     type ResolvedValue<T> = T extends PromiseLike<infer U> ? U | T : never;
  415 |     // see https://github.com/Microsoft/TypeScript/issues/25215
> 416 |     type NonFunctionPropertyNames<T> = keyof { [K in keyof T as T[K] extends Func ? never : K]: T[K]; };
      |                                                                      ^^^^^^^
  417 |     type GetAccessor = 'get';
  418 |     type SetAccessor = 'set';
  419 |     type PropertyAccessors<M extends keyof T, T extends {}> = M extends NonFunctionPropertyNames<Required<T>> ? GetAccessor | SetAccessor : never;

ERROR in ./node_modules/@types/jest/index.d.ts:416:94
TS1005: ';' expected.
  414 |     type ResolvedValue<T> = T extends PromiseLike<infer U> ? U | T : never;
  415 |     // see https://github.com/Microsoft/TypeScript/issues/25215
> 416 |     type NonFunctionPropertyNames<T> = keyof { [K in keyof T as T[K] extends Func ? never : K]: T[K]; };
      |                                                                                              ^
  417 |     type GetAccessor = 'get';
  418 |     type SetAccessor = 'set';
  419 |     type PropertyAccessors<M extends keyof T, T extends {}> = M extends NonFunctionPropertyNames<Required<T>> ? GetAccessor | SetAccessor : never;

ERROR in ./node_modules/@types/jest/index.d.ts:416:95
TS1128: Declaration or statement expected.
  414 |     type ResolvedValue<T> = T extends PromiseLike<infer U> ? U | T : never;
  415 |     // see https://github.com/Microsoft/TypeScript/issues/25215
> 416 |     type NonFunctionPropertyNames<T> = keyof { [K in keyof T as T[K] extends Func ? never : K]: T[K]; };
      |                                                                                               ^
  417 |     type GetAccessor = 'get';
  418 |     type SetAccessor = 'set';
  419 |     type PropertyAccessors<M extends keyof T, T extends {}> = M extends NonFunctionPropertyNames<Required<T>> ? GetAccessor | SetAccessor : never;

ERROR in ./node_modules/@types/jest/index.d.ts:420:50
TS1005: ']' expected.
  418 |     type SetAccessor = 'set';
  419 |     type PropertyAccessors<M extends keyof T, T extends {}> = M extends NonFunctionPropertyNames<Required<T>> ? GetAccessor | SetAccessor : never;
> 420 |     type FunctionProperties<T> = { [K in keyof T as T[K] extends (...args: any[]) => any ? K : never]: T[K] };
      |                                                  ^^
  421 |     type FunctionPropertyNames<T> = keyof FunctionProperties<T>;
  422 |     type ConstructorPropertyNames<T> = { [K in keyof T]: T[K] extends Constructor ? K : never }[keyof T] &
  423 |         string;

ERROR in ./node_modules/@types/jest/index.d.ts:420:53
TS1005: ';' expected.
  418 |     type SetAccessor = 'set';
  419 |     type PropertyAccessors<M extends keyof T, T extends {}> = M extends NonFunctionPropertyNames<Required<T>> ? GetAccessor | SetAccessor : never;
> 420 |     type FunctionProperties<T> = { [K in keyof T as T[K] extends (...args: any[]) => any ? K : never]: T[K] };
      |                                                     ^
  421 |     type FunctionPropertyNames<T> = keyof FunctionProperties<T>;
  422 |     type ConstructorPropertyNames<T> = { [K in keyof T]: T[K] extends Constructor ? K : never }[keyof T] &
  423 |         string;

ERROR in ./node_modules/@types/jest/index.d.ts:420:58
TS1005: ';' expected.
  418 |     type SetAccessor = 'set';
  419 |     type PropertyAccessors<M extends keyof T, T extends {}> = M extends NonFunctionPropertyNames<Required<T>> ? GetAccessor | SetAccessor : never;
> 420 |     type FunctionProperties<T> = { [K in keyof T as T[K] extends (...args: any[]) => any ? K : never]: T[K] };
      |                                                          ^^^^^^^
  421 |     type FunctionPropertyNames<T> = keyof FunctionProperties<T>;
  422 |     type ConstructorPropertyNames<T> = { [K in keyof T]: T[K] extends Constructor ? K : never }[keyof T] &
  423 |         string;

ERROR in ./node_modules/@types/jest/index.d.ts:420:101
TS1005: ';' expected.
  418 |     type SetAccessor = 'set';
  419 |     type PropertyAccessors<M extends keyof T, T extends {}> = M extends NonFunctionPropertyNames<Required<T>> ? GetAccessor | SetAccessor : never;
> 420 |     type FunctionProperties<T> = { [K in keyof T as T[K] extends (...args: any[]) => any ? K : never]: T[K] };
      |                                                                                                     ^
  421 |     type FunctionPropertyNames<T> = keyof FunctionProperties<T>;
  422 |     type ConstructorPropertyNames<T> = { [K in keyof T]: T[K] extends Constructor ? K : never }[keyof T] &
  423 |         string;

ERROR in ./node_modules/@types/jest/index.d.ts:420:102
TS1128: Declaration or statement expected.
  418 |     type SetAccessor = 'set';
  419 |     type PropertyAccessors<M extends keyof T, T extends {}> = M extends NonFunctionPropertyNames<Required<T>> ? GetAccessor | SetAccessor : never;
> 420 |     type FunctionProperties<T> = { [K in keyof T as T[K] extends (...args: any[]) => any ? K : never]: T[K] };
      |                                                                                                      ^
  421 |     type FunctionPropertyNames<T> = keyof FunctionProperties<T>;
  422 |     type ConstructorPropertyNames<T> = { [K in keyof T]: T[K] extends Constructor ? K : never }[keyof T] &
  423 |         string;

ERROR in ./node_modules/@types/jest/index.d.ts:420:109
TS1128: Declaration or statement expected.
  418 |     type SetAccessor = 'set';
  419 |     type PropertyAccessors<M extends keyof T, T extends {}> = M extends NonFunctionPropertyNames<Required<T>> ? GetAccessor | SetAccessor : never;
> 420 |     type FunctionProperties<T> = { [K in keyof T as T[K] extends (...args: any[]) => any ? K : never]: T[K] };
      |                                                                                                             ^
  421 |     type FunctionPropertyNames<T> = keyof FunctionProperties<T>;
  422 |     type ConstructorPropertyNames<T> = { [K in keyof T]: T[K] extends Constructor ? K : never }[keyof T] &
  423 |         string;

ERROR in ./node_modules/@types/jest/index.d.ts:1380:1
TS1128: Declaration or statement expected.
  1378 |         results: Array<MockResult<T>>;
  1379 |     }
> 1380 | }
       | ^
  1381 |
  1382 | // Jest ships with a copy of Jasmine. They monkey-patch its APIs and divergence/deprecation are expected.
  1383 | // Relevant parts of Jasmine's API are below so they can be changed and removed over time.

ERROR in ./node_modules/@types/vanillajs-datepicker/Datepicker.d.ts:11:7
TS1110: Type expected.
   9 | export type DatepickerOptionsOrientationHorizontal = 'left' | 'center' | 'right' | 'auto';
  10 | export type DatepickerOptionsOrientation =
> 11 |     | ${DatepickerOptionsOrientationVertical} ${DatepickerOptionsOrientationHorizontal}
     |       ^^^
  12 |     | 'auto';
  13 |
  14 | export interface DatepickerOptions {

ERROR in ./node_modules/ts-toolbelt/out/Any/At.d.ts:24:121
TS1110: Type expected.
  22 |  * 
  23 |  */
> 24 | export declare type At<A extends any, K extends Key> = A extends List ? number extends A['length'] ? K extends number | ${number} ? A[never] | undefined : undefined : K extends keyof A ? A[K] : undefined : unknown extends A ? unknown : K extends keyof A ? A[K] : undefined;
     |                                                                                                                         ^^^
  25 |

ERROR in ./node_modules/ts-toolbelt/out/Any/At.d.ts:24:168
TS1005: ';' expected.
  22 |  * 
  23 |  */
> 24 | export declare type At<A extends any, K extends Key> = A extends List ? number extends A['length'] ? K extends number | ${number} ? A[never] | undefined : undefined : K extends keyof A ? A[K] : undefined : unknown extends A ? unknown : K extends keyof A ? A[K] : undefined;
     |
^
  25 |

ERROR in ./node_modules/ts-toolbelt/out/Any/At.d.ts:24:172
TS1005: ';' expected.
  22 |  * 
  23 |  */
> 24 | export declare type At<A extends any, K extends Key> = A extends List ? number extends A['length'] ? K extends number | ${number} ? A[never] | undefined : undefined : K extends keyof A ? A[K] : undefined : unknown extends A ? unknown : K extends keyof A ? A[K] : undefined;
     |
    ^^^^^^^
  25 |

ERROR in ./node_modules/ts-toolbelt/out/Any/At.d.ts:24:186
TS1005: ';' expected.
  22 |  * 
  23 |  */
> 24 | export declare type At<A extends any, K extends Key> = A extends List ? number extends A['length'] ? K extends number | ${number} ? A[never] | undefined : undefined : K extends keyof A ? A[K] : undefined : unknown extends A ? unknown : K extends keyof A ? A[K] : undefined;
     |
                  ^
  25 |

ERROR in ./node_modules/ts-toolbelt/out/Any/At.d.ts:24:207
TS1005: ';' expected.
  22 |  * 
  23 |  */
> 24 | export declare type At<A extends any, K extends Key> = A extends List ? number extends A['length'] ? K extends number | ${number} ? A[never] | undefined : undefined : K extends keyof A ? A[K] : undefined : unknown extends A ? unknown : K extends keyof A ? A[K] : undefined;
     |
                                       ^
  25 |

ERROR in ./node_modules/ts-toolbelt/out/Any/At.d.ts:24:217
TS1005: ';' expected.
  22 |  * 
  23 |  */
> 24 | export declare type At<A extends any, K extends Key> = A extends List ? number extends A['length'] ? K extends number | ${number} ? A[never] | undefined : undefined : K extends keyof A ? A[K] : undefined : unknown extends A ? unknown : K extends keyof A ? A[K] : undefined;
     |
                                                 ^^^^^^^
  25 |

ERROR in ./node_modules/ts-toolbelt/out/Any/At.d.ts:24:241
TS1005: ';' expected.
  22 |  * 
  23 |  */
> 24 | export declare type At<A extends any, K extends Key> = A extends List ? number extends A['length'] ? K extends number | ${number} ? A[never] | undefined : undefined : K extends keyof A ? A[K] : undefined : unknown extends A ? unknown : K extends keyof A ? A[K] : undefined;
     |
                                                                         ^^^^^^^
  25 |

ERROR in ./node_modules/ts-toolbelt/out/Any/At.d.ts:24:255
TS1005: ';' expected.
  22 |  * 
  23 |  */
> 24 | export declare type At<A extends any, K extends Key> = A extends List ? number extends A['length'] ? K extends number | ${number} ? A[never] | undefined : undefined : K extends keyof A ? A[K] : undefined : unknown extends A ? unknown : K extends keyof A ? A[K] : undefined;
     |
                                                                                       ^
  25 |

ERROR in ./node_modules/ts-toolbelt/out/Iteration/Iteration.d.ts:5:10
TS1005: ',' expected.
  3 |  */
  4 | export declare type Iteration = [
> 5 |     value: number,
    |          ^
  6 |     sign: '-' | '0' | '+',
  7 |     prev: keyof IterationMap,
  8 |     next: keyof IterationMap,

ERROR in ./node_modules/ts-toolbelt/out/Iteration/Iteration.d.ts:6:9
TS1005: ',' expected.
  4 | export declare type Iteration = [
  5 |     value: number,
> 6 |     sign: '-' | '0' | '+',
    |         ^
  7 |     prev: keyof IterationMap,
  8 |     next: keyof IterationMap,
  9 |     oppo: keyof IterationMap

ERROR in ./node_modules/ts-toolbelt/out/Iteration/Iteration.d.ts:7:9
TS1005: ',' expected.
   5 |     value: number,
   6 |     sign: '-' | '0' | '+',
>  7 |     prev: keyof IterationMap,
     |         ^
   8 |     next: keyof IterationMap,
   9 |     oppo: keyof IterationMap
  10 | ];

ERROR in ./node_modules/ts-toolbelt/out/Iteration/Iteration.d.ts:8:9
TS1005: ',' expected.
   6 |     sign: '-' | '0' | '+',
   7 |     prev: keyof IterationMap,
>  8 |     next: keyof IterationMap,
     |         ^
   9 |     oppo: keyof IterationMap
  10 | ];
  11 | export declare type IterationMap = {

ERROR in ./node_modules/ts-toolbelt/out/Iteration/Iteration.d.ts:9:9
TS1005: ',' expected.
   7 |     prev: keyof IterationMap,
   8 |     next: keyof IterationMap,
>  9 |     oppo: keyof IterationMap
     |         ^
  10 | ];
  11 | export declare type IterationMap = {
  12 |     '__': [number, '-' | '0' | '+', '__', '__', '__'];

ERROR in ./node_modules/ts-toolbelt/out/Iteration/IterationOf.d.ts:20:53
TS1110: Type expected.
  18 |  * 
  19 |  */
> 20 | export declare type IterationOf<N extends number> = ${N} extends keyof IterationMap ? IterationMap[${N}] : IterationMap['__'];
     |                                                     ^^^
  21 |

ERROR in ./node_modules/ts-toolbelt/out/Iteration/IterationOf.d.ts:20:60
TS1005: ';' expected.
  18 |  * 
  19 |  */
> 20 | export declare type IterationOf<N extends number> = ${N} extends keyof IterationMap ? IterationMap[${N}] : IterationMap['__'];
     |                                                            ^^^^^^^
  21 |

ERROR in ./node_modules/ts-toolbelt/out/Iteration/IterationOf.d.ts:20:74
TS1005: ';' expected.
  18 |  * 
  19 |  */
> 20 | export declare type IterationOf<N extends number> = ${N} extends keyof IterationMap ? IterationMap[${N}] : IterationMap['__'];
     |                                                                          ^^^^^^^^^^^^
  21 |

ERROR in ./node_modules/ts-toolbelt/out/Iteration/Key.d.ts:16:48
TS1110: Type expected.
  14 |  * 
  15 |  */
> 16 | export declare type Key<I extends Iteration> = ${I[0]};
     |                                                ^^^
  17 |

ERROR in ./node_modules/ts-toolbelt/out/List/AtLeast.d.ts:25:94
TS1005: '>' expected.
  23 |  * 
  24 |  */
> 25 | export declare type AtLeast<L extends List, K extends Key = Keys<L>> = OAtLeast<ObjectOf<L>, ${K & number} | K> extends infer U ? U extends unknown ? _ListOf<U & {}> : never : never;
     |                                                                                              ^^^
  26 |

ERROR in ./node_modules/ts-toolbelt/out/List/AtLeast.d.ts:25:115
TS1109: Expression expected.
  23 |  * 
  24 |  */
> 25 | export declare type AtLeast<L extends List, K extends Key = Keys<L>> = OAtLeast<ObjectOf<L>, ${K & number} | K> extends infer U ? U extends unknown ? _ListOf<U & {}> : never : never;
     |                                                                                                                   ^^^^^^^
  26 |

ERROR in ./node_modules/ts-toolbelt/out/List/AtLeast.d.ts:25:129
TS1005: ';' expected.
  23 |  * 
  24 |  */
> 25 | export declare type AtLeast<L extends List, K extends Key = Keys<L>> = OAtLeast<ObjectOf<L>, ${K & number} | K> extends infer U ? U extends unknown ? _ListOf<U & {}> : never : never;
     |                                                                                                                                 ^
  26 |

ERROR in ./node_modules/ts-toolbelt/out/List/AtLeast.d.ts:25:135
TS1005: ':' expected.
  23 |  * 
  24 |  */
> 25 | export declare type AtLeast<L extends List, K extends Key = Keys<L>> = OAtLeast<ObjectOf<L>, ${K & number} | K> extends infer U ? U extends unknown ? _ListOf<U & {}> : never : never;
     |                                                                                                                                       ^^^^^^^
  26 |

ERROR in ./node_modules/ts-toolbelt/out/List/AtLeast.d.ts:25:169
TS1005: '(' expected.
  23 |  * 
  24 |  */
> 25 | export declare type AtLeast<L extends List, K extends Key = Keys<L>> = OAtLeast<ObjectOf<L>, ${K & number} | K> extends infer U ? U extends unknown ? _ListOf<U & {}> : never : never;
     |
 ^
  26 |

ERROR in ./node_modules/ts-toolbelt/out/List/AtLeast.d.ts:25:177
TS1005: ',' expected.
  23 |  * 
  24 |  */
> 25 | export declare type AtLeast<L extends List, K extends Key = Keys<L>> = OAtLeast<ObjectOf<L>, ${K & number} | K> extends infer U ? U extends unknown ? _ListOf<U & {}> : never : never;
     |
         ^
  26 |

ERROR in ./node_modules/ts-toolbelt/out/List/AtLeast.d.ts:25:184
TS1005: ')' expected.
  23 |  * 
  24 |  */
> 25 | export declare type AtLeast<L extends List, K extends Key = Keys<L>> = OAtLeast<ObjectOf<L>, ${K & number} | K> extends infer U ? U extends unknown ? _ListOf<U & {}> : never : never;
     |
                ^
  26 |

ERROR in ./node_modules/ts-toolbelt/out/List/Either.d.ts:18:110
TS1005: '>' expected.
  16 |  * 
  17 |  */
> 18 | export declare type Either<L extends List, K extends Key, strict extends Boolean = 1> = OEither<ObjectOf<L>, ${K & number} | K, strict> extends infer OE ? OE extends unknown ? _ListOf<OE & {}> : never : never;
     |                                                                                                              ^^^
  19 |

ERROR in ./node_modules/ts-toolbelt/out/List/Either.d.ts:18:139
TS1109: Expression expected.
  16 |  * 
  17 |  */
> 18 | export declare type Either<L extends List, K extends Key, strict extends Boolean = 1> = OEither<ObjectOf<L>, ${K & number} | K, strict> extends infer OE ? OE extends unknown ? _ListOf<OE & {}> : never : never;
     |                                                                                                                                           ^^^^^^^
  19 |

ERROR in ./node_modules/ts-toolbelt/out/List/Either.d.ts:18:153
TS1005: ';' expected.
  16 |  * 
  17 |  */
> 18 | export declare type Either<L extends List, K extends Key, strict extends Boolean = 1> = OEither<ObjectOf<L>, ${K & number} | K, strict> extends infer OE ? OE extends unknown ? _ListOf<OE & {}> : never : never;
     |                                                                                                                                                         ^^
  19 |

ERROR in ./node_modules/ts-toolbelt/out/List/Either.d.ts:18:161
TS1005: ':' expected.
  16 |  * 
  17 |  */
> 18 | export declare type Either<L extends List, K extends Key, strict extends Boolean = 1> = OEither<ObjectOf<L>, ${K & number} | K, strict> extends infer OE ? OE extends unknown ? _ListOf<OE & {}> : never : never;
     |                                                                                                                                                                 ^^^^^^^
  19 |

ERROR in ./node_modules/ts-toolbelt/out/List/Either.d.ts:18:196
TS1005: '(' expected.
  16 |  * 
  17 |  */
> 18 | export declare type Either<L extends List, K extends Key, strict extends Boolean = 1> = OEither<ObjectOf<L>, ${K & number} | K, strict> extends infer OE ? OE extends unknown ? _ListOf<OE & {}> : never : never;
     |
                            ^
  19 |

ERROR in ./node_modules/ts-toolbelt/out/List/Either.d.ts:18:204
TS1005: ',' expected.
  16 |  * 
  17 |  */
> 18 | export declare type Either<L extends List, K extends Key, strict extends Boolean = 1> = OEither<ObjectOf<L>, ${K & number} | K, strict> extends infer OE ? OE extends unknown ? _ListOf<OE & {}> : never : never;
     |
                                    ^
  19 |

ERROR in ./node_modules/ts-toolbelt/out/List/Either.d.ts:18:211
TS1005: ')' expected.
  16 |  * 
  17 |  */
> 18 | export declare type Either<L extends List, K extends Key, strict extends Boolean = 1> = OEither<ObjectOf<L>, ${K & number} | K, strict> extends infer OE ? OE extends unknown ? _ListOf<OE & {}> : never : never;
     |
                                           ^
  19 |

ERROR in ./node_modules/ts-toolbelt/out/List/Has.d.ts:17:130
TS1005: '>' expected.
  15 |  * 
  16 |  */
> 17 | export declare type Has<L extends List, K extends Key, M extends any = any, match extends Match = 'default'> = OHas<ObjectOf<L>, ${K & number} | K, M, match>;     
     |                                                                                                                                  ^^^
  18 |

ERROR in ./node_modules/ts-toolbelt/out/List/Has.d.ts:17:160
TS1109: Expression expected.
  15 |  * 
  16 |  */
> 17 | export declare type Has<L extends List, K extends Key, M extends any = any, match extends Match = 'default'> = OHas<ObjectOf<L>, ${K & number} | K, M, match>;     
     |                                                                                                                                                                ^     
  18 |

ERROR in ./node_modules/ts-toolbelt/out/List/NonNullable.d.ts:40:126
TS1005: '>' expected.
  38 |  * 
  39 |  */
> 40 | export declare type NonNullable<L extends List, K extends Key = Key, depth extends Depth = 'flat'> = Cast<NonNullablePart<L, ${K & number} | K, depth>, List>;
     |                                                                                                                              ^^^
  41 | export {};
  42 |

ERROR in ./node_modules/ts-toolbelt/out/List/NonNullable.d.ts:40:153
TS1109: Expression expected.
  38 |  * 
  39 |  */
> 40 | export declare type NonNullable<L extends List, K extends Key = Key, depth extends Depth = 'flat'> = Cast<NonNullablePart<L, ${K & number} | K, depth>, List>;     
     |                                                                                                                                                         ^
  41 | export {};
  42 |

ERROR in ./node_modules/ts-toolbelt/out/List/NonNullable.d.ts:40:160
TS1109: Expression expected.
  38 |  * 
  39 |  */
> 40 | export declare type NonNullable<L extends List, K extends Key = Key, depth extends Depth = 'flat'> = Cast<NonNullablePart<L, ${K & number} | K, depth>, List>;     
     |                                                                                                                                                                ^     
  41 | export {};
  42 |

ERROR in ./node_modules/ts-toolbelt/out/List/Nullable.d.ts:16:84
TS1005: '>' expected.
  14 |  * 
  15 |  */
> 16 | export declare type Nullable<L extends List, K extends Key = Key> = Cast<Update<L, ${K & number} | K, x | null | undefined>, List>;
     |                                                                                    ^^^
  17 |

ERROR in ./node_modules/ts-toolbelt/out/List/Nullable.d.ts:16:126
TS1109: Expression expected.
  14 |  * 
  15 |  */
> 16 | export declare type Nullable<L extends List, K extends Key = Key> = Cast<Update<L, ${K & number} | K, x | null | undefined>, List>;
     |                                                                                                                              ^
  17 |

ERROR in ./node_modules/ts-toolbelt/out/List/Nullable.d.ts:16:133
TS1109: Expression expected.
  14 |  * 
  15 |  */
> 16 | export declare type Nullable<L extends List, K extends Key = Key> = Cast<Update<L, ${K & number} | K, x | null | undefined>, List>;
     |                                                                                                                                     ^
  17 |

ERROR in ./node_modules/ts-toolbelt/out/List/Omit.d.ts:9:88
TS1005: '>' expected.
   7 |  * @hidden
   8 |  */
>  9 | export declare type _Omit<L extends List, K extends Key> = _ListOf<_OOmit<ObjectOf<L>, ${K & number} | K>>;
     |                                                                                        ^^^
  10 | /**
  11 |  * Remove out of L the entries of key K
  12 |  * @param L to remove from

ERROR in ./node_modules/ts-toolbelt/out/List/Omit.d.ts:9:109
TS1109: Expression expected.
   7 |  * @hidden
   8 |  */
>  9 | export declare type _Omit<L extends List, K extends Key> = _ListOf<_OOmit<ObjectOf<L>, ${K & number} | K>>;
     |                                                                                                             ^
  10 | /**
  11 |  * Remove out of L the entries of key K
  12 |  * @param L to remove from

ERROR in ./node_modules/ts-toolbelt/out/List/Pick.d.ts:9:88
TS1005: '>' expected.
   7 |  * @hidden
   8 |  */
>  9 | export declare type _Pick<L extends List, K extends Key> = _ListOf<_OPick<ObjectOf<L>, ${K & number} | K>>;
     |                                                                                        ^^^
  10 | /**
  11 |  * Extract out of L the entries of key K
  12 |  * @param L to extract from

ERROR in ./node_modules/ts-toolbelt/out/List/Pick.d.ts:9:109
TS1109: Expression expected.
   7 |  * @hidden
   8 |  */
>  9 | export declare type _Pick<L extends List, K extends Key> = _ListOf<_OPick<ObjectOf<L>, ${K & number} | K>>;
     |                                                                                                             ^
  10 | /**
  11 |  * Extract out of L the entries of key K
  12 |  * @param L to extract from

ERROR in ./node_modules/ts-toolbelt/out/List/Undefinable.d.ts:15:87
TS1005: '>' expected.
  13 |  * 
  14 |  */
> 15 | export declare type Undefinable<L extends List, K extends Key = Key> = Cast<Update<L, ${K & number} | K, x | undefined>, List>;
     |                                                                                       ^^^
  16 |

ERROR in ./node_modules/ts-toolbelt/out/List/Undefinable.d.ts:15:122
TS1109: Expression expected.
  13 |  * 
  14 |  */
> 15 | export declare type Undefinable<L extends List, K extends Key = Key> = Cast<Update<L, ${K & number} | K, x | undefined>, List>;
     |                                                                                                                          ^
  16 |

ERROR in ./node_modules/ts-toolbelt/out/List/Undefinable.d.ts:15:129
TS1109: Expression expected.
  13 |  * 
  14 |  */
> 15 | export declare type Undefinable<L extends List, K extends Key = Key> = Cast<Update<L, ${K & number} | K, x | undefined>, List>;
     |                                                                                                                                 ^
  16 |

ERROR in ./node_modules/ts-toolbelt/out/List/Update.d.ts:16:92
TS1005: '>' expected.
  14 |  * 
  15 |  */
> 16 | export declare type Update<L extends List, K extends Key, A extends any> = Cast<OUpdate<L, ${K & number} | K, A>, List>;
     |                                                                                            ^^^
  17 |

ERROR in ./node_modules/ts-toolbelt/out/List/Update.d.ts:16:115
TS1109: Expression expected.
  14 |  * 
  15 |  */
> 16 | export declare type Update<L extends List, K extends Key, A extends any> = Cast<OUpdate<L, ${K & number} | K, A>, List>;
     |                                                                                                                   ^
  17 |

ERROR in ./node_modules/ts-toolbelt/out/List/Update.d.ts:16:122
TS1109: Expression expected.
  14 |  * 
  15 |  */
> 16 | export declare type Update<L extends List, K extends Key, A extends any> = Cast<OUpdate<L, ${K & number} | K, A>, List>;
     |                                                                                                                          ^
  17 |

ERROR in ./node_modules/ts-toolbelt/out/Object/ListOf.d.ts:26:198
TS1110: Type expected.
  24 |  * @hidden
  25 |  */
> 26 | declare type __ListOf<O extends object> = number extends keyof O ? O[number][] : string extends keyof O ? O[string][] : symbol extends keyof O ? O[symbol][] : ___ListOf<O, Select<keyof O, number | ${number}>>;
     |
                              ^^^
  27 | /**
  28 |  * @hidden
  29 |  */

ERROR in ./node_modules/ts-toolbelt/out/Object/ListOf.d.ts:26:211
TS1109: Expression expected.
  24 |  * @hidden
  25 |  */
> 26 | declare type __ListOf<O extends object> = number extends keyof O ? O[number][] : string extends keyof O ? O[string][] : symbol extends keyof O ? O[symbol][] : ___ListOf<O, Select<keyof O, number | ${number}>>;
     |
                                           ^
  27 | /**
  28 |  * @hidden
  29 |  */

ERROR in ./node_modules/ts-toolbelt/out/String/Join.d.ts
TS1160: Unterminated template literal.

ERROR in ./node_modules/ts-toolbelt/out/String/Join.d.ts:7:98
TS1005: '?' expected.
   5 |  * @hidden
   6 |  */
>  7 | declare type _Join<T extends List, D extends string> = T extends [] ? '' : T extends [Literal] ? ${T[0]} : T extends [Literal, ...infer R] ? ${T[0]}${D}${_Join<R, D>} : string;
     |                                                                                                  ^^^
   8 | /**
   9 |  * Concat many literals together
  10 |  * @param T to concat

ERROR in ./node_modules/ts-toolbelt/out/String/Join.d.ts:7:108
TS1005: ';' expected.
   5 |  * @hidden
   6 |  */
>  7 | declare type _Join<T extends List, D extends string> = T extends [] ? '' : T extends [Literal] ? ${T[0]} : T extends [Literal, ...infer R] ? ${T[0]}${D}${_Join<R, D>} : string;
     |                                                                                                            ^
   8 | /**
   9 |  * Concat many literals together
  10 |  * @param T to concat

ERROR in ./node_modules/ts-toolbelt/out/String/Join.d.ts:7:112
TS1005: ';' expected.
   5 |  * @hidden
   6 |  */
>  7 | declare type _Join<T extends List, D extends string> = T extends [] ? '' : T extends [Literal] ? ${T[0]} : T extends [Literal, ...infer R] ? ${T[0]}${D}${_Join<R, D>} : string;
     |                                                                                                                ^^^^^^^
   8 | /**
   9 |  * Concat many literals together
  10 |  * @param T to concat

ERROR in ./node_modules/ts-toolbelt/out/String/Join.d.ts:7:139
TS1005: ',' expected.
   5 |  * @hidden
   6 |  */
>  7 | declare type _Join<T extends List, D extends string> = T extends [] ? '' : T extends [Literal] ? ${T[0]} : T extends [Literal, ...infer R] ? ${T[0]}${D}${_Join<R, D>} : string;
     |                                                                                                                                           ^
   8 | /**
   9 |  * Concat many literals together
  10 |  * @param T to concat

ERROR in ./node_modules/ts-toolbelt/out/String/Join.d.ts:7:169
TS1005: '(' expected.
   5 |  * @hidden
   6 |  */
>  7 | declare type _Join<T extends List, D extends string> = T extends [] ? '' : T extends [Literal] ? ${T[0]} : T extends [Literal, ...infer R] ? ${T[0]}${D}${_Join<R, D>} : string;
     |
 ^
   8 | /**
   9 |  * Concat many literals together
  10 |  * @param T to concat

ERROR in ./node_modules/ts-toolbelt/out/String/Replace.d.ts
TS1160: Unterminated template literal.

ERROR in ./node_modules/ts-toolbelt/out/String/Replace.d.ts:6:91
TS1110: Type expected.
  4 |  * @hidden
  5 |  */
> 6 | declare type _Replace<S extends string, R extends Literal, W extends Literal> = S extends ${infer BS}${R}${infer AS} ? Replace<${BS}${W}${AS}, R, W> : S;
    |                                                                                           ^^^
  7 | /**
  8 |  * Replace R with W in S
  9 |  * @param S

ERROR in ./node_modules/ts-toolbelt/out/String/Replace.d.ts:6:100
TS1005: '}' expected.
  4 |  * @hidden
  5 |  */
> 6 | declare type _Replace<S extends string, R extends Literal, W extends Literal> = S extends ${infer BS}${R}${infer AS} ? Replace<${BS}${W}${AS}, R, W> : S;
    |                                                                                                    ^^
  7 | /**
  8 |  * Replace R with W in S
  9 |  * @param S

ERROR in ./node_modules/ts-toolbelt/out/String/Replace.d.ts:6:102
TS1128: Declaration or statement expected.
  4 |  * @hidden
  5 |  */
> 6 | declare type _Replace<S extends string, R extends Literal, W extends Literal> = S extends ${infer BS}${R}${infer AS} ? Replace<${BS}${W}${AS}, R, W> : S;
    |                                                                                                      ^
  7 | /**
  8 |  * Replace R with W in S
  9 |  * @param S

ERROR in ./node_modules/ts-toolbelt/out/String/Replace.d.ts:6:104
TS1005: ';' expected.
  4 |  * @hidden
  5 |  */
> 6 | declare type _Replace<S extends string, R extends Literal, W extends Literal> = S extends ${infer BS}${R}${infer AS} ? Replace<${BS}${W}${AS}, R, W> : S;
    |                                                                                                        ^
  7 | /**
  8 |  * Replace R with W in S
  9 |  * @param S

ERROR in ./node_modules/ts-toolbelt/out/String/Replace.d.ts:6:108
TS1005: ';' expected.
  4 |  * @hidden
  5 |  */
> 6 | declare type _Replace<S extends string, R extends Literal, W extends Literal> = S extends ${infer BS}${R}${infer AS} ? Replace<${BS}${W}${AS}, R, W> : S;
    |                                                                                                            ^
  7 | /**
  8 |  * Replace R with W in S
  9 |  * @param S

ERROR in ./node_modules/ts-toolbelt/out/String/Replace.d.ts:6:115
TS1005: ';' expected.
  4 |  * @hidden
  5 |  */
> 6 | declare type _Replace<S extends string, R extends Literal, W extends Literal> = S extends ${infer BS}${R}${infer AS} ? Replace<${BS}${W}${AS}, R, W> : S;
    |                                                                                                                   ^^
  7 | /**
  8 |  * Replace R with W in S
  9 |  * @param S

ERROR in ./node_modules/ts-toolbelt/out/String/Replace.d.ts:6:131
TS1005: ';' expected.
  4 |  * @hidden
  5 |  */
> 6 | declare type _Replace<S extends string, R extends Literal, W extends Literal> = S extends ${infer BS}${R}${infer AS} ? Replace<${BS}${W}${AS}, R, W> : S;
    |                                                                                                                                   ^
  7 | /**
  8 |  * Replace R with W in S
  9 |  * @param S

ERROR in ./node_modules/ts-toolbelt/out/String/Replace.d.ts:6:132
TS1005: ';' expected.
  4 |  * @hidden
  5 |  */
> 6 | declare type _Replace<S extends string, R extends Literal, W extends Literal> = S extends ${infer BS}${R}${infer AS} ? Replace<${BS}${W}${AS}, R, W> : S;
    |                                                                                                                                    ^
  7 | /**
  8 |  * Replace R with W in S
  9 |  * @param S

ERROR in ./node_modules/ts-toolbelt/out/String/Replace.d.ts:6:137
TS1005: ';' expected.
  4 |  * @hidden
  5 |  */
> 6 | declare type _Replace<S extends string, R extends Literal, W extends Literal> = S extends ${infer BS}${R}${infer AS} ? Replace<${BS}${W}${AS}, R, W> : S;
    |                                                                                                                                         ^
  7 | /**
  8 |  * Replace R with W in S
  9 |  * @param S

ERROR in ./node_modules/ts-toolbelt/out/String/Replace.d.ts:6:141
TS1005: ';' expected.
  4 |  * @hidden
  5 |  */
> 6 | declare type _Replace<S extends string, R extends Literal, W extends Literal> = S extends ${infer BS}${R}${infer AS} ? Replace<${BS}${W}${AS}, R, W> : S;
    |                                                                                                                                             ^
  7 | /**
  8 |  * Replace R with W in S
  9 |  * @param S

ERROR in ./node_modules/ts-toolbelt/out/String/Replace.d.ts:8:13
TS1005: ';' expected.
   6 | declare type _Replace<S extends string, R extends Literal, W extends Literal> = S extends ${infer BS}${R}${infer AS} ? Replace<${BS}${W}${AS}, R, W> : S;        
   7 | /**
>  8 |  * Replace R with W in S
     |             ^
   9 |  * @param S
  10 |  * @param R
  11 |  * @param W

ERROR in ./node_modules/ts-toolbelt/out/String/Replace.d.ts:8:22
TS1005: ';' expected.
   6 | declare type _Replace<S extends string, R extends Literal, W extends Literal> = S extends ${infer BS}${R}${infer AS} ? Replace<${BS}${W}${AS}, R, W> : S;        
   7 | /**
>  8 |  * Replace R with W in S
     |                      ^
   9 |  * @param S
  10 |  * @param R
  11 |  * @param W

ERROR in ./node_modules/ts-toolbelt/out/String/Replace.d.ts:8:29
TS1005: ';' expected.
   6 | declare type _Replace<S extends string, R extends Literal, W extends Literal> = S extends ${infer BS}${R}${infer AS} ? Replace<${BS}${W}${AS}, R, W> : S;        
   7 | /**
>  8 |  * Replace R with W in S
     |                             ^
   9 |  * @param S
  10 |  * @param R
  11 |  * @param W

ERROR in ./node_modules/ts-toolbelt/out/String/Split.d.ts
TS1160: Unterminated template literal.

ERROR in ./node_modules/ts-toolbelt/out/String/Split.d.ts:6:95
TS1110: Type expected.
  4 |  * @ignore
  5 |  */
> 6 | declare type __Split<S extends string, D extends string, T extends string[] = []> = S extends ${infer BS}${D}${infer AS} ? __Split<AS, D, [...T, BS]> : [...T, S];  
    |                                                                                               ^^^
  7 | /**
  8 |  * @hidden
  9 |  */

ERROR in ./node_modules/ts-toolbelt/out/String/Split.d.ts:6:104
TS1005: '}' expected.
  4 |  * @ignore
  5 |  */
> 6 | declare type __Split<S extends string, D extends string, T extends string[] = []> = S extends ${infer BS}${D}${infer AS} ? __Split<AS, D, [...T, BS]> : [...T, S];  
    |                                                                                                        ^^
  7 | /**
  8 |  * @hidden
  9 |  */

ERROR in ./node_modules/ts-toolbelt/out/String/Split.d.ts:6:106
TS1128: Declaration or statement expected.
  4 |  * @ignore
  5 |  */
> 6 | declare type __Split<S extends string, D extends string, T extends string[] = []> = S extends ${infer BS}${D}${infer AS} ? __Split<AS, D, [...T, BS]> : [...T, S];  
    |                                                                                                          ^
  7 | /**
  8 |  * @hidden
  9 |  */

ERROR in ./node_modules/ts-toolbelt/out/String/Split.d.ts:6:108
TS1005: ';' expected.
  4 |  * @ignore
  5 |  */
> 6 | declare type __Split<S extends string, D extends string, T extends string[] = []> = S extends ${infer BS}${D}${infer AS} ? __Split<AS, D, [...T, BS]> : [...T, S];  
    |                                                                                                            ^
  7 | /**
  8 |  * @hidden
  9 |  */

ERROR in ./node_modules/ts-toolbelt/out/String/Split.d.ts:6:112
TS1005: ';' expected.
  4 |  * @ignore
  5 |  */
> 6 | declare type __Split<S extends string, D extends string, T extends string[] = []> = S extends ${infer BS}${D}${infer AS} ? __Split<AS, D, [...T, BS]> : [...T, S];  
    |                                                                                                                ^
  7 | /**
  8 |  * @hidden
  9 |  */

ERROR in ./node_modules/ts-toolbelt/out/String/Split.d.ts:6:119
TS1005: ';' expected.
  4 |  * @ignore
  5 |  */
> 6 | declare type __Split<S extends string, D extends string, T extends string[] = []> = S extends ${infer BS}${D}${infer AS} ? __Split<AS, D, [...T, BS]> : [...T, S];  
    |                                                                                                                       ^^
  7 | /**
  8 |  * @hidden
  9 |  */

ERROR in ./node_modules/ts-toolbelt/out/String/Split.d.ts:12:11
TS1005: ';' expected.
  10 | declare type _Split<S extends string, D extends string = ''> = D extends '' ? Pop<__Split<S, D>> : __Split<S, D>;
  11 | /**
> 12 |  * Split S by D into a [[List]]
     |           ^
  13 |  * @param S to split up
  14 |  * @param D to split at
  15 |  */

ERROR in ./node_modules/ts-toolbelt/out/String/Split.d.ts:12:18
TS1005: ';' expected.
  10 | declare type _Split<S extends string, D extends string = ''> = D extends '' ? Pop<__Split<S, D>> : __Split<S, D>;
  11 | /**
> 12 |  * Split S by D into a [[List]]
     |                  ^
  13 |  * @param S to split up
  14 |  * @param D to split at
  15 |  */

  .... more errors but not from node_modules directory (expected ones)

Running tsc

Found 65 errors in 46 files.

Expected behavior

There are too many TypeScript related errors from node_modules directory, even when node_modules is excluded in tsconfig.json.

Environment

  • fork-ts-checker-webpack-plugin: 7.2.13
  • typescript: 3.8.2
  • eslint: 6.8.0
  • webpack: 5.74.0
  • os: Windows 10

Checked already:

tsconfig.json

{
    "compilerOptions": {
        "skipLibCheck": true,
        "skipDefaultLibCheck": true,
        "outDir": "dist",
        "baseUrl": "src",
        "module": "esnext",
        "moduleResolution": "node",
        "target": "es2019",
        "typeRoots": [
          "node_modules/@types",
          "src/typings"
        ],
        "jsx": "react",
        "incremental": true,
        "noEmit": true,
        "pretty": true,
        "sourceMap": true,
        "esModuleInterop": true,
        "downlevelIteration": false,
        "forceConsistentCasingInFileNames": true,
        "alwaysStrict": true,
        "allowUnreachableCode": false,
        "allowUnusedLabels": false,
        "noImplicitReturns": true,
        "noImplicitThis": true,
        "noImplicitAny": true,
        "noUnusedLocals": true,
        "strictBindCallApply": true,
        "strictFunctionTypes": false,
        "strictNullChecks": true,
        "suppressImplicitAnyIndexErrors": true,
        "resolveJsonModule": true
    },
    "include": ["./src"],
    "exclude": [
        "public",
        "node_modules",
        "coverage",
        ".storybook",
        "e2e",
        "src/test/testSetup.ts",
        ".cache",
        ".docker",
        "dist",
        "docs",
        "nginx",
        "stories",
        "**/*.spec.ts",
        "**/*.spec.tsx",
        "src/test/**/*"
    ]
}

webpack.config.ts

        new ForkTsCheckerWebpackPlugin({
            typescript: {
                diagnosticOptions: {
                    semantic: true,
                    syntactic: true,
                },
                build: true,
                mode: 'write-references',
                memoryLimit: 4096,
                configOverwrite: { compilerOptions: { skipLibCheck: true } }
            },
        }),

Please help me understand what i'm doing wrong.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions