-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 Error: FindGraphQLTags #1718
Comments
I think you need to change you query name to clientQuery like this: query={graphql`
query clientQuery {
viewer {
id
}
}
`} |
The answer above should fix your problem. |
thanks |
@nosykretts I seem to be having this same issue and doing this doesn't fix it 🤔 <QueryRenderer
environment={NetworkLayer.getCurrentEnvironment()}
query={graphql`
query clientQuery {
viewer {
...Activity_viewer
}
}
`}
variables={{}}
render={({error, props}) => {
if (props) {
return <ActivityList viewer={props.viewer} />;
} else {
return <div>Loading</div>;
}
}}
/> That is how I'm doing it at the moment |
Note that the name of the query must be |
@josephsavona Nice. Yeah that was the problem. |
Thank you @josephsavona ! |
Thank you very much! @josephsavona |
Someone like me was typing the name of file starting from capitals. |
@josephsavona What about this?
filename: |
Maybe it is in a folder, then it would be |
Hey, I think this issue may need to be reopened, I've tried to hack into the relay compiler and fix the bug as it does not seems to be the correct behaviour, let me explain this. In a Next app I use dynamic routing, so I have for example a page located under But it's weird, when for exemple I create an operation in I think that the modules names should behave the same when using for exemple the dynamic modules names, so it should be
This way, no conflict would be possible, what do you think? (Sorry to repost here, I've tried to find another related issue that is actually opened, but could not find anything, this issue seems the most relevant) |
The text was updated successfully, but these errors were encountered: