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/client 3.3.19? #61

Open
leethree opened this issue May 25, 2021 · 3 comments
Open

Incompatible with @apollo/client 3.3.19? #61

leethree opened this issue May 25, 2021 · 3 comments

Comments

@leethree
Copy link

Apollo client changed the way graphql-tag is exported, it causes runtime error after babel transform:

image

My versions:

    "@apollo/client": "3.3.19",
    "@babel/core": "7.14.3",
    "babel-plugin-graphql-tag": "3.3.0",
    "graphql-tag": "2.12.3",

Babel config:

module.exports = {
  presets: ['module:metro-react-native-babel-preset'],
  plugins: [
    ['graphql-tag', { importSources: ['graphql-tag'] }],
  ],
};

It works fine when I reverted @apollo/client

@MikePodgorniy
Copy link

try "@apollo/client": "3.3.16"

@leethree
Copy link
Author

older version works. but we need to update Apollo version. so this still needs to be fixed.

@awinograd
Copy link

I was able to workaround this on 3.5.x by setting this plugin to only modify imports of @apollo/client

['graphql-tag', { importSources: ['@apollo/client'] }]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants