Created
November 21, 2022 13:47
-
-
Save bbg/1cce9ecadfaaa44ffd3aa00e9d087a88 to your computer and use it in GitHub Desktop.
tRPC Next 13 Error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yarn build | |
yarn run v1.22.19 | |
$ dotenv -e .env.production -- next build | |
info - Loaded env from /Users/batuhangoksu/@Sandbox/next13-trpc-minimal/.env.production | |
warn - You have enabled experimental feature (appDir) in next.config.js. | |
warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk. | |
info - Thank you for testing `appDir` please leave your feedback at https://nextjs.link/app-feedback | |
info - Creating an optimized production build | |
info - Compiled successfully | |
info - Linting and checking validity of types | |
info - Collecting page data | |
[ ] info - Generating static pages (0/4) << query #1 userById { | |
input: { id: '1' }, | |
result: transformResult_b10d288d_TRPCClientError: fetch failed | |
at Function.from (/Users/batuhangoksu/@Sandbox/next13-trpc-minimal/.next/server/chunks/130.js:256:16) | |
at /Users/batuhangoksu/@Sandbox/next13-trpc-minimal/.next/server/chunks/130.js:655:89 | |
at processTicksAndRejections (node:internal/process/task_queues:96:5) { | |
meta: undefined, | |
shape: undefined, | |
data: undefined, | |
[cause]: TypeError: fetch failed | |
at Object.fetch (/Users/batuhangoksu/@Sandbox/next13-trpc-minimal/node_modules/next/dist/compiled/undici/index.js:1:26686) | |
at processTicksAndRejections (node:internal/process/task_queues:96:5) { | |
cause: [Error] | |
} | |
}, | |
elapsedMs: 37, | |
context: {} | |
} | |
transformResult_b10d288d_TRPCClientError: fetch failed | |
at Function.from (/Users/batuhangoksu/@Sandbox/next13-trpc-minimal/.next/server/chunks/130.js:256:16) | |
at /Users/batuhangoksu/@Sandbox/next13-trpc-minimal/.next/server/chunks/130.js:655:89 | |
at processTicksAndRejections (node:internal/process/task_queues:96:5) { | |
meta: undefined, | |
shape: undefined, | |
data: undefined, | |
[cause]: TypeError: fetch failed | |
at Object.fetch (/Users/batuhangoksu/@Sandbox/next13-trpc-minimal/node_modules/next/dist/compiled/undici/index.js:1:26686) | |
at processTicksAndRejections (node:internal/process/task_queues:96:5) { | |
cause: Error: connect ECONNREFUSED 127.0.0.1:3000 | |
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) | |
at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) { | |
errno: -61, | |
code: 'ECONNREFUSED', | |
syscall: 'connect', | |
address: '127.0.0.1', | |
port: 3000 | |
} | |
} | |
} | |
[Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.] { | |
digest: '381243681' | |
} | |
Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error | |
TRPCClientError: fetch failed | |
at Function.from (/Users/batuhangoksu/@Sandbox/next13-trpc-minimal/.next/server/chunks/130.js:256:16) | |
at /Users/batuhangoksu/@Sandbox/next13-trpc-minimal/.next/server/chunks/130.js:655:89 | |
at processTicksAndRejections (node:internal/process/task_queues:96:5) | |
info - Generating static pages (4/4) | |
> Build error occurred | |
Error: Export encountered errors on following paths: | |
/page: / | |
at /Users/batuhangoksu/@Sandbox/next13-trpc-minimal/node_modules/next/dist/export/index.js:408:19 | |
at processTicksAndRejections (node:internal/process/task_queues:96:5) | |
at async Span.traceAsyncFn (/Users/batuhangoksu/@Sandbox/next13-trpc-minimal/node_modules/next/dist/trace/trace.js:79:20) | |
at async /Users/batuhangoksu/@Sandbox/next13-trpc-minimal/node_modules/next/dist/build/index.js:1331:21 | |
at async Span.traceAsyncFn (/Users/batuhangoksu/@Sandbox/next13-trpc-minimal/node_modules/next/dist/trace/trace.js:79:20) | |
at async /Users/batuhangoksu/@Sandbox/next13-trpc-minimal/node_modules/next/dist/build/index.js:1191:17 | |
at async Span.traceAsyncFn (/Users/batuhangoksu/@Sandbox/next13-trpc-minimal/node_modules/next/dist/trace/trace.js:79:20) | |
at async Object.build [as default] (/Users/batuhangoksu/@Sandbox/next13-trpc-minimal/node_modules/next/dist/build/index.js:65:29) | |
error Command failed with exit code 1. | |
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment