Skip to content

@graphql-tools/links requires react as dependency #4582

@AGrzes

Description

@AGrzes

Issue workflow progress

Progress of the issue based on the Contributor Workflow

  • 1. The issue provides a reproduction available on Github, Stackblitz or CodeSandbox

    Make sure to fork this template and run yarn generate in the terminal.

    Please make sure the GraphQL Tools package versions under package.json matches yours.

  • 2. A failing test has been provided
  • 3. A local solution has been provided
  • 4. A pull request is pending review

Describe the bug
Version 8.3.0 requires react as dependency.

To Reproduce
Steps to reproduce the behavior:
For example import

import { createServerHttpLink } from '@graphql-tools/links'

And try to run without react on path
Expected behavior

Graphql tools are possible to run server side without react dependency.

Environment:

  • OS: Any
  • @graphql-tools/8.3.0:
  • NodeJS: Any

Additional context

It looks like d76a299 added

import * as apolloImport from '@apollo/client';

That triggers react dependency
@apollo/client/core should be used instead

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions