-
Notifications
You must be signed in to change notification settings - Fork 4
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
Error after update to v1.0.10 #42
Comments
See: urql-graphql/urql#3704 (comment) |
@kitten Please read this comment vercel/next.js#72232 (comment) I think the bundler's behavior is correct (in assuming readonly properties shouldn't have setters). Please consider an alternative on your end. |
@apostolos: This seems to imply that Turbopack attempts to use type-level information to alter the output code. I'm not saying this is wrong or not what's happening, but I find it unlikely and weird. Making the assumption that just because some typing marks a property as
This isn't entirely correct either. While the property is marked as Regardless, if an assumption here is made by bundlers, that doesn't really reflect the reality of all libraries.
No, it doesn't inherently cause problems. That's an entirely different problem of whether a property is configurable and writable. We forgot the setter, and that was added, and I consider that a bug. Separately from that, it's always possible to construct objects with properties that aren't configurable or writable and cause errors. That's besides the point imho.
The underlying problem is pretty simple and unfortunate. While I'd love to just ignore this problem, there's unfortunately many apps out there that still use Anyway, more importantly:
As per the second point,
So, what I'm lacking is:
Basically, if the above is happening, it's weird and unrelated to the error. So, from our end, I'm not sure there's anything here yet we can act on. Sorry 😅 Edit: Also, just to underline the point of not having enough information. This stood out to me from the linked comment:
We only add |
Thanks for the explanation @kitten. Do you mind if I share your response in the original Next.js thread, so the Turbopack people are more likely to read it? |
I'm not sure it's relevant yet for the Next repo or Turbopack team per se. I assume, if this transformation is happening, it'd still be important for us to see what that transformation is Other than that, the problem here is that we're now potentially working within the constraints of |
Seems like they are working on a fix here: |
Describe the bug
In a Next.js v15 project, we are using
gql.tada
.Currently the project is using the version
1.0.9
of@0no-co/graphql.web
, and it's working fine!But when we try to update to
1.0.10
(or1.0.11
), we get this error:The component file has this fragment:
Meantime, we have this override in the
package.json
:Reproduction
TODO
Package version
@0no-co/graphql.web@1.0.10
Validations
The text was updated successfully, but these errors were encountered: