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

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

Open
McEazy2700 opened this issue Nov 26, 2024 · 0 comments

Comments

@McEazy2700
Copy link

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

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

1 participant