From ce43a97e031ca97bf1c3ce57538854a966afa4af Mon Sep 17 00:00:00 2001 From: Joakim Olsson Date: Thu, 12 Nov 2026 10:42:25 +0100 Subject: [PATCH] fix(deps): update typescript-vue-apollo to v6 for codegen v8 typescript-vue-apollo 5.x fails plugin validation under @graphql-codegen/cli 8 ("The path argument must be of type string"). 6.0.0 targets plugin-helpers 8. typescript-operations v7 emits every schema type used in a document, so running it in the same output as the typescript plugin produced a duplicate Range declaration. Split codegen into schema.ts (typescript) and operations.ts (operations, vue-apollo, fragment-matcher) with importSchemaTypesFrom, matching the Shiny frontend layout, and import Event, DanceHallDistance and Range from the schema file. Lockfile regenerated in cypress/base:26.13.0 to keep Linux optional deps. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01ECBwyGcBKZhkRgyVyrLXPo --- app/components/pages/events/event-card.vue | 2 +- .../pages/events/event-distance.vue | 2 +- app/components/pages/events/event-list.vue | 2 +- app/store/index.ts | 2 +- codegen.yml | 20 +- graphql/generated/operations.ts | 218 +++--------------- graphql/generated/schema.ts | 158 +++++++++++++ package-lock.json | 127 +--------- package.json | 2 +- 9 files changed, 215 insertions(+), 318 deletions(-) create mode 100644 graphql/generated/schema.ts diff --git a/app/components/pages/events/event-card.vue b/app/components/pages/events/event-card.vue index 4a5818a..1881113 100644 --- a/app/components/pages/events/event-card.vue +++ b/app/components/pages/events/event-card.vue @@ -108,7 +108,7 @@ import { computed } from 'vue' import { useI18n } from '#i18n' import DistanceDisplay from '~/components/pages/events/event-distance.vue' -import type { Event } from '~~/graphql/generated/operations' +import type { Event } from '~~/graphql/generated/schema' const props = defineProps({ event: { diff --git a/app/components/pages/events/event-distance.vue b/app/components/pages/events/event-distance.vue index e18cd79..2fc34d6 100644 --- a/app/components/pages/events/event-distance.vue +++ b/app/components/pages/events/event-distance.vue @@ -17,7 +17,7 @@ import type { PropType } from 'vue' import { computed } from 'vue' -import type { DanceHallDistance } from '~~/graphql/generated/operations' +import type { DanceHallDistance } from '~~/graphql/generated/schema' const props = defineProps({ distance: { diff --git a/app/components/pages/events/event-list.vue b/app/components/pages/events/event-list.vue index dffea2f..27a1bd0 100644 --- a/app/components/pages/events/event-list.vue +++ b/app/components/pages/events/event-list.vue @@ -15,7 +15,7 @@