Closed stalinb87 closed 1 month ago
It looks like an issue of regex for capturing the operation name.
Workaround would be removing query to
in the comment.
# Pagination query to be fetched upon calling 'loadMore'.
https://github.com/swc-project/plugins/pull/333 should fix this
That was it, I removed the comment, and it is working, thanks
I'll close this once it's properly fixed
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Link to the code that reproduces this issue
https://codesandbox.io/p/devbox/7tc9th?file=%2F.codesandbox%2Ftasks.json
To Reproduce
Current vs. Expected behavior
Current Behavior
It fails to load because is trying to look for a query that doesn't exist it always looks for
to.graphql.js
Expected behavior
It should load the page without error
Provide environment information
Which area(s) are affected? (Select all that apply)
SWC
Which stage(s) are affected? (Select all that apply)
next dev (local), next build (local), next start (local)
Additional context
The relay compiler seems to be ok with this; if I run
pnpm relay-compiler
, it works fine