Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible with apollo-link-logger #51

Open
leethree opened this issue Nov 17, 2020 · 0 comments
Open

Incompatible with apollo-link-logger #51

leethree opened this issue Nov 17, 2020 · 0 comments

Comments

@leethree
Copy link

leethree commented Nov 17, 2020

I'm using both babel-plugin-graphql-tag and apollo-link-logger but found that it will compile into broken code. The transformer will remove the following require statement inside apollo-link-logger incorrectly.

var _client = require('@apollo/client');

var loggerLink = new _client.ApolloLink(function (operation, forward) {
...
});

This will cause:

ReferenceError: _client is not defined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants