-
Notifications
You must be signed in to change notification settings - Fork 62
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
Relay compiler throws syntax error: unexpected “$” when running in Github Action #44
Comments
I have managed to find that when running the Resulting
This doesn't occur locally instead, I get the following (as expected).
|
Hi there! Could you explain how you managed to delete that first line that broke everything, please?. Have the same issue. |
There is a cleaner way to remove the "first line that breaks everything". When you run There's a silent flag you can add that fixes this issue:
From Yarn docs:
|
Description
Relay compiler throws
Syntax Error: Unexpected "$".
when compiling in Github Actions. This issue only does not occur in a local environment or if I commit theschema.graphql
to and use this instead of downloaded a fresh copy.I have raised a stack overflow post about this without much success: Relay compiler throws syntax error: Unexpected “$” when running in Github Action
I am using the vanilla
create-react-app
set up with theimport graphql from "babel-plugin-relay/macro"
fix as suggested here.Here is the section of my
yml
file where is breaks:And here are those scripts in my
package.json
.It fails with the error:
I have verified that schema is downloaded and the paths to the schema and src folder are correct.
Environment
Is there a way I can debug this?
The text was updated successfully, but these errors were encountered: