Skip to content
This repository was archived by the owner on Nov 25, 2025. It is now read-only.
This repository was archived by the owner on Nov 25, 2025. It is now read-only.

Extract method fails when using new @types/node #115

@ddamato

Description

@ddamato

I had to revert to @types/node@12.12.22 in order to get this to work. Otherwise, it blows up with the following.

[3:20:10 PM] erro: authentic/node_modules/@types/node/globals.d.ts:139:11 - error TS2320: Interface 'NodeRequire' cannot simultaneously extend types 'Require' and 'RequireFunction'.
  Named property 'cache' of types 'Require' and 'RequireFunction' are not identical.

139 interface NodeRequire extends NodeJS.Require {}
              ~~~~~~~~~~~
authentic/node_modules/@types/node/globals.d.ts:139:11 - error TS2320: Interface 'NodeRequire' cannot simultaneously extend types 'Require' and 'RequireFunction'.
  Named property 'resolve' of types 'Require' and 'RequireFunction' are not identical.

139 interface NodeRequire extends NodeJS.Require {}
              ~~~~~~~~~~~
authentic/node_modules/@types/node/globals.d.ts:141:11 - error TS2320: Interface 'NodeModule' cannot simultaneously extend types 'Module' and 'Module'.
  Named property 'children' of types 'Module' and 'Module' are not identical.

141 interface NodeModule extends NodeJS.Module {}
              ~~~~~~~~~~
authentic/node_modules/@types/node/globals.d.ts:141:11 - error TS2320: Interface 'NodeModule' cannot simultaneously extend types 'Module' and 'Module'.
  Named property 'parent' of types 'Module' and 'Module' are not identical.

141 interface NodeModule extends NodeJS.Module {}
              ~~~~~~~~~~
authentic/node_modules/@types/node/globals.d.ts:141:11 - error TS2320: Interface 'NodeModule' cannot simultaneously extend types 'Module' and 'Module'.
  Named property 'require' of types 'Module' and 'Module' are not identical.

141 interface NodeModule extends NodeJS.Module {}
              ~~~~~~~~~~
authentic/node_modules/@types/node/globals.d.ts:859:38 - error TS2304: Cannot find name 'ReadonlySet'.

859         allowedNodeEnvironmentFlags: ReadonlySet<string>;
                                         ~~~~~~~~~~~
authentic/node_modules/@types/node/globals.d.ts:993:14 - error TS2304: Cannot find name 'MapConstructor'.

993         Map: MapConstructor;
                 ~~~~~~~~~~~~~~
authentic/node_modules/@types/node/globals.d.ts:998:25 - error TS2693: 'Promise' only refers to a type, but is being used as a value here.

998         Promise: typeof Promise;
                            ~~~~~~~
authentic/node_modules/@types/node/globals.d.ts:1002:14 - error TS2304: Cannot find name 'SetConstructor'.

1002         Set: SetConstructor;
                  ~~~~~~~~~~~~~~
authentic/node_modules/@types/node/globals.d.ts:1012:18 - error TS2304: Cannot find name 'WeakMapConstructor'.

1012         WeakMap: WeakMapConstructor;
                      ~~~~~~~~~~~~~~~~~~
authentic/node_modules/@types/node/globals.d.ts:1013:18 - error TS2304: Cannot find name 'WeakSetConstructor'.

1013         WeakSet: WeakSetConstructor;
                      ~~~~~~~~~~~~~~~~~~
authentic/node_modules/@types/node/perf_hooks.d.ts:275:31 - error TS2304: Cannot find name 'Map'.

275         readonly percentiles: Map<number, number>;
                                  ~~~
authentic/node_modules/@types/node/stream.d.ts:24:35 - error TS2304: Cannot find name 'Iterable'.

24             static from(iterable: Iterable<any> | AsyncIterable<any>, options?: ReadableOptions): Readable;
                                     ~~~~~~~~
authentic/node_modules/@types/node/url.d.ts:94:38 - error TS2304: Cannot find name 'Iterable'.

94     class URLSearchParams implements Iterable<[string, string]> {
                                        ~~~~~~~~
authentic/node_modules/@types/node/url.d.ts:95:106 - error TS2304: Cannot find name 'Iterable'.

95         constructor(init?: URLSearchParams | string | { [key: string]: string | string[] | undefined } | Iterable<[string, string]> | Array<[string, string]>);
                                                                                                            ~~~~~~~~
authentic/node_modules/@types/node/url.d.ts:108:17 - error TS2339: Property 'iterator' does not exist on type 'SymbolConstructor'.

108         [Symbol.iterator](): IterableIterator<[string, string]>;
                    ~~~~~~~~
authentic/node_modules/@types/react/index.d.ts:388:23 - error TS2304: Cannot find name 'Set'.

388         interactions: Set<SchedulerInteraction>,
                          ~~~
authentic/node_modules/@types/webpack-env/index.d.ts:282:13 - error TS2403: Subsequent variable declarations must have the same type.  Variable 'require' must be of type 'Require', but here has type 'NodeRequire'.

282 declare var require: NodeRequire;
                ~~~~~~~
authentic/node_modules/@types/webpack-env/index.d.ts:333:13 - error TS2403: Subsequent variable declarations must have the same type.  Variable 'module' must be of type 'Module', but here has type 'NodeModule'.

333 declare var module: NodeModule;
                ~~~~~~


(node:37944) UnhandledPromiseRejectionWarning: Error: TypeScript compilation errors. Please fix them before using extractor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions