Query including tabs causing AST failures #9539
              
                Unanswered
              
          
                  
                    
                      tshelburne
                    
                  
                
                  asked this question in
                Ideas
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The following code generates types correctly and typechecks in the component, but at runtime results in an
Invalid AST Node: {}.. This is because thegraphqlfunction is returning{}. The issue appears to be that the codegen step sets updocumentscontaining"\t"as it is coded, but at runtime the tabs are converted to spaces anddocuments[source]is undefined.I have confirmed that everything works if I edit the gql.ts file to have either of the following ways — clearly these aren't real solutions, but they show what's happening:
I've looked for some kind of configuration setting, overrides, etc., but I can't find anything anywhere that shows someone else experiencing this.
Beta Was this translation helpful? Give feedback.
All reactions