You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: Cannot compile trpc-server without having skipLibCheck enabled #6136
When trying to compile my project with tsc, I get the following error message:
node_modules/.pnpm/@[email protected]/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/sse.d.ts:66:30 - error TS2552: Cannot find name 'EventSourceInit'. Did you mean 'EventSource'?
66 init: () => MaybePromise<EventSourceInit> | undefined;
~~~~~~~~~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@types/node/globals.d.ts:564:9
564 var EventSource: typeof globalThis extends { onmessage: any; EventSource: infer T } ? T
~~~~~~~~~~~
'EventSource' is declared here.
Found 1 error in node_modules/.pnpm/@[email protected]/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/sse.d.ts:66
This issue has been locked because we are very unlikely to see comments on closed issues. If you are running into a similar issue, please create a new issue. Thank you.
Activity
KATT commentedon Oct 19, 2024
skipLibCheck: trueis kinda reocmmended for making apps - however, I'm fixing this in #6084Thanks for reporting though, we do want trpc to work without any specific type deps
github-actions commentedon Oct 22, 2024
This issue has been locked because we are very unlikely to see comments on closed issues. If you are running into a similar issue, please create a new issue. Thank you.