Skip to content

findSync doesn't work with js files because the loader is async #1454

@lukpsaxo

Description

@lukpsaxo

I discovered this debugging a issue with the eslint plugin.

https://github.com/kamilkisiela/graphql-config/blob/master/src/helpers/cosmiconfig.ts#L94

needs to load the jsSync loader instead of the js one, otherwise when you use the findSync methods on this package, a promise is passed as the config to graphql-config.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugstage/6-releasedThe issue has been solved on a released version of the library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions