Trailing semicolon in #import 'someFile.gql';
causes cryptic error message
#813
Labels
#import 'someFile.gql';
causes cryptic error message
#813
Ask me how I know :) It looks like these import statements are meant to tolerate content after the module path, with the specific exception of a semicolon.
#import 'myFragment.gql';
Produces this error:
The message does include the problem, but is a little hard to parse. Once I realized my semicolon was the problem, I noticed it in the above message as well.
This seems to be unintentional, as otherwise the
#import
directive tolerates extra junk after the path string. From experimenting, these were all okay:If it is intentional, I think an improvement to the error message would be helpful.
The text was updated successfully, but these errors were encountered: