graphql-code-generator-community icon indicating copy to clipboard operation
graphql-code-generator-community copied to clipboard

'"@urql/svelte"' has no exported member named 'OperationStore'. Did you mean 'OperationType'?

Open McEazy2700 opened this issue 1 year ago • 0 comments

Which packages are impacted by your issue?

@graphql-codegen/urql-svelte-operations-store

Describe the bug

Generated code imports OperationStore from @urql/svelte which is not a valid import

Your Example Website or App

None

Steps to Reproduce the Bug or Issue

  1. Install @graphql-codegen/urql-svelte-operations-store
  2. Add urql-svelte-operations-store to gql-codegen plugins
  3. Run codegen comand npm run codegen

Expected behavior

The right import should be OperationResultStore

Screenshots or Videos

No response

Platform

  • OS: Linux
  • NodeJS: 20.11.1
  • graphql version: 16.9.0
  • @graphql-codegen/* version(s): 5.0.3
  • @urql/svelte version: 4.2.2

Codegen Config File

import type { CodegenConfig } from "@graphql-codegen/cli";

const config: CodegenConfig = {
	overwrite: true,
	schema: "http://localhost:8080",
	documents: "src/lib/services/graphql/requests/**/*.ts",
	generates: {
		"src/lib/services/graphql/generated.ts": {
			plugins: [
				"typescript",
				"typescript-document-nodes",
				"typescript-urql",
				"typescript-operations",
				"urql-svelte-operations-store",
			],
		},
	},
	config: {
		withHooks: false,
	},
};

export default config;

Additional context

No response

McEazy2700 avatar Nov 26 '24 08:11 McEazy2700