nextjs - 💡(How to fix) Fix Build Isuee after migrate from Next.js 15 to Next.js 16 [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
vercel/next.js#86800Fetched 2026-04-08 02:09:05
View on GitHub
Comments
1
Participants
2
Timeline
9
Reactions
0
Timeline (top)
labeled ×2subscribed ×2closed ×1commented ×1

Error Message

Error while requesting resource Error while requesting resource Error while requesting resource

Build error occurred Error: Turbopack build failed with 33 errors:

Fix Action

Fix / Workaround

Import map: Resolved by import map

Import map: Resolved by import map

Import map: Resolved by import map

Code Example

Node:22.14.0
npm: 10.9.2
RAW_BUFFERClick to expand / collapse

Link to the code that reproduces this issue

https://nextjs.org/docs/app/guides/upgrading/version-16#migrating-types-for-async-dynamic-apis

To Reproduce

npm run build is not working correctly

Current vs. Expected behavior

npm run build is not working correctly

Provide environment information

Node:22.14.0
npm: 10.9.2

Which area(s) are affected? (Select all that apply)

Turbopack

Which stage(s) are affected? (Select all that apply)

next build (local), Vercel (Deployed)

Additional context

I migrated the my next.js version from 15 to 16 in my project by this command npx @next/codemod@canary upgrade latest

And I tried to npm run build but I got this issue.

npm run build

[email protected] build npm run db:push && prisma generate && next build

[email protected] db:push prisma db push

Environment variables loaded from .env Prisma schema loaded from prisma\schema.prisma Datasource "db": PostgreSQL database "postgres", schema "public" at "accelerate.prisma-data.net"

The database is already in sync with the Prisma schema.

✔ Generated Prisma Client (v6.18.0, engine=none) to .\node_modules@prisma\client in 143ms

Environment variables loaded from .env Prisma schema loaded from prisma\schema.prisma

✔ Generated Prisma Client (v6.18.0) to .\node_modules@prisma\client in 225ms

Start by importing your Prisma Client (See: https://pris.ly/d/importing-client)

Tip: Want to turn off tips and other hints? https://pris.ly/tip-4-nohints

⚠ Invalid next.config.ts options detected: ⚠ Unrecognized key(s) in object: 'trubo' at "experimental" ⚠ See more info here: https://nextjs.org/docs/messages/invalid-next-config ▲ Next.js 16.0.7 (Turbopack)

  • Environments: .env
  • Experiments (use with caution): ? trubo (invalid experimental key)

Creating an optimized production build ... Turbopack build encountered 3 warnings: [next]/internal/font/google/4fa387ec64143e14-s.woff2 Error while requesting resource There was an issue establishing a connection while requesting https://fonts.gstatic.com/s/geistmono/v4/or3nQ6H-1_WfwkMZI_qYFrMdmhHkjkotbA.woff2

[next]/internal/font/google/797e433ab948586e-s.p.woff2 Error while requesting resource There was an issue establishing a connection while requesting https://fonts.gstatic.com/s/geistmono/v4/or3nQ6H-1_WfwkMZI_qYFrcdmhHkjko.woff2

[next]/internal/font/google/bbc41e54d2fcbd21-s.woff2 Error while requesting resource There was an issue establishing a connection while requesting https://fonts.gstatic.com/s/geistmono/v4/or3nQ6H-1_WfwkMZI_qYFrkdmhHkjkotbA.woff2

Build error occurred Error: Turbopack build failed with 33 errors: ./node_modules/thread-stream/test/ts.test.ts Missing module type The module type effect must be applied before adding Ecmascript transforms

./node_modules/thread-stream/test/ts/to-file.ts Missing module type The module type effect must be applied before adding Ecmascript transforms

./node_modules/thread-stream/README.md Unknown module type This module doesn't have an associated type. Use a known file extension, or register a loader for it.

Read more: https://nextjs.org/docs/app/api-reference/next-config-js/turbo#webpack-loaders

./node_modules/thread-stream/test/dir with spaces/test-package.zip Unknown module type This module doesn't have an associated type. Use a known file extension, or register a loader for it.

Read more: https://nextjs.org/docs/app/api-reference/next-config-js/turbo#webpack-loaders

./node_modules/thread-stream/test/ts.test.ts Unknown module type This module doesn't have an associated type. Use a known file extension, or register a loader for it.

Read more: https://nextjs.org/docs/app/api-reference/next-config-js/turbo#webpack-loaders

./node_modules/thread-stream/test/ts/to-file.ts Unknown module type This module doesn't have an associated type. Use a known file extension, or register a loader for it.

Read more: https://nextjs.org/docs/app/api-reference/next-config-js/turbo#webpack-loaders

./node_modules/thread-stream/test/ts/transpile.sh Unknown module type This module doesn't have an associated type. Use a known file extension, or register a loader for it.

Read more: https://nextjs.org/docs/app/api-reference/next-config-js/turbo#webpack-loaders

./node_modules/thread-stream/LICENSE:1:5 Parsing ecmascript source code failed

1 | MIT License | ^^^^^^^ 2 | 3 | Copyright (c) 2021 Matteo Collina 4 |

Expected ';', '}' or <eof>

Import trace: Client Component SSR: ./node_modules/thread-stream/LICENSE [Client Component SSR] ./node_modules/thread-stream/index.js [Client Component SSR] ./node_modules/pino/lib/transport.js [Client Component SSR] ./node_modules/pino/pino.js [Client Component SSR] ./node_modules/@walletconnect/universal-provider/dist/index.es.js [Client Component SSR]
./node_modules/@walletconnect/ethereum-provider/dist/index.es.js [Client Component SSR]
./node_modules/@privy-io/react-auth/dist/esm/SignRequestScreen-NOqdMm22.mjs [Client Component SSR] ./node_modules/@privy-io/react-auth/dist/esm/index.mjs [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Server Component] ./src/app/layout.tsx [Server Component]

./node_modules/thread-stream/test Module not found: Can't resolve './ROOT/node_modules/thread-stream/test/close-on-gc.js' server relative imports are not implemented yet. Please try an import relative to the file you are importing from.

https://nextjs.org/docs/messages/module-not-found

./node_modules/thread-stream/test Module not found: Can't resolve './ROOT/node_modules/thread-stream/test/create-and-exit.js'
server relative imports are not implemented yet. Please try an import relative to the file you are importing from.

https://nextjs.org/docs/messages/module-not-found

./node_modules/thread-stream/test/thread-management.test.js:164:17 Module not found: Can't resolve '/ROOT/node_modules/thread-stream/test/close-on-gc.js' 162 | test('close the work if out of scope on gc', { skip: !global.WeakRef }, async function (t) { 163 | const dest = file()

164 | const child = fork(join(__dirname, 'close-on-gc.js'), [dest], { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165 | execArgv: ['--expose-gc'] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 166 | }) | ^^^^^ 167 | 168 | const [code] = await once(child, 'exit') 169 | t.equal(code, 0)

Import trace: Client Component SSR: ./node_modules/thread-stream/test/thread-management.test.js [Client Component SSR] ./node_modules/thread-stream/index.js [Client Component SSR] ./node_modules/pino/lib/transport.js [Client Component SSR] ./node_modules/pino/pino.js [Client Component SSR] ./node_modules/@walletconnect/universal-provider/dist/index.es.js [Client Component SSR]
./node_modules/@walletconnect/ethereum-provider/dist/index.es.js [Client Component SSR]
./node_modules/@privy-io/react-auth/dist/esm/SignRequestScreen-NOqdMm22.mjs [Client Component SSR] ./node_modules/@privy-io/react-auth/dist/esm/index.mjs [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Server Component] ./src/app/layout.tsx [Server Component]

https://nextjs.org/docs/messages/module-not-found

./node_modules/thread-stream/test/thread-management.test.js:13:17 Module not found: Can't resolve '/ROOT/node_modules/thread-stream/test/create-and-exit.js' 11 | test('exits with 0', async function (t) { 12 | const dest = file()

13 | const child = fork(join(__dirname, 'create-and-exit.js'), [dest]) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14 | 15 | const [code] = await once(child, 'exit') 16 | t.equal(code, 0)

Import trace: Client Component SSR: ./node_modules/thread-stream/test/thread-management.test.js [Client Component SSR] ./node_modules/thread-stream/index.js [Client Component SSR] ./node_modules/pino/lib/transport.js [Client Component SSR] ./node_modules/pino/pino.js [Client Component SSR] ./node_modules/@walletconnect/universal-provider/dist/index.es.js [Client Component SSR]
./node_modules/@walletconnect/ethereum-provider/dist/index.es.js [Client Component SSR]
./node_modules/@privy-io/react-auth/dist/esm/SignRequestScreen-NOqdMm22.mjs [Client Component SSR] ./node_modules/@privy-io/react-auth/dist/esm/index.mjs [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Server Component] ./src/app/layout.tsx [Server Component]

https://nextjs.org/docs/messages/module-not-found

[next]/internal/font/google/geist_mono_8d43a2aa.module.css:8:9 Module not found: Can't resolve '@vercel/turbopack-next/internal/font/google/font' 6 | font-display: swap; 7 | src: url(@vercel/turbopack-next/internal/font/google/font?{%22url%22:%22https://fonts.gstatic.com/s/geistmono/v4/or3nQ6H-1_WfwkMZI_qYFrMdmhHkjkotbA.woff2%22,%22preload%22:false,%22has_size_adjust%22:true}) format('woff2');

8 | unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; | ^ 9 | } 10 | /* latin-ext */ 11 | @font-face {

Import map: Resolved by import map

Import trace: Server Component: [next]/internal/font/google/geist_mono_8d43a2aa.module.css [next]/internal/font/google/geist_mono_8d43a2aa.js ./src/app/layout.tsx

https://nextjs.org/docs/messages/module-not-found

[next]/internal/font/google/geist_mono_8d43a2aa.module.css:17:9 Module not found: Can't resolve '@vercel/turbopack-next/internal/font/google/font' 15 | font-display: swap; 16 | src: url(@vercel/turbopack-next/internal/font/google/font?{%22url%22:%22https://fonts.gstatic.com/s/geistmono/v4/or3nQ6H-1_WfwkMZI_qYFrkdmhHkjkotbA.woff2%22,%22preload%22:false,%22has_size_adjust%22:true}) format('woff2');

17 | unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; | ^ 18 | } 19 | /* latin */ 20 | @font-face {

Import map: Resolved by import map

Import trace: Server Component: [next]/internal/font/google/geist_mono_8d43a2aa.module.css [next]/internal/font/google/geist_mono_8d43a2aa.js ./src/app/layout.tsx

https://nextjs.org/docs/messages/module-not-found

[next]/internal/font/google/geist_mono_8d43a2aa.module.css:26:9 Module not found: Can't resolve '@vercel/turbopack-next/internal/font/google/font' 24 | font-display: swap; 25 | src: url(@vercel/turbopack-next/internal/font/google/font?{%22url%22:%22https://fonts.gstatic.com/s/geistmono/v4/or3nQ6H-1_WfwkMZI_qYFrcdmhHkjko.woff2%22,%22preload%22:true,%22has_size_adjust%22:true}) format('woff2');

26 | unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; | ^ 27 | } 28 | @font-face { 29 | font-family: 'Geist Mono Fallback';

Import map: Resolved by import map

Import trace: Server Component: [next]/internal/font/google/geist_mono_8d43a2aa.module.css [next]/internal/font/google/geist_mono_8d43a2aa.js ./src/app/layout.tsx

https://nextjs.org/docs/messages/module-not-found

./node_modules/thread-stream/test/esm.test.mjs:4:1 Module not found: Can't resolve 'desm' 2 | import { readFile } from 'fs' 3 | import ThreadStream from '../index.js'

4 | import { join } from 'desm' | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 5 | import { pathToFileURL } from 'url' 6 | import { file } from './helper.js' 7 |

Import trace: Client Component SSR: ./node_modules/thread-stream/test/esm.test.mjs [Client Component SSR] ./node_modules/thread-stream/index.js [Client Component SSR] ./node_modules/pino/lib/transport.js [Client Component SSR] ./node_modules/pino/pino.js [Client Component SSR] ./node_modules/@walletconnect/universal-provider/dist/index.es.js [Client Component SSR]
./node_modules/@walletconnect/ethereum-provider/dist/index.es.js [Client Component SSR]
./node_modules/@privy-io/react-auth/dist/esm/SignRequestScreen-NOqdMm22.mjs [Client Component SSR] ./node_modules/@privy-io/react-auth/dist/esm/index.mjs [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Server Component] ./src/app/layout.tsx [Server Component]

https://nextjs.org/docs/messages/module-not-found

./node_modules/thread-stream/test/multibyte-chars.test.mjs:4:1 Module not found: Can't resolve 'desm' 2 | import { readFile } from 'fs' 3 | import ThreadStream from '../index.js'

4 | import { join } from 'desm' | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 5 | import { file } from './helper.js' 6 | 7 | test('break up utf8 multibyte (sync)', (t) => {

Import trace: Client Component SSR: ./node_modules/thread-stream/test/multibyte-chars.test.mjs [Client Component SSR] ./node_modules/thread-stream/index.js [Client Component SSR] ./node_modules/pino/lib/transport.js [Client Component SSR] ./node_modules/pino/pino.js [Client Component SSR] ./node_modules/@walletconnect/universal-provider/dist/index.es.js [Client Component SSR]
./node_modules/@walletconnect/ethereum-provider/dist/index.es.js [Client Component SSR]
./node_modules/@privy-io/react-auth/dist/esm/SignRequestScreen-NOqdMm22.mjs [Client Component SSR] ./node_modules/@privy-io/react-auth/dist/esm/index.mjs [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Server Component] ./src/app/layout.tsx [Server Component]

https://nextjs.org/docs/messages/module-not-found

./node_modules/thread-stream/bench.js:3:15 Module not found: Can't resolve 'fastbench' 1 | 'use strict' 2 |

3 | const bench = require('fastbench') | ^^^^^^^^^^^^^^^^^^^^ 4 | const SonicBoom = require('sonic-boom') 5 | const ThreadStream = require('.') 6 | const Console = require('console').Console

Import trace: Client Component SSR: ./node_modules/thread-stream/bench.js [Client Component SSR] ./node_modules/thread-stream/index.js [Client Component SSR] ./node_modules/pino/lib/transport.js [Client Component SSR] ./node_modules/pino/pino.js [Client Component SSR] ./node_modules/@walletconnect/universal-provider/dist/index.es.js [Client Component SSR]
./node_modules/@walletconnect/ethereum-provider/dist/index.es.js [Client Component SSR]
./node_modules/@privy-io/react-auth/dist/esm/SignRequestScreen-NOqdMm22.mjs [Client Component SSR] ./node_modules/@privy-io/react-auth/dist/esm/index.mjs [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Server Component] ./src/app/layout.tsx [Server Component]

https://nextjs.org/docs/messages/module-not-found

./node_modules/thread-stream/test/commonjs-fallback.test.js:14:22 Module not found: Can't resolve 'pino-elasticsearch' 12 | t.plan(6) 13 |

14 | const modulePath = require.resolve('pino-elasticsearch') | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15 | t.match(modulePath, /..zip./) 16 | 17 | const stream = new ThreadStream({

Import trace: Client Component SSR: ./node_modules/thread-stream/test/commonjs-fallback.test.js [Client Component SSR] ./node_modules/thread-stream/index.js [Client Component SSR] ./node_modules/pino/lib/transport.js [Client Component SSR] ./node_modules/pino/pino.js [Client Component SSR] ./node_modules/@walletconnect/universal-provider/dist/index.es.js [Client Component SSR]
./node_modules/@walletconnect/ethereum-provider/dist/index.es.js [Client Component SSR]
./node_modules/@privy-io/react-auth/dist/esm/SignRequestScreen-NOqdMm22.mjs [Client Component SSR] ./node_modules/@privy-io/react-auth/dist/esm/index.mjs [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Server Component] ./src/app/layout.tsx [Server Component]

https://nextjs.org/docs/messages/module-not-found

./node_modules/thread-stream/test/base.test.js:3:18 Module not found: Can't resolve 'tap' 1 | 'use strict' 2 |

3 | const { test } = require('tap') | ^^^^^^^^^^^^^^ 4 | const { join } = require('path') 5 | const { readFile } = require('fs') 6 | const { file } = require('./helper')

Import trace: Client Component SSR: ./node_modules/thread-stream/test/base.test.js [Client Component SSR] ./node_modules/thread-stream/index.js [Client Component SSR] ./node_modules/pino/lib/transport.js [Client Component SSR] ./node_modules/pino/pino.js [Client Component SSR] ./node_modules/@walletconnect/universal-provider/dist/index.es.js [Client Component SSR]
./node_modules/@walletconnect/ethereum-provider/dist/index.es.js [Client Component SSR]
./node_modules/@privy-io/react-auth/dist/esm/SignRequestScreen-NOqdMm22.mjs [Client Component SSR] ./node_modules/@privy-io/react-auth/dist/esm/index.mjs [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Server Component] ./src/app/layout.tsx [Server Component]

https://nextjs.org/docs/messages/module-not-found

./node_modules/thread-stream/test/bench.test.js:3:18 Module not found: Can't resolve 'tap' 1 | 'use strict' 2 |

3 | const { test } = require('tap') | ^^^^^^^^^^^^^^ 4 | const { join } = require('path') 5 | const ThreadStream = require('..') 6 | const { file } = require('./helper')

Import trace: Client Component SSR: ./node_modules/thread-stream/test/bench.test.js [Client Component SSR] ./node_modules/thread-stream/index.js [Client Component SSR] ./node_modules/pino/lib/transport.js [Client Component SSR] ./node_modules/pino/pino.js [Client Component SSR] ./node_modules/@walletconnect/universal-provider/dist/index.es.js [Client Component SSR]
./node_modules/@walletconnect/ethereum-provider/dist/index.es.js [Client Component SSR]
./node_modules/@privy-io/react-auth/dist/esm/SignRequestScreen-NOqdMm22.mjs [Client Component SSR] ./node_modules/@privy-io/react-auth/dist/esm/index.mjs [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Server Component] ./src/app/layout.tsx [Server Component]

https://nextjs.org/docs/messages/module-not-found

./node_modules/thread-stream/test/bundlers.test.js:3:18 Module not found: Can't resolve 'tap' 1 | 'use strict' 2 |

3 | const { test } = require('tap') | ^^^^^^^^^^^^^^ 4 | const { join } = require('path') 5 | const { file } = require('./helper') 6 | const ThreadStream = require('..')

Import trace: Client Component SSR: ./node_modules/thread-stream/test/bundlers.test.js [Client Component SSR] ./node_modules/thread-stream/index.js [Client Component SSR] ./node_modules/pino/lib/transport.js [Client Component SSR] ./node_modules/pino/pino.js [Client Component SSR] ./node_modules/@walletconnect/universal-provider/dist/index.es.js [Client Component SSR]
./node_modules/@walletconnect/ethereum-provider/dist/index.es.js [Client Component SSR]
./node_modules/@privy-io/react-auth/dist/esm/SignRequestScreen-NOqdMm22.mjs [Client Component SSR] ./node_modules/@privy-io/react-auth/dist/esm/index.mjs [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Server Component] ./src/app/layout.tsx [Server Component]

https://nextjs.org/docs/messages/module-not-found

./node_modules/thread-stream/test/commonjs-fallback.test.js:3:18 Module not found: Can't resolve 'tap' 1 | 'use strict' 2 |

3 | const { test } = require('tap') | ^^^^^^^^^^^^^^ 4 | const { join } = require('path') 5 | const { MessageChannel } = require('worker_threads') 6 | const { once } = require('events')

Import trace: Client Component SSR: ./node_modules/thread-stream/test/commonjs-fallback.test.js [Client Component SSR] ./node_modules/thread-stream/index.js [Client Component SSR] ./node_modules/pino/lib/transport.js [Client Component SSR] ./node_modules/pino/pino.js [Client Component SSR] ./node_modules/@walletconnect/universal-provider/dist/index.es.js [Client Component SSR]
./node_modules/@walletconnect/ethereum-provider/dist/index.es.js [Client Component SSR]
./node_modules/@privy-io/react-auth/dist/esm/SignRequestScreen-NOqdMm22.mjs [Client Component SSR] ./node_modules/@privy-io/react-auth/dist/esm/index.mjs [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Server Component] ./src/app/layout.tsx [Server Component]

https://nextjs.org/docs/messages/module-not-found

./node_modules/thread-stream/test/end.test.js:3:18 Module not found: Can't resolve 'tap' 1 | 'use strict' 2 |

3 | const { test } = require('tap') | ^^^^^^^^^^^^^^ 4 | const { join } = require('path') 5 | const { readFile } = require('fs') 6 | const { file } = require('./helper')

Import trace: Client Component SSR: ./node_modules/thread-stream/test/end.test.js [Client Component SSR] ./node_modules/thread-stream/index.js [Client Component SSR] ./node_modules/pino/lib/transport.js [Client Component SSR] ./node_modules/pino/pino.js [Client Component SSR] ./node_modules/@walletconnect/universal-provider/dist/index.es.js [Client Component SSR]
./node_modules/@walletconnect/ethereum-provider/dist/index.es.js [Client Component SSR]
./node_modules/@privy-io/react-auth/dist/esm/SignRequestScreen-NOqdMm22.mjs [Client Component SSR] ./node_modules/@privy-io/react-auth/dist/esm/index.mjs [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Server Component] ./src/app/layout.tsx [Server Component]

https://nextjs.org/docs/messages/module-not-found

./node_modules/thread-stream/test/esm.test.mjs:1:1 Module not found: Can't resolve 'tap'

1 | import { test } from 'tap' | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 2 | import { readFile } from 'fs' 3 | import ThreadStream from '../index.js' 4 | import { join } from 'desm'

Import trace: Client Component SSR: ./node_modules/thread-stream/test/esm.test.mjs [Client Component SSR] ./node_modules/thread-stream/index.js [Client Component SSR] ./node_modules/pino/lib/transport.js [Client Component SSR] ./node_modules/pino/pino.js [Client Component SSR] ./node_modules/@walletconnect/universal-provider/dist/index.es.js [Client Component SSR]
./node_modules/@walletconnect/ethereum-provider/dist/index.es.js [Client Component SSR]
./node_modules/@privy-io/react-auth/dist/esm/SignRequestScreen-NOqdMm22.mjs [Client Component SSR] ./node_modules/@privy-io/react-auth/dist/esm/index.mjs [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Server Component] ./src/app/layout.tsx [Server Component]

https://nextjs.org/docs/messages/module-not-found

./node_modules/thread-stream/test/helper.js:7:11 Module not found: Can't resolve 'tap' 5 | const { unlinkSync } = require('fs') 6 | const why = require('why-is-node-running')

7 | const t = require('tap') | ^^^^^^^^^^^^^^ 8 | 9 | const files = [] 10 | let count = 0

Import trace: Client Component SSR: ./node_modules/thread-stream/test/helper.js [Client Component SSR] ./node_modules/thread-stream/index.js [Client Component SSR] ./node_modules/pino/lib/transport.js [Client Component SSR] ./node_modules/pino/pino.js [Client Component SSR] ./node_modules/@walletconnect/universal-provider/dist/index.es.js [Client Component SSR]
./node_modules/@walletconnect/ethereum-provider/dist/index.es.js [Client Component SSR]
./node_modules/@privy-io/react-auth/dist/esm/SignRequestScreen-NOqdMm22.mjs [Client Component SSR] ./node_modules/@privy-io/react-auth/dist/esm/index.mjs [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Server Component] ./src/app/layout.tsx [Server Component]

https://nextjs.org/docs/messages/module-not-found

./node_modules/thread-stream/test/multibyte-chars.test.mjs:1:1 Module not found: Can't resolve 'tap'

1 | import { test } from 'tap' | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 2 | import { readFile } from 'fs' 3 | import ThreadStream from '../index.js' 4 | import { join } from 'desm'

Import trace: Client Component SSR: ./node_modules/thread-stream/test/multibyte-chars.test.mjs [Client Component SSR] ./node_modules/thread-stream/index.js [Client Component SSR] ./node_modules/pino/lib/transport.js [Client Component SSR] ./node_modules/pino/pino.js [Client Component SSR] ./node_modules/@walletconnect/universal-provider/dist/index.es.js [Client Component SSR]
./node_modules/@walletconnect/ethereum-provider/dist/index.es.js [Client Component SSR]
./node_modules/@privy-io/react-auth/dist/esm/SignRequestScreen-NOqdMm22.mjs [Client Component SSR] ./node_modules/@privy-io/react-auth/dist/esm/index.mjs [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Server Component] ./src/app/layout.tsx [Server Component]

https://nextjs.org/docs/messages/module-not-found

./node_modules/thread-stream/test/string-limit-2.test.js:3:11 Module not found: Can't resolve 'tap' 1 | 'use strict' 2 |

3 | const t = require('tap') | ^^^^^^^^^^^^^^ 4 | const { join } = require('path') 5 | const { file } = require('./helper') 6 | const { createReadStream } = require('fs')

Import trace: Client Component SSR: ./node_modules/thread-stream/test/string-limit-2.test.js [Client Component SSR] ./node_modules/thread-stream/index.js [Client Component SSR] ./node_modules/pino/lib/transport.js [Client Component SSR] ./node_modules/pino/pino.js [Client Component SSR] ./node_modules/@walletconnect/universal-provider/dist/index.es.js [Client Component SSR]
./node_modules/@walletconnect/ethereum-provider/dist/index.es.js [Client Component SSR]
./node_modules/@privy-io/react-auth/dist/esm/SignRequestScreen-NOqdMm22.mjs [Client Component SSR] ./node_modules/@privy-io/react-auth/dist/esm/index.mjs [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Server Component] ./src/app/layout.tsx [Server Component]

https://nextjs.org/docs/messages/module-not-found

./node_modules/thread-stream/test/string-limit.test.js:3:11 Module not found: Can't resolve 'tap' 1 | 'use strict' 2 |

3 | const t = require('tap') | ^^^^^^^^^^^^^^ 4 | const { join } = require('path') 5 | const { file } = require('./helper') 6 | const { stat } = require('fs')

Import trace: Client Component SSR: ./node_modules/thread-stream/test/string-limit.test.js [Client Component SSR] ./node_modules/thread-stream/index.js [Client Component SSR] ./node_modules/pino/lib/transport.js [Client Component SSR] ./node_modules/pino/pino.js [Client Component SSR] ./node_modules/@walletconnect/universal-provider/dist/index.es.js [Client Component SSR]
./node_modules/@walletconnect/ethereum-provider/dist/index.es.js [Client Component SSR]
./node_modules/@privy-io/react-auth/dist/esm/SignRequestScreen-NOqdMm22.mjs [Client Component SSR] ./node_modules/@privy-io/react-auth/dist/esm/index.mjs [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Server Component] ./src/app/layout.tsx [Server Component]

https://nextjs.org/docs/messages/module-not-found

./node_modules/thread-stream/test/thread-management.test.js:3:18 Module not found: Can't resolve 'tap' 1 | 'use strict' 2 |

3 | const { test } = require('tap') | ^^^^^^^^^^^^^^ 4 | const { fork } = require('child_process') 5 | const { join } = require('path') 6 | const { readFile } = require('fs').promises

Import trace: Client Component SSR: ./node_modules/thread-stream/test/thread-management.test.js [Client Component SSR] ./node_modules/thread-stream/index.js [Client Component SSR] ./node_modules/pino/lib/transport.js [Client Component SSR] ./node_modules/pino/pino.js [Client Component SSR] ./node_modules/@walletconnect/universal-provider/dist/index.es.js [Client Component SSR]
./node_modules/@walletconnect/ethereum-provider/dist/index.es.js [Client Component SSR]
./node_modules/@privy-io/react-auth/dist/esm/SignRequestScreen-NOqdMm22.mjs [Client Component SSR] ./node_modules/@privy-io/react-auth/dist/esm/index.mjs [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Server Component] ./src/app/layout.tsx [Server Component]

https://nextjs.org/docs/messages/module-not-found

./node_modules/thread-stream/test/transpiled.test.js:3:18 Module not found: Can't resolve 'tap' 1 | 'use strict' 2 |

3 | const { test } = require('tap') | ^^^^^^^^^^^^^^ 4 | const { join } = require('path') 5 | const { file } = require('./helper') 6 | const ThreadStream = require('..')

Import trace: Client Component SSR: ./node_modules/thread-stream/test/transpiled.test.js [Client Component SSR] ./node_modules/thread-stream/index.js [Client Component SSR] ./node_modules/pino/lib/transport.js [Client Component SSR] ./node_modules/pino/pino.js [Client Component SSR] ./node_modules/@walletconnect/universal-provider/dist/index.es.js [Client Component SSR]
./node_modules/@walletconnect/ethereum-provider/dist/index.es.js [Client Component SSR]
./node_modules/@privy-io/react-auth/dist/esm/SignRequestScreen-NOqdMm22.mjs [Client Component SSR] ./node_modules/@privy-io/react-auth/dist/esm/index.mjs [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Server Component] ./src/app/layout.tsx [Server Component]

https://nextjs.org/docs/messages/module-not-found

./node_modules/thread-stream/test/indexes.js:3:14 Module not found: Can't resolve 'tape' 1 | 'use strict' 2 |

3 | const test = require('tape') | ^^^^^^^^^^^^^^^ 4 | const indexes = require('../lib/indexes') 5 | 6 | for (const index of Object.keys(indexes)) {

Import trace: Client Component SSR: ./node_modules/thread-stream/test/indexes.js [Client Component SSR] ./node_modules/thread-stream/index.js [Client Component SSR] ./node_modules/pino/lib/transport.js [Client Component SSR] ./node_modules/pino/pino.js [Client Component SSR] ./node_modules/@walletconnect/universal-provider/dist/index.es.js [Client Component SSR]
./node_modules/@walletconnect/ethereum-provider/dist/index.es.js [Client Component SSR]
./node_modules/@privy-io/react-auth/dist/esm/SignRequestScreen-NOqdMm22.mjs [Client Component SSR] ./node_modules/@privy-io/react-auth/dist/esm/index.mjs [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Server Component] ./src/app/layout.tsx [Server Component]

https://nextjs.org/docs/messages/module-not-found

./node_modules/thread-stream/test/helper.js:6:13 Module not found: Can't resolve 'why-is-node-running' 4 | const { tmpdir } = require('os') 5 | const { unlinkSync } = require('fs')

6 | const why = require('why-is-node-running') | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 7 | const t = require('tap') 8 | 9 | const files = []

Import trace: Client Component SSR: ./node_modules/thread-stream/test/helper.js [Client Component SSR] ./node_modules/thread-stream/index.js [Client Component SSR] ./node_modules/pino/lib/transport.js [Client Component SSR] ./node_modules/pino/pino.js [Client Component SSR] ./node_modules/@walletconnect/universal-provider/dist/index.es.js [Client Component SSR]
./node_modules/@walletconnect/ethereum-provider/dist/index.es.js [Client Component SSR]
./node_modules/@privy-io/react-auth/dist/esm/SignRequestScreen-NOqdMm22.mjs [Client Component SSR] ./node_modules/@privy-io/react-auth/dist/esm/index.mjs [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Client Component SSR] ./src/components/providers/PrivyProvider.tsx [Server Component] ./src/app/layout.tsx [Server Component]

https://nextjs.org/docs/messages/module-not-found

at <unknown> (https://nextjs.org/docs/messages/module-not-found)
at <unknown> (https://nextjs.org/docs/messages/module-not-found)
at <unknown> (https://nextjs.org/docs/messages/module-not-found)
at <unknown> (https://nextjs.org/docs/messages/module-not-found)
at <unknown> ([next]/internal/font/google/geist_mono_8d43a2aa.module.css:8:9)
at <unknown> (https://nextjs.org/docs/messages/module-not-found)
at <unknown> ([next]/internal/font/google/geist_mono_8d43a2aa.module.css:17:9)
at <unknown> (https://nextjs.org/docs/messages/module-not-found)
at <unknown> ([next]/internal/font/google/geist_mono_8d43a2aa.module.css:26:9)
at <unknown> (https://nextjs.org/docs/messages/module-not-found)
at <unknown> (https://nextjs.org/docs/messages/module-not-found)
at <unknown> (https://nextjs.org/docs/messages/module-not-found)
at <unknown> (https://nextjs.org/docs/messages/module-not-found)
at <unknown> (https://nextjs.org/docs/messages/module-not-found)
at <unknown> (https://nextjs.org/docs/messages/module-not-found)
at <unknown> (https://nextjs.org/docs/messages/module-not-found)
at <unknown> (https://nextjs.org/docs/messages/module-not-found)
at <unknown> (https://nextjs.org/docs/messages/module-not-found)
at <unknown> (https://nextjs.org/docs/messages/module-not-found)
at <unknown> (https://nextjs.org/docs/messages/module-not-found)
at <unknown> (https://nextjs.org/docs/messages/module-not-found)
at <unknown> (https://nextjs.org/docs/messages/module-not-found)
at <unknown> (https://nextjs.org/docs/messages/module-not-found)
at <unknown> (https://nextjs.org/docs/messages/module-not-found)
at <unknown> (https://nextjs.org/docs/messages/module-not-found)
at <unknown> (https://nextjs.org/docs/messages/module-not-found)
at <unknown> (https://nextjs.org/docs/messages/module-not-found)
at <unknown> (https://nextjs.org/docs/messages/module-not-found)

extent analysis

TL;DR

The most likely fix is to correct the invalid next.config.ts options and resolve the missing module issues.

Guidance

  1. Correct invalid next.config.ts options: The error message indicates an unrecognized key trubo in the experimental object. Remove or correct this option to fix the issue.
  2. Resolve missing module issues: Many of the errors are due to missing modules such as tap, desm, fastbench, pino-elasticsearch, and why-is-node-running. Ensure these modules are installed and properly imported in your code.
  3. Check import maps and module resolutions: Some errors are related to import maps and module resolutions. Verify that your import maps are correctly configured and that modules are being resolved as expected.

Example

No specific code example is provided as the issue is related to configuration and module resolution.

Notes

The provided error messages indicate a range of issues, including invalid configuration options, missing modules, and import resolution problems. Resolving these issues will likely require a combination of correcting configuration files, installing missing modules, and verifying import maps and module resolutions.

Recommendation

Apply a workaround by correcting the next.config.ts options and resolving the missing module issues. This should help to resolve the errors and allow the build process to complete successfully.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

nextjs - 💡(How to fix) Fix Build Isuee after migrate from Next.js 15 to Next.js 16 [1 comments, 2 participants]