<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>oinume</author_name>
  <author_url>https://blog.hatena.ne.jp/oinume/</author_url>
  <blog_title>oinume journal</blog_title>
  <blog_url>https://oinume.hatenablog.com/</blog_url>
  <categories>
    <anon>GraphQL</anon>
  </categories>
  <description>Vite + Apollo Client + GraphQL Codegenの組み合わせでgraphql-codegenを実行すると、gql関数を以下のようにimportするためにエラーが出る。 import { gql } from '@apollo/client'; [vite] Named export 'gql' not found. The requested module '@apollo/client' is a CommonJS module, which may not support all module.exports as named exports. CommonJS…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Foinume.hatenablog.com%2Fentry%2Favoid-gql-not-found&quot; title=&quot;GraphQL Codegenで自動生成されたファイルでNamed export &amp;#39;gql&amp;#39; not foundのビルドエラーを回避する - oinume journal&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-04-10 08:00:00</published>
  <title>GraphQL Codegenで自動生成されたファイルでNamed export 'gql' not foundのビルドエラーを回避する</title>
  <type>rich</type>
  <url>https://oinume.hatenablog.com/entry/avoid-gql-not-found</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
