-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
10.6 api gql-compile reports error in schema comments when it finds any of the ')]}' characters #1143
Comments
This happens as of yesterday on [email protected] as well, so it must be a component that is called.
schema shows this in comments (you'll see square brackets on line 7):
|
We have a draft PR that should be able to address this, but will require additional testing and refactoring before we can accept it. #1138 |
This bracket check has been removed in Amplify CLI v10.6.2, and upgrading to the latest version should resolve the issue you're running into. Thank you. |
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
18.3.0
Amplify CLI Version
10.6
What operating system are you using?
MacOS
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No
Describe the bug
After upgrading CLI from 10.5.x to 10.6 most
amplify
started complaining on my API graphql schema, reporting errors like "Syntax Error: mismatched brackets found in the schema. Unexpected ]". Other characters it didn't like were ) and }. All of these places were in commented out parts of the schema and had no problem before 10.6.Expected behavior
Ignore ),],} chars in comments as pre 10.6 cli did.
Reproduction steps
amplify api gql-compile
, see errors.Project Identifier
No response
Log output
Additional information
No response
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: