-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
Vite throws this error:
SyntaxError: [vite] The requested module '@pothos/core' does not provide an export named 'MutationFieldsShape'
in the generated utils module. I think this is because the type imports are not marked as such, e.g.
import {
type FieldOptionsFromKind,
type InputFieldMap,
type InterfaceParam,
MutationFieldBuilder,
type MutationFieldsShape,
ObjectRef,
QueryFieldBuilder,
type QueryFieldsShape,
type TypeParam
} from '@pothos/core';
import {
type PrismaFieldOptions,
type PrismaObjectTypeOptions,
type RelatedFieldOptions
} from '@pothos/plugin-prisma';
instead of the current
import {
FieldOptionsFromKind,
InputFieldMap,
InterfaceParam,
MutationFieldBuilder,
MutationFieldsShape,
ObjectRef,
QueryFieldBuilder,
QueryFieldsShape,
TypeParam
} from '@pothos/core';
import {
PrismaFieldOptions,
PrismaObjectTypeOptions,
RelatedFieldOptions
} from '@pothos/plugin-prisma';
Would it be possible to adjust this?
Metadata
Metadata
Assignees
Labels
No labels