Skip to content

Issue with hot reloading #2

@blackxored

Description

@blackxored

If I edit a resolver twice it seems to blow up:

[GraphqlSchemaHot]: GraphQL Schema files was changed. Run rebuild...
(node:59825) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: Schema must be an instance of GraphQLSchema. Also ensure that there are not multiple versions of GraphQL installed in your node_modules directory.
(node:59825) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

I've enabled hot reload for my schema entrypoint file and this seems to be the culprit.
I'd love some pointers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions