Skip to content

Instantly share code, notes, and snippets.

@lunaleaps
Created November 22, 2022 00:21
Show Gist options
  • Save lunaleaps/a184026d2c6cbeaa90f41f0c03f580f8 to your computer and use it in GitHub Desktop.
Save lunaleaps/a184026d2c6cbeaa90f41f0c03f580f8 to your computer and use it in GitHub Desktop.
Error when running `npm run test-all` on https://github.com/DefinitelyTyped/DefinitelyTyped/pull/63276
Error in react-native-sensor-manager
Error: Errors in typescript@5.0 for external dependencies:
../react-native/index.d.ts(193,9): error TS2451: Cannot redeclare block-scoped variable 'originalXMLHttpRequest'.
../react-native/index.d.ts(195,9): error TS2451: Cannot redeclare block-scoped variable '__BUNDLE_START_TIME__'.
../react-native/index.d.ts(196,9): error TS2451: Cannot redeclare block-scoped variable 'ErrorUtils'.
../react-native/index.d.ts(203,9): error TS2451: Cannot redeclare block-scoped variable '__DEV__'.
../react-native/index.d.ts(205,9): error TS2451: Cannot redeclare block-scoped variable 'HermesInternal'.
../react-native/modules/Codegen.d.ts(1,1): error TS6200: Definitions of the following identifiers conflict with those in another file: codegenNativeCommands, NativeComponentType, codegenNativeComponent, BubblingEventHandler, DirectEventHandler, Double, Float, Int32, UnsafeObject, DefaultTypes, WithDefault
../react-native/modules/Devtools.d.ts(2,15): error TS2300: Duplicate identifier 'StackFrame'.
../react-native/modules/globals.d.ts(10,1): error TS6200: Definitions of the following identifiers conflict with those in another file: FormDataValue, FormDataPart, FormData, BodyInit_, RequestInfo, HeadersInit_, RequestCredentials_, RequestMode_, ResponseType_, XMLHttpRequestResponseType, URL, URLSearchParams, WebsocketMessageEventListener, WebsocketErrorEventListener, WebsocketOpenEventListener, WebsocketCloseEventListener, WebsocketEventListener, AbortSignal, AbortController
../react-native/modules/globals.d.ts(124,3): error TS2374: Duplicate index signature for type 'string'.
../react-native/modules/LaunchScreen.d.ts(4,16): error TS2451: Cannot redeclare block-scoped variable 'Header'.
../react-native/modules/LaunchScreen.d.ts(5,16): error TS2451: Cannot redeclare block-scoped variable 'LearnMoreLinks'.
../react-native/modules/LaunchScreen.d.ts(6,16): error TS2451: Cannot redeclare block-scoped variable 'Colors'.
../react-native/modules/LaunchScreen.d.ts(7,16): error TS2451: Cannot redeclare block-scoped variable 'DebugInstructions'.
../react-native/modules/LaunchScreen.d.ts(8,16): error TS2451: Cannot redeclare block-scoped variable 'ReloadInstructions'.
../react-native/v0.70/Codegen.d.ts(1,1): error TS6200: Definitions of the following identifiers conflict with those in another file: codegenNativeCommands, NativeComponentType, codegenNativeComponent, BubblingEventHandler, DirectEventHandler, Double, Float, Int32, UnsafeObject, DefaultTypes, WithDefault
../react-native/v0.70/Devtools.d.ts(2,17): error TS2300: Duplicate identifier 'StackFrame'.
../react-native/v0.70/globals.d.ts(10,1): error TS6200: Definitions of the following identifiers conflict with those in another file: FormDataValue, FormDataPart, FormData, BodyInit_, RequestInfo, HeadersInit_, RequestCredentials_, RequestMode_, ResponseType_, XMLHttpRequestResponseType, URL, URLSearchParams, WebsocketMessageEventListener, WebsocketErrorEventListener, WebsocketOpenEventListener, WebsocketCloseEventListener, WebsocketEventListener, AbortSignal, AbortController
../react-native/v0.70/globals.d.ts(113,5): error TS2374: Duplicate index signature for type 'string'.
../react-native/v0.70/index.d.ts(9908,11): error TS2451: Cannot redeclare block-scoped variable 'originalXMLHttpRequest'.
../react-native/v0.70/index.d.ts(9910,11): error TS2451: Cannot redeclare block-scoped variable '__BUNDLE_START_TIME__'.
../react-native/v0.70/index.d.ts(9911,11): error TS2451: Cannot redeclare block-scoped variable 'ErrorUtils'.
../react-native/v0.70/index.d.ts(9918,11): error TS2451: Cannot redeclare block-scoped variable '__DEV__'.
../react-native/v0.70/index.d.ts(9920,11): error TS2451: Cannot redeclare block-scoped variable 'HermesInternal'.
../react-native/v0.70/LaunchScreen.d.ts(4,18): error TS2451: Cannot redeclare block-scoped variable 'Header'.
../react-native/v0.70/LaunchScreen.d.ts(5,18): error TS2451: Cannot redeclare block-scoped variable 'LearnMoreLinks'.
../react-native/v0.70/LaunchScreen.d.ts(6,18): error TS2451: Cannot redeclare block-scoped variable 'Colors'.
../react-native/v0.70/LaunchScreen.d.ts(7,18): error TS2451: Cannot redeclare block-scoped variable 'DebugInstructions'.
../react-native/v0.70/LaunchScreen.d.ts(8,18): error TS2451: Cannot redeclare block-scoped variable 'ReloadInstructions'.
at testTypesVersion (/Users/luwe/DefinitelyTyped/node_modules/@definitelytyped/dtslint/src/index.ts:235:11)
at runTests (/Users/luwe/DefinitelyTyped/node_modules/@definitelytyped/dtslint/src/index.ts:197:7)
Error in react-native-sensor-manager
Error: Errors in typescript@5.0 for external dependencies:
../react-native/index.d.ts(193,9): error TS2451: Cannot redeclare block-scoped variable 'originalXMLHttpRequest'.
../react-native/index.d.ts(195,9): error TS2451: Cannot redeclare block-scoped variable '__BUNDLE_START_TIME__'.
../react-native/index.d.ts(196,9): error TS2451: Cannot redeclare block-scoped variable 'ErrorUtils'.
../react-native/index.d.ts(203,9): error TS2451: Cannot redeclare block-scoped variable '__DEV__'.
../react-native/index.d.ts(205,9): error TS2451: Cannot redeclare block-scoped variable 'HermesInternal'.
../react-native/modules/Codegen.d.ts(1,1): error TS6200: Definitions of the following identifiers conflict with those in another file: codegenNativeCommands, NativeComponentType, codegenNativeComponent, BubblingEventHandler, DirectEventHandler, Double, Float, Int32, UnsafeObject, DefaultTypes, WithDefault
../react-native/modules/Devtools.d.ts(2,15): error TS2300: Duplicate identifier 'StackFrame'.
../react-native/modules/globals.d.ts(10,1): error TS6200: Definitions of the following identifiers conflict with those in another file: FormDataValue, FormDataPart, FormData, BodyInit_, RequestInfo, HeadersInit_, RequestCredentials_, RequestMode_, ResponseType_, XMLHttpRequestResponseType, URL, URLSearchParams, WebsocketMessageEventListener, WebsocketErrorEventListener, WebsocketOpenEventListener, WebsocketCloseEventListener, WebsocketEventListener, AbortSignal, AbortController
../react-native/modules/globals.d.ts(124,3): error TS2374: Duplicate index signature for type 'string'.
../react-native/modules/LaunchScreen.d.ts(4,16): error TS2451: Cannot redeclare block-scoped variable 'Header'.
../react-native/modules/LaunchScreen.d.ts(5,16): error TS2451: Cannot redeclare block-scoped variable 'LearnMoreLinks'.
../react-native/modules/LaunchScreen.d.ts(6,16): error TS2451: Cannot redeclare block-scoped variable 'Colors'.
../react-native/modules/LaunchScreen.d.ts(7,16): error TS2451: Cannot redeclare block-scoped variable 'DebugInstructions'.
../react-native/modules/LaunchScreen.d.ts(8,16): error TS2451: Cannot redeclare block-scoped variable 'ReloadInstructions'.
../react-native/v0.70/Codegen.d.ts(1,1): error TS6200: Definitions of the following identifiers conflict with those in another file: codegenNativeCommands, NativeComponentType, codegenNativeComponent, BubblingEventHandler, DirectEventHandler, Double, Float, Int32, UnsafeObject, DefaultTypes, WithDefault
../react-native/v0.70/Devtools.d.ts(2,17): error TS2300: Duplicate identifier 'StackFrame'.
../react-native/v0.70/globals.d.ts(10,1): error TS6200: Definitions of the following identifiers conflict with those in another file: FormDataValue, FormDataPart, FormData, BodyInit_, RequestInfo, HeadersInit_, RequestCredentials_, RequestMode_, ResponseType_, XMLHttpRequestResponseType, URL, URLSearchParams, WebsocketMessageEventListener, WebsocketErrorEventListener, WebsocketOpenEventListener, WebsocketCloseEventListener, WebsocketEventListener, AbortSignal, AbortController
../react-native/v0.70/globals.d.ts(113,5): error TS2374: Duplicate index signature for type 'string'.
../react-native/v0.70/index.d.ts(9908,11): error TS2451: Cannot redeclare block-scoped variable 'originalXMLHttpRequest'.
../react-native/v0.70/index.d.ts(9910,11): error TS2451: Cannot redeclare block-scoped variable '__BUNDLE_START_TIME__'.
../react-native/v0.70/index.d.ts(9911,11): error TS2451: Cannot redeclare block-scoped variable 'ErrorUtils'.
../react-native/v0.70/index.d.ts(9918,11): error TS2451: Cannot redeclare block-scoped variable '__DEV__'.
../react-native/v0.70/index.d.ts(9920,11): error TS2451: Cannot redeclare block-scoped variable 'HermesInternal'.
../react-native/v0.70/LaunchScreen.d.ts(4,18): error TS2451: Cannot redeclare block-scoped variable 'Header'.
../react-native/v0.70/LaunchScreen.d.ts(5,18): error TS2451: Cannot redeclare block-scoped variable 'LearnMoreLinks'.
../react-native/v0.70/LaunchScreen.d.ts(6,18): error TS2451: Cannot redeclare block-scoped variable 'Colors'.
../react-native/v0.70/LaunchScreen.d.ts(7,18): error TS2451: Cannot redeclare block-scoped variable 'DebugInstructions'.
../react-native/v0.70/LaunchScreen.d.ts(8,18): error TS2451: Cannot redeclare block-scoped variable 'ReloadInstructions'.
at testTypesVersion (/Users/luwe/DefinitelyTyped/node_modules/@definitelytyped/dtslint/src/index.ts:235:11)
at runTests (/Users/luwe/DefinitelyTyped/node_modules/@definitelytyped/dtslint/src/index.ts:197:7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment