-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
'@whatwg-node/server/index.mjs' implicitly has an 'any' type. #574
Comments
I don't use that flag so I don't have much idea about the error. |
What version of |
Closing the issue due to the lack of response. Feel free to create a new one if you still have it. |
Hi @Tobbe and I are working together.
$ yarn why @whatwg-node/server
...
├─ graphql-yoga@npm:4.0.2
│ └─ @whatwg-node/server@npm:0.8.12 (via npm:^0.8.1)
... Sorry, I don't have a basic code example but here is an example of where it errors: https://github.com/redwoodjs/redwood/blob/main/packages/graphql-server/src/functions/graphql.ts#L111
Happy to open another one, however the issue is still the same as before. Please let me know what is best. |
If you share a reproduction on CodeSandbox or StackBlitz, I can help you better |
https://codesandbox.io/s/kind-shadow-qfq88y?file=/src/functions/graphql.ts:3324-3374#L112 |
Describe the bug
I tried switching to
moduleResolution: bundler
in Redwood, but doing so I'm getting this TS errorTo Reproduce Steps to reproduce the behavior:
No sandbox link right now, sorry. Let me know if you want one
Expected behavior
No TS errors when using this package in an ESM environment
Environment:
@whatwg-node/server
Additional context
In
node_modules/@whatwg-node/server
there is already anindex.d.ts
file. If I just copy/paste this file and name the copyindex.d.mts
the error goes away.You can read more about the error here: microsoft/TypeScript#52363
That issue also links out to this PR with an example solution to that error in another project: gxmari007/vite-plugin-eslint#60 The comments on that PR are also good to read
The text was updated successfully, but these errors were encountered: