dotansimha / dotansimha/graphql-code-generator-community

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

Open
#904 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
137
Forks
195
Avg merge
6h 20m
Merged PRs (30d)
16

Description

### 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

```ts
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_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.