Skip to content

Cannot use with React Native / Typescript #574

Closed
@esamattis

Description

@esamattis

The apollo module brings in the @types/node module as a transitive dependency which is an issue with React Native typings (@types/react-native) because they have conflicting type definitions:

Cannot redeclare block-scoped variable 'console'.
Duplicate identifier 'require'.

DefinitelyTyped/DefinitelyTyped#16825

I know this is issue is with @types/react-native and/or @types/node but that's a long standing issue with no solution in sight so I'm wondering if it would be possible to get rid of the dependency from apollo's side.

The dependencies which brings it in are as follows:

[email protected]
└─┬ [email protected]
  ├─┬ @types/[email protected]
  │ └─┬ @types/[email protected]
  │   └── @types/[email protected]  deduped
  ├─┬ @types/[email protected]
  │ └── @types/[email protected]
  ├─┬ @types/[email protected]
  │ └── @types/[email protected]  deduped
  └─┬ [email protected]
    └─┬ [email protected]
      └─┬ [email protected]
        └── @types/[email protected]  deduped

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