Skip to content

relay-compiler validate fails for locally persisted queries #5041

@michalsanger

Description

@michalsanger

After upgrade to current compiler version 20.1.0 the validation fails with:

[INFO] Querying files to compile...
[INFO] [default] compiling...
[INFO] [default] compiled documents: 323 reader, 135 normalization, 376 operation text
[ERROR] Artifacts validation failed: 
// list of all __generated__/*.graphql.ts files
[ERROR] Compilation failed.
[ERROR] Unable to run relay compiler. Error details: 
Artifacts validation failed: 
Out of date:
// list of all __generated__/*.graphql.ts files

In relay.config.js I have:

persistConfig: {
    file: './relay/persistedQueries.json',
    algorithm: 'MD5',
},

I see #5013 in the changelog and I guess it makes sense to disable validation for RemotePersistConfig but not for LocalPersistConfig.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions