You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using the import-types preset, the file generated by typescript-vue-urql doesn't populate the correct type references.
Example:
Working code generated by typescript-vue-apollo
As you can see, there is a missing Types. prefix in the Urql code. The generated file does indeed have an import of this (import * as Types from './graphql';), but the import is never used.
After adding typesPrefix: 'Types.' to the config of typescript-vue-urql, it now works. Not sure if this should still be considered as a bug, although there seems to be some differing behaviour. Close at will.
Describe the bug
When using the
import-types
preset, the file generated bytypescript-vue-urql
doesn't populate the correct type references.Example:
Working code generated by
typescript-vue-apollo
As you can see, there is a missing
Types.
prefix in the Urql code. The generated file does indeed have an import of this (import * as Types from './graphql';
), but the import is never used.My
codegen.js
config file:Environment:
The text was updated successfully, but these errors were encountered: