babel-plugin-graphql-tag icon indicating copy to clipboard operation
babel-plugin-graphql-tag copied to clipboard

Cannot find module 'graphql-tag'

Open dagadbm opened this issue 3 years ago • 0 comments

I am currently using urql client to handle my graphQL needs and I am using this plugin to optimize the gql queries. I have the following config on my babel.config.js file:

module.exports = {
  presets: [
    '@vue/app',
  ],
  plugins: [
    // reference: https://www.apollographql.com/docs/react/performance/babel/#using-babel-plugin-graphql-tag
    ['graphql-tag',
      {
        importSources: ['@urql/core'],
      },
    ],
  ],
};

I dont have the graphql-tag dependency directly installed since urql has its own version.

How do you recommend I procceed?

dagadbm avatar Apr 29 '21 15:04 dagadbm