[useExtendedValidation] Passing context object to yoga breaks the server: "'getOwnPropertyDescriptor' on proxy: trap reported non-configurability for property (Cloudflare Workers) #2159
Labels
kind/bug
Something isn't working
stage/0-issue-prerequisites
Needs more information before we can start working on it
Issue workflow progress
Progress of the issue based on the
Contributor Workflow
minimal reproduction available on
Stackblitz.
@envelop/*
packages that you are using.Describe the bug
Apologies for not providing a Stackblitz as the issue isn't reproducible there. However I can create a minimal reproduction repo if necessary
When using the extendedValidation plugin with cloudflare workers, the following error happens when passing a context object to yoga as the 2nd argument.
The error happens with
wrangler dev
and with the deployed worker.The error doesn't happen if using a regular runtime like Bun or Node.js.
To Reproduce Steps to reproduce the behavior:
Expected behavior
No error.
Environment:
@envelop/*
versions: 4.0.0@envelop/core
:no
Additional context
Investigating further, I found out that if I pass an array instead of an object, everything works (Typescript get lost though).
I also encountered the same error with SvelteKit, however I did not try the workaround.
The text was updated successfully, but these errors were encountered: