Skip to content
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

Large bundle size as of NextJS 13.0.2 due to Prisma + 2x @swc/core (musl + gnu) #42641

Closed
1 task done
erawk opened this issue Nov 8, 2022 · 63 comments
Closed
1 task done
Labels
bug Issue was opened via the bug report template. linear: next Confirmed issue that is tracked by the Next.js team. locked Pages Router Related to Pages Router. SWC Related to minification/transpilation in Next.js.

Comments

@erawk
Copy link

erawk commented Nov 8, 2022

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

This is from a Vercel build. I've added the output below:


> [email protected] next:info
--
11:16:16.723 | > next info
11:16:16.723 |  
11:16:17.698 |  
11:16:17.699 | Operating System:
11:16:17.699 | Platform: linux
11:16:17.699 | Arch: x64
11:16:17.699 | Version: #1 SMP Thu Sep 29 01:01:23 UTC 2022
11:16:17.699 | Binaries:
11:16:17.699 | Node: 14.20.0
11:16:17.699 | npm: 8.11.0
11:16:17.699 | Yarn: 1.22.17
11:16:17.699 | pnpm: 6.35.0
11:16:17.700 | Relevant packages:
11:16:17.700 | next: 13.0.3-canary.1
11:16:17.700 | eslint-config-next: 13.0.2
11:16:17.700 | react: 18.2.0
11:16:17.700 | react-dom: 18.2.0

All serverless functions suffer this. Here's an example:

Warning: Max serverless function size of 50 MB compressed or 250 MB uncompressed reached
--
11:16:47.301 | Serverless Function's page: 404.js
11:16:47.307 | Large Dependencies                     Uncompressed size  Compressed size
11:16:47.308 | node_modules/.prisma/client                      44.9 MB          15.6 MB
11:16:47.308 | node_modules/@swc/core-linux-x64-gnu             43.1 MB          14.4 MB
11:16:47.308 | node_modules/@swc/core-linux-x64-musl            42.7 MB          14.3 MB
11:16:47.308 | node_modules/next/dist                            8.2 MB          2.19 MB
11:16:47.308 | node_modules/webpack/lib                          3.3 MB           848 kB
11:16:47.308 | node_modules/react-dom/cjs                       1.72 MB           414 kB
11:16:47.308 | node_modules/@prisma/client                      1.23 MB           267 kB
11:16:47.308 | node_modules/terser/dist                          959 kB           183 kB
11:16:47.308 | node_modules/libphonenumber-js/build              355 kB           118 kB
11:16:47.309 | node_modules/libphonenumber-js/es6                326 kB           108 kB
11:16:47.309 | .next/server/chunks                               469 kB           108 kB
11:16:47.309 | node_modules/webpack/schemas                      559 kB          87.8 kB

What browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

No response

Describe the Bug

Our NextJS on Vercel no longer are deployable as of NextJS 13.0.2 due to exceeding the max payload size of Serverless functions.

Here's an example of the basic 404 page (which does not do any Prisma-related queries):

Warning: Max serverless function size of 50 MB compressed or 250 MB uncompressed reached
--
11:16:47.301 | Serverless Function's page: 404.js
11:16:47.307 | Large Dependencies                     Uncompressed size  Compressed size
11:16:47.308 | node_modules/.prisma/client                      44.9 MB          15.6 MB
11:16:47.308 | node_modules/@swc/core-linux-x64-gnu             43.1 MB          14.4 MB
11:16:47.308 | node_modules/@swc/core-linux-x64-musl            42.7 MB          14.3 MB
11:16:47.308 | node_modules/next/dist                            8.2 MB          2.19 MB
11:16:47.308 | node_modules/webpack/lib                          3.3 MB           848 kB
11:16:47.308 | node_modules/react-dom/cjs                       1.72 MB           414 kB
11:16:47.308 | node_modules/@prisma/client                      1.23 MB           267 kB
11:16:47.308 | node_modules/terser/dist                          959 kB           183 kB
11:16:47.308 | node_modules/libphonenumber-js/build              355 kB           118 kB
11:16:47.309 | node_modules/libphonenumber-js/es6                326 kB           108 kB
11:16:47.309 | .next/server/chunks                               469 kB           108 kB
11:16:47.309 | node_modules/webpack/schemas                      559 kB          87.8 kB

Why are two versions of SWC core being included? I think that's the main culprit.

Here is an open ticket in the SWC project that highlights how both gnu and musl libraries are included. Is there anything we can do to pick a single one for Vercel builds?

I noticed in the 13.02 release notes that Prisma being added to externals list. Could this be a side effect as well?

Expected Behavior

Serverless functions do not include both gnu and musl and do not exceed the threshold for deployment on Vercel.

NextJS version 13.0.1 succeeds.

Link to reproduction

https://github.com/erawk/next-app-bug-report-serverless-functions-payload-size

To Reproduce

  1. Create a new NextJS app
  2. Add in Prisma with a basic schema
  3. Build a serverless function page
  4. Observe both Prisma, @swc/core for both musl and gnu included

Screen Shot 2022-11-08 at 12 29 27

NEXT-1356

@erawk erawk added the bug Issue was opened via the bug report template. label Nov 8, 2022
@balazsorban44
Copy link
Member

balazsorban44 commented Nov 9, 2022

Hi, given the reproduction, I am unable to reproduce the issue. Here are the numbers I see upon deploying:

Route (pages)                                           Size     First Load JS
--
01:59:01.719 | ┌ ○ /                                    274 B          78.7 kB
01:59:01.719 | └ ○ /404                                 212 B          78.6 kB
01:59:01.719 | + First Load JS shared by all            78.4 kB
01:59:01.720 | ├ chunks/framework-3911a61406e859ea.js   45.5 kB
01:59:01.720 | ├ chunks/main-961c23d3ed15b7d4.js        31.7 kB
01:59:01.720 | ├ chunks/pages/_app-ef9da0a6572b3989.js  243 B
01:59:01.720 | └ chunks/webpack-adbad1f85bb5cebc.js     962 B

Can you make sure the reproduction is complete? libphonenumber-js is also not present for example.

Build a serverless function page

Are you referring to an API route? Could you add one that seems to fail the build?

@balazsorban44 balazsorban44 added the please add a complete reproduction Please add a complete reproduction. label Nov 9, 2022
@JoeKarow
Copy link

JoeKarow commented Nov 9, 2022

I was seeing similar results on 13.0.2

Traced Next.js server files in: 18.254s
--
01:41:37.433 | Warning: Max serverless function size of 50 MB compressed or 250 MB uncompressed reached
01:41:37.433 | Serverless Function's page: api/auth/[...nextauth].js
01:41:37.450 | Large Dependencies                                                 Uncompressed size  Compressed size
01:41:37.450 | node_modules/.pnpm/@[email protected][email protected]                         45.7 MB          15.8 MB
01:41:37.450 | node_modules/.pnpm/@[email protected]                            43.2 MB          14.4 MB
01:41:37.451 | node_modules/.pnpm/@[email protected]                           42.7 MB          14.2 MB
01:41:37.451 | node_modules/.pnpm/[email protected]                                  8.58 MB           3.6 MB
01:41:37.451 | node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y                    12.2 MB          3.12 MB
01:41:37.451 | node_modules/.pnpm/[email protected]_@[email protected]                           3.93 MB           953 kB
01:41:37.451 | apps/app/.next                                                               4.71 MB           825 kB
01:41:37.451 | node_modules/.pnpm/[email protected][email protected]                             1.72 MB           415 kB
01:41:37.451 | node_modules/.pnpm/@[email protected]_etrvyeh76ry4n4cxjc37hheh7y             908 kB           321 kB
01:41:37.453 | node_modules/.pnpm/@[email protected]_rpbu45oak5njhv4mrqfytqjmse             908 kB           321 kB
01:41:37.454 | node_modules/.pnpm/[email protected]                                  844 kB           312 kB
01:41:37.454 | node_modules/.pnpm/[email protected]                                          1.18 MB           213 kB
01:41:37.454 | node_modules/.pnpm/[email protected]                                              962 kB           185 kB
01:41:37.454 |  
01:41:37.454 | All dependencies                                                               55 MB          56.3 MB
01:41:37.458 | Serverless Function's page: api/trpc/[trpc].js
01:41:37.467 | Large Dependencies                                                 Uncompressed size  Compressed size
01:41:37.467 | node_modules/.pnpm/@[email protected][email protected]                         45.7 MB          15.8 MB
01:41:37.467 | node_modules/.pnpm/@[email protected]                            43.2 MB          14.4 MB
01:41:37.467 | node_modules/.pnpm/@[email protected]                           42.7 MB          14.2 MB
01:41:37.467 | node_modules/.pnpm/[email protected]                                  8.58 MB           3.6 MB
01:41:37.467 | node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y                    12.2 MB          3.12 MB
01:41:37.468 | node_modules/.pnpm/[email protected]_@[email protected]                           3.93 MB           953 kB
01:41:37.468 | apps/app/.next                                                               4.71 MB           825 kB
01:41:37.468 | node_modules/.pnpm/[email protected][email protected]                             1.72 MB           415 kB
01:41:37.468 | node_modules/.pnpm/@[email protected]_etrvyeh76ry4n4cxjc37hheh7y             908 kB           321 kB
01:41:37.468 | node_modules/.pnpm/@[email protected]_rpbu45oak5njhv4mrqfytqjmse             908 kB           321 kB
01:41:37.468 | node_modules/.pnpm/[email protected]                                  844 kB           312 kB
01:41:37.468 | node_modules/.pnpm/[email protected]                                          1.18 MB           213 kB
01:41:37.469 | node_modules/.pnpm/[email protected]                                              962 kB           185 kB
01:41:37.469 |  
01:41:37.469 | All dependencies                                                             55.3 MB          56.3 MB
01:41:37.469 | Max serverless function size was exceeded for 2 functions
01:41:37.479 | Created all serverless functions in: 10.230s
01:41:37.490 | Collected static files (public/, static/, .next/static): 7.761ms
01:41:43.350 | Build Completed in /vercel/output [3m]
01:41:55.987 | Failed to process build result for "api/auth/[...nextauth]". Data: {"type":"Lambda"}.
01:41:55.989 | Error: The Serverless Function "api/auth/[...nextauth]" is 55.12mb which exceeds the maximum size limit of 50mb. Learn More: https://vercel.link/serverless-function-size

Rolling back to 13.0.1 fixed the builds.

Associated repository

@erawk
Copy link
Author

erawk commented Nov 9, 2022

@balazsorban44 Thanks for the reply! Indeed, the problem is with API routes, as @JoeKarow also notes.

Rolling back to 13.0.1 solved it for us as well. Notice that @JoeKarow is also using Prisma.

There's a bunch more infrastructure to set-up to reproduce the bug, but I think there's two strong cases so far that there's an issue here.

@balazsorban44
Copy link
Member

Thanks, I'm having a look at the second reproduction.

It's a monorepo, so I'm currently trying to cut down to the core minimal/reproduction. (As a side note, providing a minimal but complete reproduction while opening an issue is always preferable for a quicker resolution 💚)

@balazsorban44 balazsorban44 added type: needs investigation Webpack Related to Webpack with Next.js. and removed please add a complete reproduction Please add a complete reproduction. labels Nov 9, 2022
@erawk
Copy link
Author

erawk commented Nov 10, 2022

Hey @balazsorban44 @JoeKarow

I've tried to update a barebones repro with some of the signals between my private repo where this is happening and @JoeKarow 's public repo. I can't seem to get a repro with my attempts thus far:

Common packages:

  • prisma
  • @next/bundle-analyzer
  • superjson

In my repro app, I have an API route, and both an SSR and an SSG route that invokes Prisma. I still can't repro it.

https://github.com/erawk/next-app-bug-report-serverless-functions-payload-size

The current fix in our app so that we can run on 13.0.2 is to add an entry in package.json with a postbuild script:

  "postbuild": "sh bin/postbuild.sh",

That has a stanza that looks like

# Make the large files zero bytes for the `musl` SWC
echo "Nuking unnecessary @swc/core files in node_modules/@swc/core-linux-x64-musl"
DISK_USAGE_MUSL_BEFORE=`du -h node_modules/@swc/core-linux-x64-musl/*`
echo "${DISK_USAGE_MUSL_BEFORE}"
echo '' > node_modules/@swc/core-linux-x64-musl/swc
echo '' > node_modules/@swc/core-linux-x64-musl/swc.linux-x64-musl.node
DISK_USAGE_MUSL_AFTER=`du -h node_modules/@swc/core-linux-x64-musl/*`
echo "${DISK_USAGE_MUSL_AFTER}"

This effectively wipes out the unnecessary SWC musl libc that we don't need.

This is super hacky and really has a ton of unintended consequences if we actually do end up needing musl libc in @swc/core.

My guess two fold:

  1. The inclusion of both gnu and musl @swc/core modules has always been there, as per this SWC issue
  2. With the Prisma adding as an external, the Prisma binary is being added

The combination of both has pushed this beyond the allowable 50MB threshold.

I've confirmed in the repro repo that both the -gnu and -musl versions of @swc/core are present via the postbuild.sh script:

...
What is the state of @swc/core modules in node_modules/@swc/core-linux-x64-*
--
10:24:28.344 | 76M	node_modules/@swc/core-linux-x64-gnu
10:24:28.345 | 76M	node_modules/@swc/core-linux-x64-musl

@shuding
Copy link
Member

shuding commented Nov 10, 2022

Rolling back to 13.0.1 fixed the builds.

Hey! Can you share a list of asset/dependency sizes when deploying 13.0.1? Then we can tell which part actually became larger in the newer version.

@JoeKarow
Copy link

@shuding I'm not sure how I can find out that info. I'm deploying to Vercel and a successful build doesn't show the size of the bundled lambdas.

Here are two Vercel full build logs from today from some preview branches, one successful build on 13.0.1 and a failed build on 13.0.2.

Successful 13.0.1 build
[15:10:41.369] Cloning github.com/weareinreach/InReach (Branch: renovate/lock-file-maintenance, Commit: e88f6c4)
[15:10:41.913] Previous build caches not available
[15:10:43.077] Cloning completed: 1.709s
[15:10:43.078] Running "npx turbo-ignore"
[15:10:44.277] npx: installed 1 in 1.113s
[15:10:44.295] ≫ Using Turborepo to determine if this project is affected by the commit...
[15:10:44.296] ≫ Inferred `@weareinreach/app` as scope from "/vercel/path0/apps/app/package.json"
[15:10:44.296] ≫ No previous deployments found for this project on "renovate/lock-file-maintenance."
[15:10:44.296] ≫ Proceeding with build...
[15:10:45.052] Running "vercel build"
[15:10:45.700] Vercel CLI 28.4.17
[15:10:46.081] Detected ENABLE_EXPERIMENTAL_COREPACK=1 and "[email protected]" in package.json
[15:10:46.461] Installing dependencies...
[15:10:47.989] Scope: all 10 workspace projects
[15:10:48.329] ../..                                    | Progress: resolved 1, reused 0, downloaded 0, added 0
[15:10:48.981] ../..                                    |    +2289 ++++++++++++++++++++++++++++
[15:10:49.357] ../..                                    | Progress: resolved 2289, reused 0, downloaded 0, added 0
[15:10:49.953] Packages are hard linked from the content-addressable store to the virtual store.
[15:10:49.953]   Content-addressable store is at: /vercel/.local/share/pnpm/store/v3
[15:10:49.953]   Virtual store is at:             ../../node_modules/.pnpm
[15:10:50.333] ../..                                    | Progress: resolved 2289, reused 0, downloaded 14, added 12
[15:10:51.359] ../..                                    | Progress: resolved 2289, reused 0, downloaded 41, added 38
[15:10:52.348] ../..                                    | Progress: resolved 2289, reused 0, downloaded 59, added 60
[15:10:53.376] ../..                                    | Progress: resolved 2289, reused 0, downloaded 78, added 77
[15:10:54.381] ../..                                    | Progress: resolved 2289, reused 0, downloaded 111, added 113
[15:10:55.396] ../..                                    | Progress: resolved 2289, reused 0, downloaded 146, added 148
[15:10:56.411] ../..                                    | Progress: resolved 2289, reused 0, downloaded 208, added 211
[15:10:57.417] ../..                                    | Progress: resolved 2289, reused 0, downloaded 257, added 263
[15:10:58.443] ../..                                    | Progress: resolved 2289, reused 0, downloaded 290, added 296
[15:10:59.446] ../..                                    | Progress: resolved 2289, reused 0, downloaded 310, added 319
[15:11:00.447] ../..                                    | Progress: resolved 2289, reused 0, downloaded 349, added 356
[15:11:01.448] ../..                                    | Progress: resolved 2289, reused 0, downloaded 390, added 398
[15:11:02.450] ../..                                    | Progress: resolved 2289, reused 0, downloaded 399, added 407
[15:11:03.450] ../..                                    | Progress: resolved 2289, reused 0, downloaded 427, added 431
[15:11:04.455] ../..                                    | Progress: resolved 2289, reused 0, downloaded 458, added 465
[15:11:05.455] ../..                                    | Progress: resolved 2289, reused 0, downloaded 500, added 507
[15:11:06.458] ../..                                    | Progress: resolved 2289, reused 0, downloaded 561, added 567
[15:11:07.459] ../..                                    | Progress: resolved 2289, reused 0, downloaded 641, added 649
[15:11:08.463] ../..                                    | Progress: resolved 2289, reused 0, downloaded 707, added 712
[15:11:09.465] ../..                                    | Progress: resolved 2289, reused 0, downloaded 757, added 765
[15:11:10.482] ../..                                    | Progress: resolved 2289, reused 0, downloaded 801, added 809
[15:11:11.482] ../..                                    | Progress: resolved 2289, reused 0, downloaded 839, added 848
[15:11:12.486] ../..                                    | Progress: resolved 2289, reused 0, downloaded 897, added 907
[15:11:13.487] ../..                                    | Progress: resolved 2289, reused 0, downloaded 936, added 948
[15:11:14.497] ../..                                    | Progress: resolved 2289, reused 0, downloaded 1037, added 1051
[15:11:15.506] ../..                                    | Progress: resolved 2289, reused 0, downloaded 1162, added 1173
[15:11:16.505] ../..                                    | Progress: resolved 2289, reused 0, downloaded 1271, added 1285
[15:11:17.508] ../..                                    | Progress: resolved 2289, reused 0, downloaded 1343, added 1358
[15:11:18.518] ../..                                    | Progress: resolved 2289, reused 0, downloaded 1402, added 1415
[15:11:19.519] ../..                                    | Progress: resolved 2289, reused 0, downloaded 1441, added 1456
[15:11:20.519] ../..                                    | Progress: resolved 2289, reused 0, downloaded 1499, added 1512
[15:11:21.521] ../..                                    | Progress: resolved 2289, reused 0, downloaded 1562, added 1578
[15:11:22.523] ../..                                    | Progress: resolved 2289, reused 0, downloaded 1630, added 1646
[15:11:23.523] ../..                                    | Progress: resolved 2289, reused 0, downloaded 1717, added 1734
[15:11:24.525] ../..                                    | Progress: resolved 2289, reused 0, downloaded 1762, added 1778
[15:11:25.526] ../..                                    | Progress: resolved 2289, reused 0, downloaded 1831, added 1843
[15:11:26.527] ../..                                    | Progress: resolved 2289, reused 0, downloaded 1867, added 1889
[15:11:27.530] ../..                                    | Progress: resolved 2289, reused 0, downloaded 1910, added 1932
[15:11:28.765] ../..                                    | Progress: resolved 2289, reused 0, downloaded 1956, added 1981
[15:11:29.771] ../..                                    | Progress: resolved 2289, reused 0, downloaded 1986, added 2006
[15:11:30.771] ../..                                    | Progress: resolved 2289, reused 0, downloaded 2049, added 2074
[15:11:31.776] ../..                                    | Progress: resolved 2289, reused 0, downloaded 2125, added 2151
[15:11:32.903] ../..                                    | Progress: resolved 2289, reused 0, downloaded 2206, added 2224
[15:11:33.937] ../..                                    | Progress: resolved 2289, reused 0, downloaded 2254, added 2280
[15:11:34.969] ../..                                    | Progress: resolved 2289, reused 0, downloaded 2257, added 2283
[15:11:35.969] ../..                                    | Progress: resolved 2289, reused 0, downloaded 2258, added 2284
[15:11:38.710] ../..                                    | Progress: resolved 2289, reused 0, downloaded 2259, added 2284
[15:11:39.935] ../..                                    | Progress: resolved 2289, reused 0, downloaded 2262, added 2288
[15:11:41.045] ../..                                    | Progress: resolved 2289, reused 0, downloaded 2263, added 2289, done
[15:11:42.239] .../node_modules/@prisma/client postinstall$ node scripts/postinstall.js
[15:11:42.240] .../node_modules/@prisma/engines postinstall$ node download/index.js
[15:11:42.240] .../node_modules/@prisma/engines postinstall$ node scripts/postinstall.js
[15:11:42.335] .../node_modules/core-js-pure postinstall$ node -e "try{require('./postinstall')}catch(e){}"
[15:11:42.381] .../[email protected]/node_modules/core-js postinstall$ node -e "try{require('./postinstall')}catch(e){}"
[15:11:42.517] .../node_modules/core-js-pure postinstall: Done
[15:11:42.727] .../[email protected]/node_modules/core-js postinstall: Done
[15:11:55.533] .../node_modules/@prisma/engines postinstall: Done
[15:11:56.330] .../node_modules/@prisma/engines postinstall: Done
[15:11:56.355] .../node_modules/@prisma/client postinstall: prisma:warn The postinstall script automatically ran `prisma generate` and did not find your `prisma/schema.prisma`.
[15:11:56.355] .../node_modules/@prisma/client postinstall: If you have a Prisma schema file in a custom path, you will need to run
[15:11:56.356] .../node_modules/@prisma/client postinstall: `prisma generate --schema=./path/to/your/schema.prisma` to generate Prisma Client.
[15:11:56.356] .../node_modules/@prisma/client postinstall: If you do not have a Prisma schema file yet, you can ignore this message.
[15:11:56.398] .../node_modules/@prisma/client postinstall: Done
[15:11:57.118] .../[email protected]/node_modules/esbuild postinstall$ node install.js
[15:11:57.119] .../node_modules/@swc/core postinstall$ node postinstall.js
[15:11:57.120] .../[email protected]/node_modules/esbuild postinstall$ node install.js
[15:11:57.120] .../.pnpm/[email protected]/node_modules/turbo postinstall$ node install.js
[15:11:57.426] .../[email protected]/node_modules/esbuild postinstall: Done
[15:11:57.426] .../node_modules/@swc/core postinstall: Done
[15:11:57.426] .../.pnpm/[email protected]/node_modules/turbo postinstall: Done
[15:11:57.435] .../[email protected]/node_modules/esbuild postinstall: Done
[15:11:57.448] .../[email protected]/node_modules/prisma preinstall$ node scripts/preinstall-entry.js
[15:11:57.544] .../[email protected]/node_modules/prisma preinstall: Done
[15:11:57.544] .../[email protected]/node_modules/prisma install$ node scripts/install-entry.js
[15:11:57.624] .../[email protected]/node_modules/prisma install: Done
[15:11:57.706] .../[email protected]/node_modules/cypress postinstall$ node index.js --exec install
[15:11:57.841] .../node_modules/@prisma/client postinstall$ node scripts/postinstall.js
[15:11:58.444] .../[email protected]/node_modules/cypress postinstall: Installing Cypress (version: 11.0.1)
[15:11:58.468] .../[email protected]/node_modules/cypress postinstall: [STARTED] Task without title.
[15:12:00.617] .../node_modules/@prisma/client postinstall: prisma:warn The postinstall script automatically ran `prisma generate` and did not find your `prisma/schema.prisma`.
[15:12:00.617] .../node_modules/@prisma/client postinstall: If you have a Prisma schema file in a custom path, you will need to run
[15:12:00.618] .../node_modules/@prisma/client postinstall: `prisma generate --schema=./path/to/your/schema.prisma` to generate Prisma Client.
[15:12:00.618] .../node_modules/@prisma/client postinstall: If you do not have a Prisma schema file yet, you can ignore this message.
[15:12:00.744] .../node_modules/@prisma/client postinstall: Done
[15:12:02.180] .../[email protected]/node_modules/cypress postinstall: [SUCCESS] Task without title.
[15:12:02.180] .../[email protected]/node_modules/cypress postinstall: [STARTED] Task without title.
[15:12:09.275] .../[email protected]/node_modules/cypress postinstall: [SUCCESS] Task without title.
[15:12:09.275] .../[email protected]/node_modules/cypress postinstall: [STARTED] Task without title.
[15:12:09.306] .../[email protected]/node_modules/cypress postinstall: [SUCCESS] Task without title.
[15:12:10.309] .../[email protected]/node_modules/cypress postinstall: You can now open Cypress by running: node_modules/.bin/cypress open
[15:12:10.309] .../[email protected]/node_modules/cypress postinstall: https://on.cypress.io/installing-cypress
[15:12:10.322] .../[email protected]/node_modules/cypress postinstall: Done
[15:12:11.305] 
[15:12:11.305] dependencies:
[15:12:11.305] + @next-auth/prisma-adapter 1.0.5
[15:12:11.306] + @next/bundle-analyzer 13.0.1
[15:12:11.306] + @tanstack/react-query 4.0.5
[15:12:11.306] + @trpc/client 10.0.0-rc.7
[15:12:11.306] + @trpc/next 10.0.0-rc.7
[15:12:11.306] + @trpc/react-query 10.0.0-rc.7
[15:12:11.306] + @trpc/server 10.0.0-rc.7
[15:12:11.307] + @weareinreach/db 0.0.0 <- ../../packages/db
[15:12:11.307] + i18next 22.0.4
[15:12:11.307] + next 13.0.1
[15:12:11.307] + next-auth 4.16.4
[15:12:11.307] + next-i18next 12.1.0
[15:12:11.307] + next-transpile-modules 10.0.0
[15:12:11.307] + react 18.2.0
[15:12:11.307] + react-dom 18.2.0
[15:12:11.308] + react-i18next 12.0.0
[15:12:11.308] + superjson 1.11.0
[15:12:11.308] + zod 3.19.1
[15:12:11.308] 
[15:12:11.308] devDependencies:
[15:12:11.308] + @types/node 16.18.0
[15:12:11.308] + @types/react 18.0.25
[15:12:11.308] + @types/react-dom 18.0.8
[15:12:11.309] + @typescript-eslint/eslint-plugin 5.42.1
[15:12:11.309] + @typescript-eslint/parser 5.42.1
[15:12:11.309] + @weareinreach/config 0.0.0 <- ../../packages/config
[15:12:11.309] + @weareinreach/eslint-config 0.0.0 <- ../../packages/eslint-config
[15:12:11.309] + @weareinreach/ui 0.0.0 <- ../../packages/ui
[15:12:11.309] + eslint 8.27.0
[15:12:11.309] + eslint-config-next 13.0.1
[15:12:11.309] + typescript 4.8.4
[15:12:11.309] 
[15:12:11.310] ../.. postinstall$ turbo run post-install
[15:12:11.584] ../.. postinstall: • Packages in scope: @weareinreach/app, @weareinreach/aws-user-migrate, @weareinreach/config, @weareinreach/db, @weareinreach/eslint-config, @weareinreach/storybook, @weareinreach/types, @weareinreach/ui, @weareinreach/web
[15:12:11.585] ../.. postinstall: • Running post-install in 9 packages
[15:12:11.585] ../.. postinstall: • Remote caching enabled
[15:12:11.586] ../.. postinstall:  Tasks:    0 successful, 0 total
[15:12:11.586] ../.. postinstall: Cached:    0 cached, 0 total
[15:12:11.586] ../.. postinstall:   Time:    240ms 
[15:12:11.588] ../.. postinstall: Done
[15:12:11.589] ../.. prepare$ husky install
[15:12:11.678] ../.. prepare: husky - Git hooks installed
[15:12:11.681] ../.. prepare: Done
[15:12:11.685] Done in 1m 24.3s
[15:12:11.729] Detected Next.js version: 13.0.1
[15:12:11.828] Running "cd ../.. && npx turbo run build --filter=app..."
[15:12:12.504] • Packages in scope: @weareinreach/app, @weareinreach/config, @weareinreach/db, @weareinreach/eslint-config, @weareinreach/ui
[15:12:12.504] • Running build in 5 packages
[15:12:12.505] • Remote caching enabled
[15:12:12.505] @weareinreach/db:db:generate: cache bypass, force executing 0f5f3f88581e07d0
[15:12:12.873] @weareinreach/db:clean: cache miss, executing f59aa9c9481d1fb9
[15:12:13.329] @weareinreach/db:db:generate: 
[15:12:13.330] @weareinreach/db:db:generate: > @weareinreach/[email protected] db:generate /vercel/path0/packages/db
[15:12:13.330] @weareinreach/db:db:generate: > prisma generate && pnpm format:generated
[15:12:13.332] @weareinreach/db:db:generate: 
[15:12:13.764] @weareinreach/db:clean: 
[15:12:13.765] @weareinreach/db:clean: > @weareinreach/[email protected] clean /vercel/path0/packages/db
[15:12:13.765] @weareinreach/db:clean: > rm -rf dist || true
[15:12:13.766] @weareinreach/db:clean: 
[15:12:15.745] @weareinreach/db:db:generate: Prisma schema loaded from prisma/schema.prisma
[15:12:22.849] @weareinreach/db:db:generate: 
[15:12:22.849] @weareinreach/db:db:generate: ✔ Generated Prisma Client (4.6.1 | library) to ./../../node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client in 2.60s
[15:12:22.849] @weareinreach/db:db:generate: 
[15:12:22.849] @weareinreach/db:db:generate: ✔ Generated Prisma Docs Generator to ./../../docs/database in 799ms
[15:12:22.850] @weareinreach/db:db:generate: 
[15:12:22.850] @weareinreach/db:db:generate: ✔ Generated Zod Schemas (0.5.4) to ./src/zod-schemas in 1.41s
[15:12:22.850] @weareinreach/db:db:generate: You can now start using Prisma Client in your code. Reference: https://pris.ly/d/client
[15:12:22.850] @weareinreach/db:db:generate: ```
[15:12:22.850] @weareinreach/db:db:generate: import { PrismaClient } from '@prisma/client'
[15:12:22.850] @weareinreach/db:db:generate: const prisma = new PrismaClient()
[15:12:22.851] @weareinreach/db:db:generate: ```
[15:12:23.633] @weareinreach/db:db:generate: 
[15:12:23.634] @weareinreach/db:db:generate: > @weareinreach/[email protected] format:generated /vercel/path0/packages/db
[15:12:23.634] @weareinreach/db:db:generate: > prettier --write ./src/zod*/*
[15:12:23.634] @weareinreach/db:db:generate: 
[15:12:25.017] @weareinreach/db:db:generate: src/zod-schemas/account.ts 346ms
[15:12:25.100] @weareinreach/db:db:generate: src/zod-schemas/country.ts 70ms
[15:12:25.156] @weareinreach/db:db:generate: src/zod-schemas/fieldvisibility.ts 38ms
[15:12:25.218] @weareinreach/db:db:generate: src/zod-schemas/govdist.ts 54ms
[15:12:25.254] @weareinreach/db:db:generate: src/zod-schemas/govdisttype.ts 28ms
[15:12:25.282] @weareinreach/db:db:generate: src/zod-schemas/index.ts 16ms
[15:12:25.354] @weareinreach/db:db:generate: src/zod-schemas/internalnote.ts 64ms
[15:12:25.417] @weareinreach/db:db:generate: src/zod-schemas/language.ts 39ms
[15:12:25.444] @weareinreach/db:db:generate: src/zod-schemas/navigation.ts 23ms
[15:12:25.487] @weareinreach/db:db:generate: src/zod-schemas/organization.ts 34ms
[15:12:25.521] @weareinreach/db:db:generate: src/zod-schemas/orgdescription.ts 25ms
[15:12:25.565] @weareinreach/db:db:generate: src/zod-schemas/orgemail.ts 31ms
[15:12:25.608] @weareinreach/db:db:generate: src/zod-schemas/orghours.ts 34ms
[15:12:25.676] @weareinreach/db:db:generate: src/zod-schemas/orglocation.ts 56ms
[15:12:25.724] @weareinreach/db:db:generate: src/zod-schemas/orgphone.ts 38ms
[15:12:25.764] @weareinreach/db:db:generate: src/zod-schemas/orgphoto.ts 31ms
[15:12:25.795] @weareinreach/db:db:generate: src/zod-schemas/orgreview.ts 25ms
[15:12:25.819] @weareinreach/db:db:generate: src/zod-schemas/orgservice.ts 18ms
[15:12:25.852] @weareinreach/db:db:generate: src/zod-schemas/orgsocialmedia.ts 20ms
[15:12:25.872] @weareinreach/db:db:generate: src/zod-schemas/outsideapi.ts 15ms
[15:12:25.901] @weareinreach/db:db:generate: src/zod-schemas/permissionasset.ts 20ms
[15:12:25.922] @weareinreach/db:db:generate: src/zod-schemas/permissionitem.ts 13ms
[15:12:25.948] @weareinreach/db:db:generate: src/zod-schemas/phonetype.ts 15ms
[15:12:25.973] @weareinreach/db:db:generate: src/zod-schemas/servicecategory.ts 18ms
[15:12:26.005] @weareinreach/db:db:generate: src/zod-schemas/servicetag.ts 25ms
[15:12:26.022] @weareinreach/db:db:generate: src/zod-schemas/session.ts 9ms
[15:12:26.041] @weareinreach/db:db:generate: src/zod-schemas/socialmediaservice.ts 10ms
[15:12:26.058] @weareinreach/db:db:generate: src/zod-schemas/source.ts 11ms
[15:12:26.073] @weareinreach/db:db:generate: src/zod-schemas/translation.ts 10ms
[15:12:26.106] @weareinreach/db:db:generate: src/zod-schemas/translationkey.ts 27ms
[15:12:26.142] @weareinreach/db:db:generate: src/zod-schemas/translationnamespace.ts 26ms
[15:12:26.168] @weareinreach/db:db:generate: src/zod-schemas/translationvariable.ts 16ms
[15:12:26.250] @weareinreach/db:db:generate: src/zod-schemas/user.ts 76ms
[15:12:26.270] @weareinreach/db:db:generate: src/zod-schemas/usercommunity.ts 13ms
[15:12:26.289] @weareinreach/db:db:generate: src/zod-schemas/userethnicity.ts 13ms
[15:12:26.306] @weareinreach/db:db:generate: src/zod-schemas/userimmigration.ts 10ms
[15:12:26.329] @weareinreach/db:db:generate: src/zod-schemas/userrole.ts 10ms
[15:12:26.349] @weareinreach/db:db:generate: src/zod-schemas/usersavedlist.ts 14ms
[15:12:26.381] @weareinreach/db:db:generate: src/zod-schemas/usersog.ts 24ms
[15:12:26.406] @weareinreach/db:db:generate: src/zod-schemas/usertitle.ts 17ms
[15:12:26.424] @weareinreach/db:db:generate: src/zod-schemas/usertype.ts 11ms
[15:12:26.444] @weareinreach/db:db:generate: src/zod-schemas/verificationtoken.ts 8ms
[15:12:26.533] @weareinreach/db:db:generate: src/zod-util/index.ts 79ms
[15:12:27.027] @weareinreach/app:build: cache miss, executing 8fb7c4c2608672d3
[15:12:27.802] @weareinreach/app:build: 
[15:12:27.802] @weareinreach/app:build: > @weareinreach/[email protected] build /vercel/path0/apps/app
[15:12:27.802] @weareinreach/app:build: > next build
[15:12:27.803] @weareinreach/app:build: 
[15:12:29.071] @weareinreach/app:build: Attention: Next.js now collects completely anonymous telemetry regarding usage.
[15:12:29.071] @weareinreach/app:build: This information is used to shape Next.js' roadmap and prioritize features.
[15:12:29.071] @weareinreach/app:build: You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
[15:12:29.072] @weareinreach/app:build: https://nextjs.org/telemetry
[15:12:29.072] @weareinreach/app:build: 
[15:12:29.785] @weareinreach/app:build: info  - Linting and checking validity of types...
[15:12:33.683] @weareinreach/app:build: 
[15:12:33.683] @weareinreach/app:build: ./src/pages/index.tsx
[15:12:33.684] @weareinreach/app:build: 8:12  Warning: disallow literal string: <title>Create T3 App</title>  i18next/no-literal-string
[15:12:33.684] @weareinreach/app:build: 
[15:12:33.685] @weareinreach/app:build: info  - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
[15:12:36.021] @weareinreach/app:build: info  - Creating an optimized production build...
[15:13:05.854] @weareinreach/app:build: info  - Compiled successfully
[15:13:05.855] @weareinreach/app:build: info  - Collecting page data...
[15:13:14.639] @weareinreach/app:build: info  - Generating static pages (0/24)
[15:13:14.808] @weareinreach/app:build: info  - Generating static pages (6/24)
[15:13:14.837] @weareinreach/app:build: info  - Generating static pages (12/24)
[15:13:14.857] @weareinreach/app:build: info  - Generating static pages (18/24)
[15:13:14.900] @weareinreach/app:build: info  - Generating static pages (24/24)
[15:13:14.932] @weareinreach/app:build: info  - Finalizing page optimization...
[15:13:14.942] @weareinreach/app:build: 
[15:13:14.964] @weareinreach/app:build: Route (pages)                              Size     First Load JS
[15:13:14.964] @weareinreach/app:build: ┌ ○ /                                      378 B           154 kB
[15:13:14.965] @weareinreach/app:build: ├   /_app                                  0 B             154 kB
[15:13:14.965] @weareinreach/app:build: ├ ○ /404                                   181 B           154 kB
[15:13:14.965] @weareinreach/app:build: ├ λ /api/auth/[...nextauth]                0 B             154 kB
[15:13:14.965] @weareinreach/app:build: └ λ /api/trpc/[trpc]                       0 B             154 kB
[15:13:14.965] @weareinreach/app:build: + First Load JS shared by all              154 kB
[15:13:14.965] @weareinreach/app:build:   ├ chunks/framework-d5f8ed288849d546.js   45.4 kB
[15:13:14.966] @weareinreach/app:build:   ├ chunks/main-0ad1b4a21789d43b.js        26.5 kB
[15:13:14.966] @weareinreach/app:build:   ├ chunks/pages/_app-8dece70257463c85.js  81.3 kB
[15:13:14.966] @weareinreach/app:build:   └ chunks/webpack-c4acd79e87956a0e.js     943 B
[15:13:14.966] @weareinreach/app:build: 
[15:13:14.966] @weareinreach/app:build: λ  (Server)  server-side renders at runtime (uses getInitialProps or getServerSideProps)
[15:13:14.966] @weareinreach/app:build: ○  (Static)  automatically rendered as static HTML (uses no initial props)
[15:13:14.966] @weareinreach/app:build: 
[15:13:15.131] 
[15:13:15.131]  Tasks:    3 successful, 3 total
[15:13:15.131] Cached:    0 cached, 3 total
[15:13:15.132]   Time:    1m2.819s 
[15:13:15.132] 
[15:13:17.492] Traced Next.js server files in: 1.955s
[15:13:27.598] Created all serverless functions in: 10.103s
[15:13:27.610] Collected static files (public/, static/, .next/static): 7.695ms
[15:13:29.857] Build Completed in /vercel/output [3m]
[15:13:38.703] Generated build outputs:
[15:13:38.703]  - Static files: 32
[15:13:38.703]  - Serverless Functions: 2
[15:13:38.703]  - Edge Functions: 0
[15:13:38.703] Serverless regions: Washington, D.C., USA
[15:13:38.703] Deployed outputs in 3s
[15:13:39.621] Build completed. Populating build cache...
[15:14:29.918] Uploading build cache [386.83 MB]...
[15:14:38.923] Build cache uploaded: 9.005s
[15:14:39.004] Done with "."
Failed 13.0.2 Build
[15:04:59.256] Cloning github.com/weareinreach/InReach (Branch: renovate/all-minor-patch, Commit: 7343b4f)
[15:04:59.728] Previous build caches not available
[15:05:00.846] Cloning completed: 1.589s
[15:05:00.846] Running "npx turbo-ignore"
[15:05:03.194] npx: installed 1 in 2.282s
[15:05:03.207] ≫ Using Turborepo to determine if this project is affected by the commit...
[15:05:03.207] ≫ Inferred `@weareinreach/app` as scope from "/vercel/path0/apps/app/package.json"
[15:05:03.207] ≫ No previous deployments found for this project on "renovate/all-minor-patch."
[15:05:03.207] ≫ Proceeding with build...
[15:05:03.859] Running "vercel build"
[15:05:04.364] Vercel CLI 28.4.17
[15:05:04.653] Detected ENABLE_EXPERIMENTAL_COREPACK=1 and "[email protected]" in package.json
[15:05:04.946] Installing dependencies...
[15:05:06.111] Scope: all 10 workspace projects
[15:05:06.377] ../..                                    | Progress: resolved 1, reused 0, downloaded 0, added 0
[15:05:06.799] ../..                                    |    +2265 ++++++++++++++++++++++++++++
[15:05:07.392] ../..                                    | Progress: resolved 2265, reused 0, downloaded 4, added 0
[15:05:07.529] Packages are hard linked from the content-addressable store to the virtual store.
[15:05:07.530]   Content-addressable store is at: /vercel/.local/share/pnpm/store/v3
[15:05:07.530]   Virtual store is at:             ../../node_modules/.pnpm
[15:05:08.392] ../..                                    | Progress: resolved 2265, reused 0, downloaded 37, added 36
[15:05:09.395] ../..                                    | Progress: resolved 2265, reused 0, downloaded 63, added 63
[15:05:10.401] ../..                                    | Progress: resolved 2265, reused 0, downloaded 105, added 105
[15:05:11.408] ../..                                    | Progress: resolved 2265, reused 0, downloaded 165, added 167
[15:05:12.408] ../..                                    | Progress: resolved 2265, reused 0, downloaded 212, added 210
[15:05:13.409] ../..                                    | Progress: resolved 2265, reused 0, downloaded 268, added 276
[15:05:14.428] ../..                                    | Progress: resolved 2265, reused 0, downloaded 325, added 332
[15:05:15.430] ../..                                    | Progress: resolved 2265, reused 0, downloaded 385, added 390
[15:05:16.432] ../..                                    | Progress: resolved 2265, reused 0, downloaded 423, added 431
[15:05:17.433] ../..                                    | Progress: resolved 2265, reused 0, downloaded 491, added 499
[15:05:18.436] ../..                                    | Progress: resolved 2265, reused 0, downloaded 590, added 593
[15:05:19.438] ../..                                    | Progress: resolved 2265, reused 0, downloaded 705, added 712
[15:05:20.439] ../..                                    | Progress: resolved 2265, reused 0, downloaded 793, added 800
[15:05:21.448] ../..                                    | Progress: resolved 2265, reused 0, downloaded 859, added 859
[15:05:22.462] ../..                                    | Progress: resolved 2265, reused 0, downloaded 940, added 952
[15:05:23.462] ../..                                    | Progress: resolved 2265, reused 0, downloaded 1091, added 1101
[15:05:24.467] ../..                                    | Progress: resolved 2265, reused 0, downloaded 1262, added 1275
[15:05:25.471] ../..                                    | Progress: resolved 2265, reused 0, downloaded 1371, added 1381
[15:05:26.473] ../..                                    | Progress: resolved 2265, reused 0, downloaded 1435, added 1449
[15:05:27.476] ../..                                    | Progress: resolved 2265, reused 0, downloaded 1528, added 1541
[15:05:28.476] ../..                                    | Progress: resolved 2265, reused 0, downloaded 1622, added 1636
[15:05:29.476] ../..                                    | Progress: resolved 2265, reused 0, downloaded 1720, added 1733
[15:05:30.476] ../..                                    | Progress: resolved 2265, reused 0, downloaded 1809, added 1823
[15:05:31.476] ../..                                    | Progress: resolved 2265, reused 0, downloaded 1863, added 1876
[15:05:32.561] ../..                                    | Progress: resolved 2265, reused 0, downloaded 1908, added 1920
[15:05:33.564] ../..                                    | Progress: resolved 2265, reused 0, downloaded 1973, added 1986
[15:05:34.565] ../..                                    | Progress: resolved 2265, reused 0, downloaded 2063, added 2073
[15:05:35.567] ../..                                    | Progress: resolved 2265, reused 0, downloaded 2140, added 2153
[15:05:36.620] ../..                                    | Progress: resolved 2265, reused 0, downloaded 2231, added 2246
[15:05:37.640] ../..                                    | Progress: resolved 2265, reused 0, downloaded 2243, added 2258
[15:05:38.641] ../..                                    | Progress: resolved 2265, reused 0, downloaded 2244, added 2260
[15:05:39.759] ../..                                    | Progress: resolved 2265, reused 0, downloaded 2245, added 2260
[15:05:40.761] ../..                                    | Progress: resolved 2265, reused 0, downloaded 2247, added 2263
[15:05:41.761] ../..                                    | Progress: resolved 2265, reused 0, downloaded 2249, added 2265, done
[15:05:43.116] .../node_modules/@prisma/client postinstall$ node scripts/postinstall.js
[15:05:43.116] .../node_modules/@prisma/engines postinstall$ node download/index.js
[15:05:43.116] .../node_modules/@prisma/engines postinstall$ node scripts/postinstall.js
[15:05:43.190] .../node_modules/core-js-pure postinstall$ node -e "try{require('./postinstall')}catch(e){}"
[15:05:43.220] .../[email protected]/node_modules/core-js postinstall$ node -e "try{require('./postinstall')}catch(e){}"
[15:05:43.369] .../node_modules/core-js-pure postinstall: Done
[15:05:43.554] .../[email protected]/node_modules/core-js postinstall: Done
[15:05:51.122] .../node_modules/@prisma/engines postinstall: Done
[15:05:51.184] .../node_modules/@prisma/engines postinstall: Done
[15:05:51.244] .../node_modules/@prisma/client postinstall: prisma:warn The postinstall script automatically ran `prisma generate` and did not find your `prisma/schema.prisma`.
[15:05:51.244] .../node_modules/@prisma/client postinstall: If you have a Prisma schema file in a custom path, you will need to run
[15:05:51.244] .../node_modules/@prisma/client postinstall: `prisma generate --schema=./path/to/your/schema.prisma` to generate Prisma Client.
[15:05:51.245] .../node_modules/@prisma/client postinstall: If you do not have a Prisma schema file yet, you can ignore this message.
[15:05:51.363] .../node_modules/@prisma/client postinstall: Done
[15:05:52.360] .../[email protected]/node_modules/esbuild postinstall$ node install.js
[15:05:52.360] .../[email protected]/node_modules/esbuild postinstall$ node install.js
[15:05:52.361] .../node_modules/@swc/core postinstall$ node postinstall.js
[15:05:52.361] .../.pnpm/[email protected]/node_modules/turbo postinstall$ node install.js
[15:05:52.495] .../[email protected]/node_modules/esbuild postinstall: Done
[15:05:52.496] .../[email protected]/node_modules/esbuild postinstall: Done
[15:05:52.547] .../node_modules/@swc/core postinstall: Done
[15:05:52.615] .../.pnpm/[email protected]/node_modules/turbo postinstall: Done
[15:05:52.624] .../[email protected]/node_modules/prisma preinstall$ node scripts/preinstall-entry.js
[15:05:52.699] .../[email protected]/node_modules/prisma preinstall: Done
[15:05:52.699] .../[email protected]/node_modules/prisma install$ node scripts/install-entry.js
[15:05:52.765] .../[email protected]/node_modules/prisma install: Done
[15:05:52.827] .../[email protected]/node_modules/cypress postinstall$ node index.js --exec install
[15:05:52.941] .../node_modules/@prisma/client postinstall$ node scripts/postinstall.js
[15:05:53.341] .../[email protected]/node_modules/cypress postinstall: Installing Cypress (version: 11.0.1)
[15:05:53.346] .../[email protected]/node_modules/cypress postinstall: [STARTED] Task without title.
[15:05:55.311] .../node_modules/@prisma/client postinstall: prisma:warn The postinstall script automatically ran `prisma generate` and did not find your `prisma/schema.prisma`.
[15:05:55.312] .../node_modules/@prisma/client postinstall: If you have a Prisma schema file in a custom path, you will need to run
[15:05:55.312] .../node_modules/@prisma/client postinstall: `prisma generate --schema=./path/to/your/schema.prisma` to generate Prisma Client.
[15:05:55.312] .../node_modules/@prisma/client postinstall: If you do not have a Prisma schema file yet, you can ignore this message.
[15:05:55.584] .../node_modules/@prisma/client postinstall: Done
[15:05:55.678] .../[email protected]/node_modules/cypress postinstall: [SUCCESS] Task without title.
[15:05:55.679] .../[email protected]/node_modules/cypress postinstall: [STARTED] Task without title.
[15:06:01.308] .../[email protected]/node_modules/cypress postinstall: [SUCCESS] Task without title.
[15:06:01.308] .../[email protected]/node_modules/cypress postinstall: [STARTED] Task without title.
[15:06:01.331] .../[email protected]/node_modules/cypress postinstall: [SUCCESS] Task without title.
[15:06:02.332] .../[email protected]/node_modules/cypress postinstall: You can now open Cypress by running: node_modules/.bin/cypress open
[15:06:02.333] .../[email protected]/node_modules/cypress postinstall: https://on.cypress.io/installing-cypress
[15:06:02.346] .../[email protected]/node_modules/cypress postinstall: Done
[15:06:03.225] 
[15:06:03.225] dependencies:
[15:06:03.225] + @next-auth/prisma-adapter 1.0.5
[15:06:03.225] + @next/bundle-analyzer 13.0.2
[15:06:03.225] + @tanstack/react-query 4.14.5
[15:06:03.225] + @trpc/client 10.0.0-rc.7
[15:06:03.226] + @trpc/next 10.0.0-rc.7
[15:06:03.226] + @trpc/react-query 10.0.0-rc.7
[15:06:03.226] + @trpc/server 10.0.0-rc.7
[15:06:03.227] + @weareinreach/db 0.0.0 <- ../../packages/db
[15:06:03.227] + i18next 22.0.4
[15:06:03.227] + next 13.0.2
[15:06:03.227] + next-auth 4.16.4
[15:06:03.228] + next-i18next 12.1.0
[15:06:03.228] + next-transpile-modules 10.0.0
[15:06:03.228] + react 18.2.0
[15:06:03.228] + react-dom 18.2.0
[15:06:03.228] + react-i18next 12.0.0
[15:06:03.228] + superjson 1.11.0
[15:06:03.228] + zod 3.19.1
[15:06:03.228] 
[15:06:03.228] devDependencies:
[15:06:03.228] + @types/node 16.18.3
[15:06:03.228] + @types/react 18.0.25
[15:06:03.228] + @types/react-dom 18.0.8
[15:06:03.228] + @typescript-eslint/eslint-plugin 5.42.1
[15:06:03.228] + @typescript-eslint/parser 5.42.1
[15:06:03.228] + @weareinreach/config 0.0.0 <- ../../packages/config
[15:06:03.229] + @weareinreach/eslint-config 0.0.0 <- ../../packages/eslint-config
[15:06:03.229] + @weareinreach/ui 0.0.0 <- ../../packages/ui
[15:06:03.229] + eslint 8.27.0
[15:06:03.229] + eslint-config-next 13.0.2
[15:06:03.229] + typescript 4.8.4
[15:06:03.229] 
[15:06:03.229] ../.. postinstall$ turbo run post-install
[15:06:03.617] ../.. postinstall: • Packages in scope: @weareinreach/app, @weareinreach/aws-user-migrate, @weareinreach/config, @weareinreach/db, @weareinreach/eslint-config, @weareinreach/storybook, @weareinreach/types, @weareinreach/ui, @weareinreach/web
[15:06:03.617] ../.. postinstall: • Running post-install in 9 packages
[15:06:03.618] ../.. postinstall: • Remote caching enabled
[15:06:03.618] ../.. postinstall:  Tasks:    0 successful, 0 total
[15:06:03.618] ../.. postinstall: Cached:    0 cached, 0 total
[15:06:03.618] ../.. postinstall:   Time:    357ms 
[15:06:03.620] ../.. postinstall: Done
[15:06:03.621] ../.. prepare$ husky install
[15:06:03.696] ../.. prepare: husky - Git hooks installed
[15:06:03.699] ../.. prepare: Done
[15:06:03.701] Done in 58s
[15:06:03.739] Detected Next.js version: 13.0.2
[15:06:03.825] Running "cd ../.. && npx turbo run build --filter=app..."
[15:06:04.338] • Packages in scope: @weareinreach/app, @weareinreach/config, @weareinreach/db, @weareinreach/eslint-config, @weareinreach/ui
[15:06:04.339] • Running build in 5 packages
[15:06:04.339] • Remote caching enabled
[15:06:04.339] @weareinreach/db:db:generate: cache bypass, force executing 187de26749029b3e
[15:06:04.683] @weareinreach/db:clean: cache hit, replaying output ce759e1c5ef575e5
[15:06:04.684] @weareinreach/db:clean: 
[15:06:04.684] @weareinreach/db:clean: > @weareinreach/[email protected] clean /vercel/path0/packages/db
[15:06:04.684] @weareinreach/db:clean: > rm -rf dist || true
[15:06:04.684] @weareinreach/db:clean: 
[15:06:04.936] @weareinreach/db:db:generate: 
[15:06:04.936] @weareinreach/db:db:generate: > @weareinreach/[email protected] db:generate /vercel/path0/packages/db
[15:06:04.936] @weareinreach/db:db:generate: > prisma generate && pnpm format:generated
[15:06:04.936] @weareinreach/db:db:generate: 
[15:06:06.750] @weareinreach/db:db:generate: Prisma schema loaded from prisma/schema.prisma
[15:06:12.307] @weareinreach/db:db:generate: 
[15:06:12.308] @weareinreach/db:db:generate: ✔ Generated Prisma Client (4.6.1 | library) to ./../../node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client in 1.73s
[15:06:12.308] @weareinreach/db:db:generate: 
[15:06:12.308] @weareinreach/db:db:generate: ✔ Generated Prisma Docs Generator to ./../../docs/database in 714ms
[15:06:12.308] @weareinreach/db:db:generate: 
[15:06:12.308] @weareinreach/db:db:generate: ✔ Generated Zod Schemas (0.5.4) to ./src/zod-schemas in 1.13s
[15:06:12.308] @weareinreach/db:db:generate: You can now start using Prisma Client in your code. Reference: https://pris.ly/d/client
[15:06:12.308] @weareinreach/db:db:generate: ```
[15:06:12.308] @weareinreach/db:db:generate: import { PrismaClient } from '@prisma/client'
[15:06:12.308] @weareinreach/db:db:generate: const prisma = new PrismaClient()
[15:06:12.308] @weareinreach/db:db:generate: ```
[15:06:13.033] @weareinreach/db:db:generate: 
[15:06:13.033] @weareinreach/db:db:generate: > @weareinreach/[email protected] format:generated /vercel/path0/packages/db
[15:06:13.034] @weareinreach/db:db:generate: > prettier --write ./src/zod*/*
[15:06:13.034] @weareinreach/db:db:generate: 
[15:06:14.135] @weareinreach/db:db:generate: src/zod-schemas/account.ts 252ms
[15:06:14.202] @weareinreach/db:db:generate: src/zod-schemas/country.ts 58ms
[15:06:14.239] @weareinreach/db:db:generate: src/zod-schemas/fieldvisibility.ts 29ms
[15:06:14.292] @weareinreach/db:db:generate: src/zod-schemas/govdist.ts 48ms
[15:06:14.320] @weareinreach/db:db:generate: src/zod-schemas/govdisttype.ts 22ms
[15:06:14.336] @weareinreach/db:db:generate: src/zod-schemas/index.ts 10ms
[15:06:14.403] @weareinreach/db:db:generate: src/zod-schemas/internalnote.ts 62ms
[15:06:14.435] @weareinreach/db:db:generate: src/zod-schemas/language.ts 23ms
[15:06:14.461] @weareinreach/db:db:generate: src/zod-schemas/navigation.ts 18ms
[15:06:14.499] @weareinreach/db:db:generate: src/zod-schemas/organization.ts 32ms
[15:06:14.528] @weareinreach/db:db:generate: src/zod-schemas/orgdescription.ts 19ms
[15:06:14.554] @weareinreach/db:db:generate: src/zod-schemas/orgemail.ts 20ms
[15:06:14.586] @weareinreach/db:db:generate: src/zod-schemas/orghours.ts 25ms
[15:06:14.642] @weareinreach/db:db:generate: src/zod-schemas/orglocation.ts 48ms
[15:06:14.666] @weareinreach/db:db:generate: src/zod-schemas/orgphone.ts 19ms
[15:06:14.691] @weareinreach/db:db:generate: src/zod-schemas/orgphoto.ts 19ms
[15:06:14.718] @weareinreach/db:db:generate: src/zod-schemas/orgreview.ts 22ms
[15:06:14.748] @weareinreach/db:db:generate: src/zod-schemas/orgservice.ts 20ms
[15:06:14.777] @weareinreach/db:db:generate: src/zod-schemas/orgsocialmedia.ts 19ms
[15:06:14.797] @weareinreach/db:db:generate: src/zod-schemas/outsideapi.ts 14ms
[15:06:14.813] @weareinreach/db:db:generate: src/zod-schemas/permissionasset.ts 10ms
[15:06:14.831] @weareinreach/db:db:generate: src/zod-schemas/permissionitem.ts 11ms
[15:06:14.853] @weareinreach/db:db:generate: src/zod-schemas/phonetype.ts 16ms
[15:06:14.874] @weareinreach/db:db:generate: src/zod-schemas/servicecategory.ts 14ms
[15:06:14.897] @weareinreach/db:db:generate: src/zod-schemas/servicetag.ts 19ms
[15:06:14.913] @weareinreach/db:db:generate: src/zod-schemas/session.ts 7ms
[15:06:14.925] @weareinreach/db:db:generate: src/zod-schemas/socialmediaservice.ts 8ms
[15:06:14.937] @weareinreach/db:db:generate: src/zod-schemas/source.ts 8ms
[15:06:14.949] @weareinreach/db:db:generate: src/zod-schemas/translation.ts 8ms
[15:06:14.976] @weareinreach/db:db:generate: src/zod-schemas/translationkey.ts 23ms
[15:06:14.998] @weareinreach/db:db:generate: src/zod-schemas/translationnamespace.ts 16ms
[15:06:15.019] @weareinreach/db:db:generate: src/zod-schemas/translationvariable.ts 13ms
[15:06:15.085] @weareinreach/db:db:generate: src/zod-schemas/user.ts 61ms
[15:06:15.099] @weareinreach/db:db:generate: src/zod-schemas/usercommunity.ts 9ms
[15:06:15.114] @weareinreach/db:db:generate: src/zod-schemas/userethnicity.ts 11ms
[15:06:15.127] @weareinreach/db:db:generate: src/zod-schemas/userimmigration.ts 9ms
[15:06:15.144] @weareinreach/db:db:generate: src/zod-schemas/userrole.ts 8ms
[15:06:15.157] @weareinreach/db:db:generate: src/zod-schemas/usersavedlist.ts 9ms
[15:06:15.180] @weareinreach/db:db:generate: src/zod-schemas/usersog.ts 18ms
[15:06:15.197] @weareinreach/db:db:generate: src/zod-schemas/usertitle.ts 12ms
[15:06:15.212] @weareinreach/db:db:generate: src/zod-schemas/usertype.ts 10ms
[15:06:15.228] @weareinreach/db:db:generate: src/zod-schemas/verificationtoken.ts 5ms
[15:06:15.296] @weareinreach/db:db:generate: src/zod-util/index.ts 64ms
[15:06:15.716] @weareinreach/app:build: cache miss, executing db468c2023bdabc4
[15:06:16.316] @weareinreach/app:build: 
[15:06:16.316] @weareinreach/app:build: > @weareinreach/[email protected] build /vercel/path0/apps/app
[15:06:16.316] @weareinreach/app:build: > next build
[15:06:16.317] @weareinreach/app:build: 
[15:06:16.782] @weareinreach/app:build: Attention: Next.js now collects completely anonymous telemetry regarding usage.
[15:06:16.782] @weareinreach/app:build: This information is used to shape Next.js' roadmap and prioritize features.
[15:06:16.782] @weareinreach/app:build: You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
[15:06:16.782] @weareinreach/app:build: https://nextjs.org/telemetry
[15:06:16.782] @weareinreach/app:build: 
[15:06:16.884] @weareinreach/app:build: info  - Linting and checking validity of types...
[15:06:19.794] @weareinreach/app:build: 
[15:06:19.794] @weareinreach/app:build: ./src/pages/index.tsx
[15:06:19.795] @weareinreach/app:build: 8:12  Warning: disallow literal string: <title>Create T3 App</title>  i18next/no-literal-string
[15:06:19.795] @weareinreach/app:build: 
[15:06:19.795] @weareinreach/app:build: info  - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
[15:06:21.569] @weareinreach/app:build: info  - Creating an optimized production build...
[15:06:39.973] @weareinreach/app:build: info  - Compiled successfully
[15:06:39.974] @weareinreach/app:build: info  - Collecting page data...
[15:06:52.279] @weareinreach/app:build: info  - Generating static pages (0/24)
[15:06:52.405] @weareinreach/app:build: info  - Generating static pages (6/24)
[15:06:52.429] @weareinreach/app:build: info  - Generating static pages (12/24)
[15:06:52.444] @weareinreach/app:build: info  - Generating static pages (18/24)
[15:06:52.459] @weareinreach/app:build: info  - Generating static pages (24/24)
[15:06:52.469] @weareinreach/app:build: info  - Finalizing page optimization...
[15:06:52.474] @weareinreach/app:build: 
[15:06:52.481] @weareinreach/app:build: Route (pages)                              Size     First Load JS
[15:06:52.481] @weareinreach/app:build: ┌ ○ /                                      380 B           154 kB
[15:06:52.481] @weareinreach/app:build: ├   /_app                                  0 B             154 kB
[15:06:52.481] @weareinreach/app:build: ├ ○ /404                                   181 B           154 kB
[15:06:52.481] @weareinreach/app:build: ├ λ /api/auth/[...nextauth]                0 B             154 kB
[15:06:52.481] @weareinreach/app:build: └ λ /api/trpc/[trpc]                       0 B             154 kB
[15:06:52.482] @weareinreach/app:build: + First Load JS shared by all              154 kB
[15:06:52.482] @weareinreach/app:build:   ├ chunks/framework-d5f8ed288849d546.js   45.4 kB
[15:06:52.482] @weareinreach/app:build:   ├ chunks/main-400f07328f8f731e.js        27.1 kB
[15:06:52.482] @weareinreach/app:build:   ├ chunks/pages/_app-62cc4a671e48222b.js  80.5 kB
[15:06:52.482] @weareinreach/app:build:   └ chunks/webpack-0b5d8249fb15f5f3.js     939 B
[15:06:52.482] @weareinreach/app:build: 
[15:06:52.482] @weareinreach/app:build: λ  (Server)  server-side renders at runtime (uses getInitialProps or getServerSideProps)
[15:06:52.482] @weareinreach/app:build: ○  (Static)  automatically rendered as static HTML (uses no initial props)
[15:06:52.482] @weareinreach/app:build: 
[15:06:52.630] 
[15:06:52.631]  Tasks:    3 successful, 3 total
[15:06:52.631] Cached:    1 cached, 3 total
[15:06:52.631]   Time:    48.434s 
[15:06:52.631] 
[15:07:09.146] Traced Next.js server files in: 16.056s
[15:07:17.516] Warning: Max serverless function size of 50 MB compressed or 250 MB uncompressed reached
[15:07:17.516] Serverless Function's page: api/auth/[...nextauth].js
[15:07:17.528] Large Dependencies                                                 Uncompressed size  Compressed size
[15:07:17.528] node_modules/.pnpm/@[email protected][email protected]                         45.6 MB          15.8 MB
[15:07:17.528] node_modules/.pnpm/@[email protected]                            43.1 MB          14.4 MB
[15:07:17.528] node_modules/.pnpm/@[email protected]                           42.7 MB          14.3 MB
[15:07:17.528] node_modules/.pnpm/[email protected]                                  8.36 MB          3.52 MB
[15:07:17.528] node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y                    12.2 MB          3.12 MB
[15:07:17.528] node_modules/.pnpm/[email protected]_@[email protected]                           3.93 MB           954 kB
[15:07:17.529] apps/app/.next                                                               3.72 MB           687 kB
[15:07:17.529] node_modules/.pnpm/[email protected][email protected]                             1.72 MB           415 kB
[15:07:17.529] node_modules/.pnpm/@[email protected]_etrvyeh76ry4n4cxjc37hheh7y             908 kB           321 kB
[15:07:17.529] node_modules/.pnpm/[email protected]                                  844 kB           312 kB
[15:07:17.529] node_modules/.pnpm/[email protected]                                          1.18 MB           213 kB
[15:07:17.529] node_modules/.pnpm/[email protected]                                              962 kB           185 kB
[15:07:17.529] 
[15:07:17.529] All dependencies                                                             61.2 MB          55.6 MB
[15:07:17.529] Serverless Function's page: api/trpc/[trpc].js
[15:07:17.539] Large Dependencies                                                 Uncompressed size  Compressed size
[15:07:17.539] node_modules/.pnpm/@[email protected][email protected]                         45.6 MB          15.8 MB
[15:07:17.539] node_modules/.pnpm/@[email protected]                            43.1 MB          14.4 MB
[15:07:17.540] node_modules/.pnpm/@[email protected]                           42.7 MB          14.3 MB
[15:07:17.540] node_modules/.pnpm/[email protected]                                  8.36 MB          3.52 MB
[15:07:17.540] node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y                    12.2 MB          3.12 MB
[15:07:17.540] node_modules/.pnpm/[email protected]_@[email protected]                           3.93 MB           954 kB
[15:07:17.540] apps/app/.next                                                               3.72 MB           687 kB
[15:07:17.540] node_modules/.pnpm/[email protected][email protected]                             1.72 MB           415 kB
[15:07:17.540] node_modules/.pnpm/@[email protected]_etrvyeh76ry4n4cxjc37hheh7y             908 kB           321 kB
[15:07:17.540] node_modules/.pnpm/[email protected]                                  844 kB           312 kB
[15:07:17.540] node_modules/.pnpm/[email protected]                                          1.18 MB           213 kB
[15:07:17.540] node_modules/.pnpm/[email protected]                                              962 kB           185 kB
[15:07:17.540] 
[15:07:17.541] All dependencies                                                             61.6 MB          55.7 MB
[15:07:17.541] Max serverless function size was exceeded for 2 functions
[15:07:17.547] Created all serverless functions in: 8.401s
[15:07:17.555] Collected static files (public/, static/, .next/static): 5.11ms
[15:07:20.772] Build Completed in /vercel/output [2m]
[15:07:30.829] Failed to process build result for "api/auth/[...nextauth]". Data: {"type":"Lambda"}.
[15:07:30.830] Error: The Serverless Function "api/auth/[...nextauth]" is 54.39mb which exceeds the maximum size limit of 50mb. Learn More: https://vercel.link/serverless-function-size

@belgattitude
Copy link
Contributor

@JoeKarow

I'm not sure how I can find out that info. I'm deploying to Vercel and a successful build doesn't show the size of the bundled lambdas.

Add a NEXT_DEBUG_FUNCTION_SIZE=1 in vercel dashboard ?

image

@JoeKarow
Copy link

@belgattitude
Ahh, thanks! 13.0.3 looks like it fixed the size issue. It's still including both of the SWC packages - are they supposed to be bundled?

13.0.1 Function Size
Traced Next.js server files in: 1.545s
--
19:44:09.307 | Serverless function size info
19:44:09.308 | Serverless Function's pages: api/auth/[...nextauth].js, api/trpc/[trpc].js
19:44:09.317 | Large Dependencies                                                 Uncompressed size  Compressed size
19:44:09.317 | node_modules/.pnpm/@[email protected][email protected]                         45.6 MB          15.8 MB
19:44:09.317 | node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y                    9.14 MB          2.46 MB
19:44:09.317 | apps/app/.next                                                               4.78 MB           833 kB
19:44:09.317 | node_modules/.pnpm/[email protected][email protected]                             1.72 MB           415 kB
19:44:09.318 | node_modules/.pnpm/@[email protected]_etrvyeh76ry4n4cxjc37hheh7y             908 kB           321 kB
19:44:09.318 | node_modules/.pnpm/@[email protected]_rpbu45oak5njhv4mrqfytqjmse             908 kB           321 kB
19:44:09.318 | node_modules/.pnpm/[email protected]                                  844 kB           312 kB
19:44:09.318 |  
19:44:09.318 | All dependencies                                                             56.1 MB          21.4 MB
19:44:09.321 | Created all serverless functions in: 8.526s
19:44:09.329 | Collected static files (public/, static/, .next/static): 5.551ms
19:44:10.731 | Build Completed in /vercel/output [2m]
19:44:18.699 | Generated build outputs:
19:44:18.699 | - Static files: 32
19:44:18.700 | - Serverless Functions: 2
19:44:18.700 | - Edge Functions: 0
19:44:18.701 | Serverless regions: Washington, D.C., USA
19:44:18.701 | Deployed outputs in 3s
19:44:19.603 | Build completed. Populating build cache...
13.0.3 Full build log
Cloning github.com/weareinreach/InReach (Branch: renovate/all-minor-patch, Commit: efc9e0b)
--
19:34:21.189 | The cli flag --force was set. Skipping build cache download.
19:34:22.700 | Cloning completed: 1.517s
19:34:22.701 | Running "npx turbo-ignore"
19:34:23.850 | npx: installed 1 in 1.083s
19:34:23.863 | ≫ Using Turborepo to determine if this project is affected by the commit...
19:34:23.863 |`TURBO_FORCE` detected, skipping check and proceeding with build.
19:34:24.481 | Running "vercel build"
19:34:24.968 | Vercel CLI 28.4.17
19:34:25.253 | Detected ENABLE_EXPERIMENTAL_COREPACK=1 and "[email protected]" in package.json
19:34:25.553 | Installing dependencies...
19:34:26.950 | Scope: all 10 workspace projects
19:34:27.221 | ../..                                    \| Progress: resolved 1, reused 0, downloaded 0, added 0
19:34:27.639 | ../..                                    \|    +2270 ++++++++++++++++++++++++++++
19:34:28.228 | ../..                                    \| Progress: resolved 2270, reused 0, downloaded 8, added 0
19:34:28.249 | Packages are hard linked from the content-addressable store to the virtual store.
19:34:28.249 | Content-addressable store is at: /vercel/.local/share/pnpm/store/v3
19:34:28.250 | Virtual store is at:             ../../node_modules/.pnpm
19:34:29.230 | ../..                                    \| Progress: resolved 2270, reused 0, downloaded 45, added 42
19:34:30.237 | ../..                                    \| Progress: resolved 2270, reused 0, downloaded 64, added 65
19:34:31.247 | ../..                                    \| Progress: resolved 2270, reused 0, downloaded 107, added 106
19:34:32.250 | ../..                                    \| Progress: resolved 2270, reused 0, downloaded 175, added 175
19:34:33.265 | ../..                                    \| Progress: resolved 2270, reused 0, downloaded 191, added 194
19:34:34.271 | ../..                                    \| Progress: resolved 2270, reused 0, downloaded 264, added 266
19:34:35.307 | ../..                                    \| Progress: resolved 2270, reused 0, downloaded 317, added 323
19:34:36.307 | ../..                                    \| Progress: resolved 2270, reused 0, downloaded 363, added 368
19:34:37.312 | ../..                                    \| Progress: resolved 2270, reused 0, downloaded 416, added 424
19:34:38.315 | ../..                                    \| Progress: resolved 2270, reused 0, downloaded 471, added 476
19:34:39.316 | ../..                                    \| Progress: resolved 2270, reused 0, downloaded 575, added 582
19:34:40.320 | ../..                                    \| Progress: resolved 2270, reused 0, downloaded 702, added 709
19:34:41.322 | ../..                                    \| Progress: resolved 2270, reused 0, downloaded 788, added 796
19:34:42.326 | ../..                                    \| Progress: resolved 2270, reused 0, downloaded 863, added 870
19:34:43.327 | ../..                                    \| Progress: resolved 2270, reused 0, downloaded 907, added 915
19:34:44.328 | ../..                                    \| Progress: resolved 2270, reused 0, downloaded 982, added 990
19:34:45.329 | ../..                                    \| Progress: resolved 2270, reused 0, downloaded 1076, added 1085
19:34:46.330 | ../..                                    \| Progress: resolved 2270, reused 0, downloaded 1246, added 1256
19:34:47.331 | ../..                                    \| Progress: resolved 2270, reused 0, downloaded 1326, added 1340
19:34:48.331 | ../..                                    \| Progress: resolved 2270, reused 0, downloaded 1409, added 1422
19:34:49.334 | ../..                                    \| Progress: resolved 2270, reused 0, downloaded 1458, added 1470
19:34:50.336 | ../..                                    \| Progress: resolved 2270, reused 0, downloaded 1538, added 1552
19:34:51.337 | ../..                                    \| Progress: resolved 2270, reused 0, downloaded 1620, added 1630
19:34:52.339 | ../..                                    \| Progress: resolved 2270, reused 0, downloaded 1736, added 1750
19:34:53.342 | ../..                                    \| Progress: resolved 2270, reused 0, downloaded 1810, added 1824
19:34:54.344 | ../..                                    \| Progress: resolved 2270, reused 0, downloaded 1842, added 1855
19:34:55.346 | ../..                                    \| Progress: resolved 2270, reused 0, downloaded 1888, added 1904
19:34:56.348 | ../..                                    \| Progress: resolved 2270, reused 0, downloaded 1937, added 1950
19:34:57.349 | ../..                                    \| Progress: resolved 2270, reused 0, downloaded 1999, added 2015
19:34:58.355 | ../..                                    \| Progress: resolved 2270, reused 0, downloaded 2062, added 2078
19:34:59.358 | ../..                                    \| Progress: resolved 2270, reused 0, downloaded 2152, added 2168
19:35:00.362 | ../..                                    \| Progress: resolved 2270, reused 0, downloaded 2210, added 2226
19:35:01.362 | ../..                                    \| Progress: resolved 2270, reused 0, downloaded 2244, added 2260
19:35:02.364 | ../..                                    \| Progress: resolved 2270, reused 0, downloaded 2248, added 2265
19:35:03.609 | ../..                                    \| Progress: resolved 2270, reused 0, downloaded 2249, added 2265
19:35:04.610 | ../..                                    \| Progress: resolved 2270, reused 0, downloaded 2251, added 2267
19:35:05.647 | ../..                                    \| Progress: resolved 2270, reused 0, downloaded 2253, added 2270, done
19:35:06.813 | .../node_modules/@prisma/client postinstall$ node scripts/postinstall.js
19:35:06.813 | .../node_modules/@prisma/engines postinstall$ node scripts/postinstall.js
19:35:06.814 | .../node_modules/@prisma/engines postinstall$ node download/index.js
19:35:06.902 | .../node_modules/core-js-pure postinstall$ node -e "try{require('./postinstall')}catch(e){}"
19:35:06.923 | .../[email protected]/node_modules/core-js postinstall$ node -e "try{require('./postinstall')}catch(e){}"
19:35:07.018 | .../node_modules/core-js-pure postinstall: Done
19:35:07.167 | .../[email protected]/node_modules/core-js postinstall: Done
19:35:14.888 | .../node_modules/@prisma/engines postinstall: Done
19:35:14.995 | .../node_modules/@prisma/engines postinstall: Done
19:35:15.050 | .../node_modules/@prisma/client postinstall: prisma:warn The postinstall script automatically ran `prisma generate` and did not find your `prisma/schema.prisma`.
19:35:15.050 | .../node_modules/@prisma/client postinstall: If you have a Prisma schema file in a custom path, you will need to run
19:35:15.050 | .../node_modules/@prisma/client postinstall: `prisma generate --schema=./path/to/your/schema.prisma` to generate Prisma Client.
19:35:15.051 | .../node_modules/@prisma/client postinstall: If you do not have a Prisma schema file yet, you can ignore this message.
19:35:15.094 | .../node_modules/@prisma/client postinstall: Done
19:35:16.164 | .../node_modules/@swc/core postinstall$ node postinstall.js
19:35:16.165 | .../[email protected]/node_modules/esbuild postinstall$ node install.js
19:35:16.165 | .../.pnpm/[email protected]/node_modules/turbo postinstall$ node install.js
19:35:16.165 | .../[email protected]/node_modules/esbuild postinstall$ node install.js
19:35:16.308 | .../node_modules/@swc/core postinstall: Done
19:35:16.336 | .../[email protected]/node_modules/esbuild postinstall: Done
19:35:16.342 | .../[email protected]/node_modules/prisma preinstall$ node scripts/preinstall-entry.js
19:35:16.367 | .../.pnpm/[email protected]/node_modules/turbo postinstall: Done
19:35:16.367 | .../[email protected]/node_modules/esbuild postinstall: Done
19:35:16.436 | .../[email protected]/node_modules/prisma preinstall: Done
19:35:16.436 | .../[email protected]/node_modules/prisma install$ node scripts/install-entry.js
19:35:16.555 | .../[email protected]/node_modules/prisma install: Done
19:35:16.664 | .../[email protected]/node_modules/cypress postinstall$ node index.js --exec install
19:35:16.893 | .../node_modules/@prisma/client postinstall$ node scripts/postinstall.js
19:35:17.273 | .../[email protected]/node_modules/cypress postinstall: Installing Cypress (version: 11.0.1)
19:35:17.275 | .../[email protected]/node_modules/cypress postinstall: [STARTED] Task without title.
19:35:19.135 | .../node_modules/@prisma/client postinstall: prisma:warn The postinstall script automatically ran `prisma generate` and did not find your `prisma/schema.prisma`.
19:35:19.136 | .../node_modules/@prisma/client postinstall: If you have a Prisma schema file in a custom path, you will need to run
19:35:19.136 | .../node_modules/@prisma/client postinstall: `prisma generate --schema=./path/to/your/schema.prisma` to generate Prisma Client.
19:35:19.136 | .../node_modules/@prisma/client postinstall: If you do not have a Prisma schema file yet, you can ignore this message.
19:35:19.521 | .../node_modules/@prisma/client postinstall: Done
19:35:20.508 | .../[email protected]/node_modules/cypress postinstall: [SUCCESS] Task without title.
19:35:20.509 | .../[email protected]/node_modules/cypress postinstall: [STARTED] Task without title.
19:35:26.022 | .../[email protected]/node_modules/cypress postinstall: [SUCCESS] Task without title.
19:35:26.023 | .../[email protected]/node_modules/cypress postinstall: [STARTED] Task without title.
19:35:26.046 | .../[email protected]/node_modules/cypress postinstall: [SUCCESS] Task without title.
19:35:27.049 | .../[email protected]/node_modules/cypress postinstall: You can now open Cypress by running: node_modules/.bin/cypress open
19:35:27.049 | .../[email protected]/node_modules/cypress postinstall: https://on.cypress.io/installing-cypress
19:35:27.063 | .../[email protected]/node_modules/cypress postinstall: Done
19:35:27.757 |  
19:35:27.757 | dependencies:
19:35:27.757 | + @next-auth/prisma-adapter 1.0.5
19:35:27.757 | + @next/bundle-analyzer 13.0.3
19:35:27.757 | + @tanstack/react-query 4.14.6
19:35:27.758 | + @trpc/client 10.0.0-rc.7
19:35:27.758 | + @trpc/next 10.0.0-rc.7
19:35:27.758 | + @trpc/react-query 10.0.0-rc.7
19:35:27.758 | + @trpc/server 10.0.0-rc.7
19:35:27.758 | + @weareinreach/db 0.0.0 <- ../../packages/db
19:35:27.758 | + i18next 22.0.4
19:35:27.758 | + next 13.0.3
19:35:27.758 | + next-auth 4.16.4
19:35:27.758 | + next-i18next 12.1.0
19:35:27.758 | + next-transpile-modules 10.0.0
19:35:27.758 | + react 18.2.0
19:35:27.758 | + react-dom 18.2.0
19:35:27.758 | + react-i18next 12.0.0
19:35:27.758 | + superjson 1.11.0
19:35:27.758 | + zod 3.19.1
19:35:27.759 |  
19:35:27.759 | devDependencies:
19:35:27.759 | + @types/node 16.18.3
19:35:27.759 | + @types/react 18.0.25
19:35:27.759 | + @types/react-dom 18.0.8
19:35:27.759 | + @typescript-eslint/eslint-plugin 5.42.1
19:35:27.759 | + @typescript-eslint/parser 5.42.1
19:35:27.759 | + @weareinreach/config 0.0.0 <- ../../packages/config
19:35:27.759 | + @weareinreach/eslint-config 0.0.0 <- ../../packages/eslint-config
19:35:27.759 | + @weareinreach/ui 0.0.0 <- ../../packages/ui
19:35:27.759 | + eslint 8.27.0
19:35:27.759 | + eslint-config-next 13.0.3
19:35:27.759 | + typescript 4.8.4
19:35:27.760 |  
19:35:27.760 | ../.. postinstall$ turbo run post-install
19:35:28.190 | ../.. postinstall: • Packages in scope: @weareinreach/app, @weareinreach/aws-user-migrate, @weareinreach/config, @weareinreach/db, @weareinreach/eslint-config, @weareinreach/storybook, @weareinreach/types, @weareinreach/ui, @weareinreach/web
19:35:28.191 | ../.. postinstall: • Running post-install in 9 packages
19:35:28.191 | ../.. postinstall: • Remote caching enabled
19:35:28.191 | ../.. postinstall:  Tasks:    0 successful, 0 total
19:35:28.191 | ../.. postinstall: Cached:    0 cached, 0 total
19:35:28.192 | ../.. postinstall:   Time:    401ms
19:35:28.192 | ../.. postinstall: Done
19:35:28.192 | ../.. prepare$ husky install
19:35:28.266 | ../.. prepare: husky - Git hooks installed
19:35:28.269 | ../.. prepare: Done
19:35:28.271 | Done in 1m 1.7s
19:35:28.307 | Detected Next.js version: 13.0.3
19:35:28.391 | Running "cd ../.. && npx turbo run build --filter=app..."
19:35:28.925 | • Packages in scope: @weareinreach/app, @weareinreach/config, @weareinreach/db, @weareinreach/eslint-config, @weareinreach/ui
19:35:28.926 | • Running build in 5 packages
19:35:28.926 | • Remote caching enabled
19:35:28.926 | @weareinreach/db:db:generate: cache bypass, force executing 187de26749029b3e
19:35:28.927 | @weareinreach/db:clean: cache bypass, force executing ce759e1c5ef575e5
19:35:29.524 | @weareinreach/db:db:generate:
19:35:29.525 | @weareinreach/db:db:generate: > @weareinreach/[email protected] db:generate /vercel/path0/packages/db
19:35:29.525 | @weareinreach/db:db:generate: > prisma generate && pnpm format:generated
19:35:29.525 | @weareinreach/db:db:generate:
19:35:29.525 | @weareinreach/db:clean:
19:35:29.525 | @weareinreach/db:clean: > @weareinreach/[email protected] clean /vercel/path0/packages/db
19:35:29.525 | @weareinreach/db:clean: > rm -rf dist \|\| true
19:35:29.525 | @weareinreach/db:clean:
19:35:31.304 | @weareinreach/db:db:generate: Prisma schema loaded from prisma/schema.prisma
19:35:37.047 | @weareinreach/db:db:generate:
19:35:37.047 | @weareinreach/db:db:generate: ✔ Generated Prisma Client (4.6.1 \| library) to ./../../node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client in 1.96s
19:35:37.047 | @weareinreach/db:db:generate:
19:35:37.047 | @weareinreach/db:db:generate: ✔ Generated Prisma Docs Generator to ./../../docs/database in 690ms
19:35:37.048 | @weareinreach/db:db:generate:
19:35:37.048 | @weareinreach/db:db:generate: ✔ Generated Zod Schemas (0.5.4) to ./src/zod-schemas in 1.14s
19:35:37.048 | @weareinreach/db:db:generate: You can now start using Prisma Client in your code. Reference: https://pris.ly/d/client
19:35:37.048 | @weareinreach/db:db:generate: ```
19:35:37.048 | @weareinreach/db:db:generate: import { PrismaClient } from '@prisma/client'
19:35:37.048 | @weareinreach/db:db:generate: const prisma = new PrismaClient()
19:35:37.048 | @weareinreach/db:db:generate: ```
19:35:37.711 | @weareinreach/db:db:generate:
19:35:37.711 | @weareinreach/db:db:generate: > @weareinreach/[email protected] format:generated /vercel/path0/packages/db
19:35:37.711 | @weareinreach/db:db:generate: > prettier --write ./src/zod*/*
19:35:37.711 | @weareinreach/db:db:generate:
19:35:38.792 | @weareinreach/db:db:generate: src/zod-schemas/account.ts 248ms
19:35:38.858 | @weareinreach/db:db:generate: src/zod-schemas/country.ts 57ms
19:35:38.894 | @weareinreach/db:db:generate: src/zod-schemas/fieldvisibility.ts 30ms
19:35:38.943 | @weareinreach/db:db:generate: src/zod-schemas/govdist.ts 44ms
19:35:38.970 | @weareinreach/db:db:generate: src/zod-schemas/govdisttype.ts 20ms
19:35:38.986 | @weareinreach/db:db:generate: src/zod-schemas/index.ts 10ms
19:35:39.048 | @weareinreach/db:db:generate: src/zod-schemas/internalnote.ts 57ms
19:35:39.079 | @weareinreach/db:db:generate: src/zod-schemas/language.ts 23ms
19:35:39.104 | @weareinreach/db:db:generate: src/zod-schemas/navigation.ts 18ms
19:35:39.133 | @weareinreach/db:db:generate: src/zod-schemas/organization.ts 24ms
19:35:39.181 | @weareinreach/db:db:generate: src/zod-schemas/orgdescription.ts 19ms
19:35:39.190 | @weareinreach/db:db:generate: src/zod-schemas/orgemail.ts 22ms
19:35:39.223 | @weareinreach/db:db:generate: src/zod-schemas/orghours.ts 26ms
19:35:39.268 | @weareinreach/db:db:generate: src/zod-schemas/orglocation.ts 34ms
19:35:39.300 | @weareinreach/db:db:generate: src/zod-schemas/orgphone.ts 21ms
19:35:39.324 | @weareinreach/db:db:generate: src/zod-schemas/orgphoto.ts 19ms
19:35:39.352 | @weareinreach/db:db:generate: src/zod-schemas/orgreview.ts 24ms
19:35:39.381 | @weareinreach/db:db:generate: src/zod-schemas/orgservice.ts 19ms
19:35:39.406 | @weareinreach/db:db:generate: src/zod-schemas/orgsocialmedia.ts 19ms
19:35:39.426 | @weareinreach/db:db:generate: src/zod-schemas/outsideapi.ts 13ms
19:35:39.445 | @weareinreach/db:db:generate: src/zod-schemas/permissionasset.ts 14ms
19:35:39.462 | @weareinreach/db:db:generate: src/zod-schemas/permissionitem.ts 9ms
19:35:39.477 | @weareinreach/db:db:generate: src/zod-schemas/phonetype.ts 11ms
19:35:39.495 | @weareinreach/db:db:generate: src/zod-schemas/servicecategory.ts 13ms
19:35:39.521 | @weareinreach/db:db:generate: src/zod-schemas/servicetag.ts 21ms
19:35:39.540 | @weareinreach/db:db:generate: src/zod-schemas/session.ts 7ms
19:35:39.553 | @weareinreach/db:db:generate: src/zod-schemas/socialmediaservice.ts 8ms
19:35:39.565 | @weareinreach/db:db:generate: src/zod-schemas/source.ts 8ms
19:35:39.577 | @weareinreach/db:db:generate: src/zod-schemas/translation.ts 8ms
19:35:39.601 | @weareinreach/db:db:generate: src/zod-schemas/translationkey.ts 21ms
19:35:39.625 | @weareinreach/db:db:generate: src/zod-schemas/translationnamespace.ts 17ms
19:35:39.639 | @weareinreach/db:db:generate: src/zod-schemas/translationvariable.ts 8ms
19:35:39.702 | @weareinreach/db:db:generate: src/zod-schemas/user.ts 58ms
19:35:39.714 | @weareinreach/db:db:generate: src/zod-schemas/usercommunity.ts 8ms
19:35:39.728 | @weareinreach/db:db:generate: src/zod-schemas/userethnicity.ts 10ms
19:35:39.740 | @weareinreach/db:db:generate: src/zod-schemas/userimmigration.ts 7ms
19:35:39.755 | @weareinreach/db:db:generate: src/zod-schemas/userrole.ts 7ms
19:35:39.770 | @weareinreach/db:db:generate: src/zod-schemas/usersavedlist.ts 10ms
19:35:39.796 | @weareinreach/db:db:generate: src/zod-schemas/usersog.ts 21ms
19:35:39.812 | @weareinreach/db:db:generate: src/zod-schemas/usertitle.ts 11ms
19:35:39.826 | @weareinreach/db:db:generate: src/zod-schemas/usertype.ts 9ms
19:35:39.838 | @weareinreach/db:db:generate: src/zod-schemas/verificationtoken.ts 5ms
19:35:39.895 | @weareinreach/db:db:generate: src/zod-util/index.ts 52ms
19:35:39.971 | @weareinreach/app:build: cache bypass, force executing 51e01ac35614c612
19:35:40.521 | @weareinreach/app:build:
19:35:40.522 | @weareinreach/app:build: > @weareinreach/[email protected] build /vercel/path0/apps/app
19:35:40.522 | @weareinreach/app:build: > next build
19:35:40.523 | @weareinreach/app:build:
19:35:40.986 | @weareinreach/app:build: Attention: Next.js now collects completely anonymous telemetry regarding usage.
19:35:40.986 | @weareinreach/app:build: This information is used to shape Next.js' roadmap and prioritize features.
19:35:40.986 | @weareinreach/app:build: You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
19:35:40.986 | @weareinreach/app:build: https://nextjs.org/telemetry
19:35:40.986 | @weareinreach/app:build:
19:35:41.087 | @weareinreach/app:build: info  - Linting and checking validity of types...
19:35:43.956 | @weareinreach/app:build:
19:35:43.956 | @weareinreach/app:build: ./src/pages/index.tsx
19:35:43.956 | @weareinreach/app:build: 8:12  Warning: disallow literal string: <title>Create T3 App</title>  i18next/no-literal-string
19:35:43.956 | @weareinreach/app:build:
19:35:43.956 | @weareinreach/app:build: info  - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
19:35:45.648 | @weareinreach/app:build: info  - Creating an optimized production build...
19:36:00.289 | @weareinreach/app:build: info  - Compiled successfully
19:36:00.289 | @weareinreach/app:build: info  - Collecting page data...
19:36:09.921 | @weareinreach/app:build: info  - Generating static pages (0/24)
19:36:10.053 | @weareinreach/app:build: info  - Generating static pages (6/24)
19:36:10.071 | @weareinreach/app:build: info  - Generating static pages (12/24)
19:36:10.087 | @weareinreach/app:build: info  - Generating static pages (18/24)
19:36:10.113 | @weareinreach/app:build: info  - Generating static pages (24/24)
19:36:10.131 | @weareinreach/app:build: info  - Finalizing page optimization...
19:36:10.136 | @weareinreach/app:build:
19:36:10.144 | @weareinreach/app:build: Route (pages)                              Size     First Load JS
19:36:10.144 | @weareinreach/app:build: ┌ ○ /                                      503 B           179 kB
19:36:10.144 | @weareinreach/app:build: ├   /_app                                  0 B             179 kB
19:36:10.144 | @weareinreach/app:build: ├ ○ /404                                   215 B           179 kB
19:36:10.144 | @weareinreach/app:build: ├ λ /api/auth/[...nextauth]                0 B             179 kB
19:36:10.144 | @weareinreach/app:build: + First Load JS shared by all              179 kB
19:36:10.144 | @weareinreach/app:build:   ├ chunks/framework-20996c291c2dfa29.js   45.7 kB
19:36:10.144 | @weareinreach/app:build:   ├ chunks/main-ef60f45f368c058f.js        32.8 kB
19:36:10.144 | @weareinreach/app:build:   ├ chunks/pages/_app-ca46fe3c4386a1eb.js  99.1 kB
19:36:10.144 | @weareinreach/app:build:   └ chunks/webpack-a0deeec5c85c92d3.js     1.25 kB
19:36:10.144 | @weareinreach/app:build:
19:36:10.144 | @weareinreach/app:build: λ  (Server)  server-side renders at runtime (uses getInitialProps or getServerSideProps)
19:36:10.144 | @weareinreach/app:build: ○  (Static)  automatically rendered as static HTML (uses no initial props)
19:36:10.145 | @weareinreach/app:build:
19:36:10.480 |  
19:36:10.480 | Tasks:    3 successful, 3 total
19:36:10.480 | Cached:    0 cached, 3 total
19:36:10.480 | Time:    41.691s
19:36:10.480 |  
19:36:26.195 | Traced Next.js server files in: 15.354s
19:36:27.192 | Serverless function size info
19:36:27.192 | Serverless Function's pages: api/auth/[...nextauth].js, api/trpc/[trpc].js
19:36:27.197 | Large Dependencies                                         Uncompressed size  Compressed size
19:36:27.197 | node_modules/.pnpm/@[email protected]                    43.1 MB          14.4 MB
19:36:27.197 | node_modules/.pnpm/@[email protected]                   42.7 MB          14.3 MB
19:36:27.197 | node_modules/.pnpm/[email protected]                          8.36 MB          3.52 MB
19:36:27.197 | node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y            8.09 MB          2.16 MB
19:36:27.197 | node_modules/.pnpm/[email protected]_@[email protected]                   3.93 MB           954 kB
19:36:27.197 | apps/app/.next                                                       3.72 MB           687 kB
19:36:27.197 | node_modules/.pnpm/[email protected][email protected]                     1.72 MB           415 kB
19:36:27.197 | node_modules/.pnpm/[email protected]                                  1.18 MB           213 kB
19:36:27.197 | node_modules/.pnpm/[email protected]                                      962 kB           185 kB
19:36:27.198 |  
19:36:27.198 | All dependencies                                                     14.2 MB            38 MB
19:36:27.205 | Created all serverless functions in: 1.010s
19:36:27.213 | Collected static files (public/, static/, .next/static): 5.122ms
19:36:28.401 | Build Completed in /vercel/output [2m]
19:36:39.006 | Generated build outputs:
19:36:39.006 | - Static files: 32
19:36:39.006 | - Serverless Functions: 2
19:36:39.006 | - Edge Functions: 0
19:36:39.006 | Serverless regions: Washington, D.C., USA
19:36:39.007 | Deployed outputs in 3s
19:36:39.859 | Build completed. Populating build cache...

@belgattitude
Copy link
Contributor

belgattitude commented Nov 12, 2022

Yep it's weird I'm trying to reproduce here: https://github.com/belgattitude/compare-package-managers. But I don't use the experimental corepack (so I guess I have a lower version of pnpm)

Can you try a pnpm why -r @swc/core ? (you shouldn't have any)

@JoeKarow
Copy link

Sure, here you are! It looks like only our Storybook repo is using @swc/core. @weareinreach/storybook is a standalone package - it's not a dependency to anything.

Details
❯ pnpm -r why @swc/core
Legend: production dependency, optional only, dev only

@weareinreach/[email protected] /Users/joe/GitHub/InReach/monorepo/packages/storybook

dependencies:
storybook-addon-next 1.6.10
├─┬ postcss-loader 6.2.1
│ └─┬ webpack 5.75.0 peer
│   └─┬ terser-webpack-plugin 5.3.6
│     └── @swc/core 1.3.14 peer
└─┬ sass-loader 12.6.0
  └─┬ webpack 5.75.0 peer
    └─┬ terser-webpack-plugin 5.3.6
      └── @swc/core 1.3.14 peer

devDependencies:
@storybook/addon-essentials 6.5.13
├─┬ @storybook/addon-docs 6.5.13
│ └─┬ babel-loader 8.3.0
│   └─┬ webpack 5.75.0 peer
│     └─┬ terser-webpack-plugin 5.3.6
│       └── @swc/core 1.3.14 peer
├─┬ @storybook/builder-webpack5 6.5.13 peer
│ ├─┬ babel-loader 8.3.0
│ │ └─┬ webpack 5.75.0 peer
│ │   └─┬ terser-webpack-plugin 5.3.6
│ │     └── @swc/core 1.3.14 peer
│ ├─┬ css-loader 5.2.7
│ │ └─┬ webpack 5.75.0 peer
│ │   └─┬ terser-webpack-plugin 5.3.6
│ │     └── @swc/core 1.3.14 peer
│ ├─┬ fork-ts-checker-webpack-plugin 6.5.2
│ │ └─┬ webpack 5.75.0 peer
│ │   └─┬ terser-webpack-plugin 5.3.6
│ │     └── @swc/core 1.3.14 peer
│ ├─┬ html-webpack-plugin 5.5.0
│ │ └─┬ webpack 5.75.0 peer
│ │   └─┬ terser-webpack-plugin 5.3.6
│ │     └── @swc/core 1.3.14 peer
│ ├─┬ style-loader 2.0.0
│ │ └─┬ webpack 5.75.0 peer
│ │   └─┬ terser-webpack-plugin 5.3.6
│ │     └── @swc/core 1.3.14 peer
│ ├─┬ terser-webpack-plugin 5.3.6
│ │ └── @swc/core 1.3.14 peer
│ ├─┬ webpack 5.75.0
│ │ └─┬ terser-webpack-plugin 5.3.6
│ │   └── @swc/core 1.3.14 peer
│ └─┬ webpack-dev-middleware 4.3.0
│   └─┬ webpack 5.75.0 peer
│     └─┬ terser-webpack-plugin 5.3.6
│       └── @swc/core 1.3.14 peer
└─┬ webpack 5.75.0 peer
  └─┬ terser-webpack-plugin 5.3.6
    └── @swc/core 1.3.14 peer
@storybook/builder-webpack5 6.5.13
├─┬ babel-loader 8.3.0
│ └─┬ webpack 5.75.0 peer
│   └─┬ terser-webpack-plugin 5.3.6
│     └── @swc/core 1.3.14 peer
├─┬ css-loader 5.2.7
│ └─┬ webpack 5.75.0 peer
│   └─┬ terser-webpack-plugin 5.3.6
│     └── @swc/core 1.3.14 peer
├─┬ fork-ts-checker-webpack-plugin 6.5.2
│ └─┬ webpack 5.75.0 peer
│   └─┬ terser-webpack-plugin 5.3.6
│     └── @swc/core 1.3.14 peer
├─┬ html-webpack-plugin 5.5.0
│ └─┬ webpack 5.75.0 peer
│   └─┬ terser-webpack-plugin 5.3.6
│     └── @swc/core 1.3.14 peer
├─┬ style-loader 2.0.0
│ └─┬ webpack 5.75.0 peer
│   └─┬ terser-webpack-plugin 5.3.6
│     └── @swc/core 1.3.14 peer
├─┬ terser-webpack-plugin 5.3.6
│ └── @swc/core 1.3.14 peer
├─┬ webpack 5.75.0
│ └─┬ terser-webpack-plugin 5.3.6
│   └── @swc/core 1.3.14 peer
└─┬ webpack-dev-middleware 4.3.0
  └─┬ webpack 5.75.0 peer
    └─┬ terser-webpack-plugin 5.3.6
      └── @swc/core 1.3.14 peer
@storybook/manager-webpack5 6.5.13
├─┬ @storybook/core-client 6.5.13
│ └─┬ webpack 5.75.0 peer
│   └─┬ terser-webpack-plugin 5.3.6
│     └── @swc/core 1.3.14 peer
├─┬ babel-loader 8.3.0
│ └─┬ webpack 5.75.0 peer
│   └─┬ terser-webpack-plugin 5.3.6
│     └── @swc/core 1.3.14 peer
├─┬ css-loader 5.2.7
│ └─┬ webpack 5.75.0 peer
│   └─┬ terser-webpack-plugin 5.3.6
│     └── @swc/core 1.3.14 peer
├─┬ html-webpack-plugin 5.5.0
│ └─┬ webpack 5.75.0 peer
│   └─┬ terser-webpack-plugin 5.3.6
│     └── @swc/core 1.3.14 peer
├─┬ style-loader 2.0.0
│ └─┬ webpack 5.75.0 peer
│   └─┬ terser-webpack-plugin 5.3.6
│     └── @swc/core 1.3.14 peer
├─┬ terser-webpack-plugin 5.3.6
│ └── @swc/core 1.3.14 peer
├─┬ webpack 5.75.0
│ └─┬ terser-webpack-plugin 5.3.6
│   └── @swc/core 1.3.14 peer
└─┬ webpack-dev-middleware 4.3.0
  └─┬ webpack 5.75.0 peer
    └─┬ terser-webpack-plugin 5.3.6
      └── @swc/core 1.3.14 peer
@storybook/react 6.5.13
├─┬ @pmmmwh/react-refresh-webpack-plugin 0.5.8
│ └─┬ webpack 5.75.0 peer
│   └─┬ terser-webpack-plugin 5.3.6
│     └── @swc/core 1.3.14 peer
├─┬ @storybook/builder-webpack5 6.5.13 peer
│ ├─┬ babel-loader 8.3.0
│ │ └─┬ webpack 5.75.0 peer
│ │   └─┬ terser-webpack-plugin 5.3.6
│ │     └── @swc/core 1.3.14 peer
│ ├─┬ css-loader 5.2.7
│ │ └─┬ webpack 5.75.0 peer
│ │   └─┬ terser-webpack-plugin 5.3.6
│ │     └── @swc/core 1.3.14 peer
│ ├─┬ fork-ts-checker-webpack-plugin 6.5.2
│ │ └─┬ webpack 5.75.0 peer
│ │   └─┬ terser-webpack-plugin 5.3.6
│ │     └── @swc/core 1.3.14 peer
│ ├─┬ html-webpack-plugin 5.5.0
│ │ └─┬ webpack 5.75.0 peer
│ │   └─┬ terser-webpack-plugin 5.3.6
│ │     └── @swc/core 1.3.14 peer
│ ├─┬ style-loader 2.0.0
│ │ └─┬ webpack 5.75.0 peer
│ │   └─┬ terser-webpack-plugin 5.3.6
│ │     └── @swc/core 1.3.14 peer
│ ├─┬ terser-webpack-plugin 5.3.6
│ │ └── @swc/core 1.3.14 peer
│ ├─┬ webpack 5.75.0
│ │ └─┬ terser-webpack-plugin 5.3.6
│ │   └── @swc/core 1.3.14 peer
│ └─┬ webpack-dev-middleware 4.3.0
│   └─┬ webpack 5.75.0 peer
│     └─┬ terser-webpack-plugin 5.3.6
│       └── @swc/core 1.3.14 peer
├─┬ @storybook/core 6.5.13
│ ├─┬ @storybook/builder-webpack5 6.5.13 peer
│ │ ├─┬ babel-loader 8.3.0
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │     └── @swc/core 1.3.14 peer
│ │ ├─┬ css-loader 5.2.7
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │     └── @swc/core 1.3.14 peer
│ │ ├─┬ fork-ts-checker-webpack-plugin 6.5.2
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │     └── @swc/core 1.3.14 peer
│ │ ├─┬ html-webpack-plugin 5.5.0
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │     └── @swc/core 1.3.14 peer
│ │ ├─┬ style-loader 2.0.0
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │     └── @swc/core 1.3.14 peer
│ │ ├─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ webpack 5.75.0
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │   └── @swc/core 1.3.14 peer
│ │ └─┬ webpack-dev-middleware 4.3.0
│ │   └─┬ webpack 5.75.0 peer
│ │     └─┬ terser-webpack-plugin 5.3.6
│ │       └── @swc/core 1.3.14 peer
│ ├─┬ @storybook/core-client 6.5.13
│ │ └─┬ webpack 5.75.0 peer
│ │   └─┬ terser-webpack-plugin 5.3.6
│ │     └── @swc/core 1.3.14 peer
│ ├─┬ @storybook/core-server 6.5.13
│ │ ├─┬ @storybook/builder-webpack5 6.5.13 peer
│ │ │ ├─┬ babel-loader 8.3.0
│ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │ │     └── @swc/core 1.3.14 peer
│ │ │ ├─┬ css-loader 5.2.7
│ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │ │     └── @swc/core 1.3.14 peer
│ │ │ ├─┬ fork-ts-checker-webpack-plugin 6.5.2
│ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │ │     └── @swc/core 1.3.14 peer
│ │ │ ├─┬ html-webpack-plugin 5.5.0
│ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │ │     └── @swc/core 1.3.14 peer
│ │ │ ├─┬ style-loader 2.0.0
│ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │ │     └── @swc/core 1.3.14 peer
│ │ │ ├─┬ terser-webpack-plugin 5.3.6
│ │ │ │ └── @swc/core 1.3.14 peer
│ │ │ ├─┬ webpack 5.75.0
│ │ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ │   └── @swc/core 1.3.14 peer
│ │ │ └─┬ webpack-dev-middleware 4.3.0
│ │ │   └─┬ webpack 5.75.0 peer
│ │ │     └─┬ terser-webpack-plugin 5.3.6
│ │ │       └── @swc/core 1.3.14 peer
│ │ └─┬ @storybook/manager-webpack5 6.5.13 peer
│ │   ├─┬ @storybook/core-client 6.5.13
│ │   │ └─┬ webpack 5.75.0 peer
│ │   │   └─┬ terser-webpack-plugin 5.3.6
│ │   │     └── @swc/core 1.3.14 peer
│ │   ├─┬ babel-loader 8.3.0
│ │   │ └─┬ webpack 5.75.0 peer
│ │   │   └─┬ terser-webpack-plugin 5.3.6
│ │   │     └── @swc/core 1.3.14 peer
│ │   ├─┬ css-loader 5.2.7
│ │   │ └─┬ webpack 5.75.0 peer
│ │   │   └─┬ terser-webpack-plugin 5.3.6
│ │   │     └── @swc/core 1.3.14 peer
│ │   ├─┬ html-webpack-plugin 5.5.0
│ │   │ └─┬ webpack 5.75.0 peer
│ │   │   └─┬ terser-webpack-plugin 5.3.6
│ │   │     └── @swc/core 1.3.14 peer
│ │   ├─┬ style-loader 2.0.0
│ │   │ └─┬ webpack 5.75.0 peer
│ │   │   └─┬ terser-webpack-plugin 5.3.6
│ │   │     └── @swc/core 1.3.14 peer
│ │   ├─┬ terser-webpack-plugin 5.3.6
│ │   │ └── @swc/core 1.3.14 peer
│ │   ├─┬ webpack 5.75.0
│ │   │ └─┬ terser-webpack-plugin 5.3.6
│ │   │   └── @swc/core 1.3.14 peer
│ │   └─┬ webpack-dev-middleware 4.3.0
│ │     └─┬ webpack 5.75.0 peer
│ │       └─┬ terser-webpack-plugin 5.3.6
│ │         └── @swc/core 1.3.14 peer
│ ├─┬ @storybook/manager-webpack5 6.5.13 peer
│ │ ├─┬ @storybook/core-client 6.5.13
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │     └── @swc/core 1.3.14 peer
│ │ ├─┬ babel-loader 8.3.0
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │     └── @swc/core 1.3.14 peer
│ │ ├─┬ css-loader 5.2.7
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │     └── @swc/core 1.3.14 peer
│ │ ├─┬ html-webpack-plugin 5.5.0
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │     └── @swc/core 1.3.14 peer
│ │ ├─┬ style-loader 2.0.0
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │     └── @swc/core 1.3.14 peer
│ │ ├─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ webpack 5.75.0
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │   └── @swc/core 1.3.14 peer
│ │ └─┬ webpack-dev-middleware 4.3.0
│ │   └─┬ webpack 5.75.0 peer
│ │     └─┬ terser-webpack-plugin 5.3.6
│ │       └── @swc/core 1.3.14 peer
│ └─┬ webpack 5.75.0 peer
│   └─┬ terser-webpack-plugin 5.3.6
│     └── @swc/core 1.3.14 peer
├─┬ @storybook/manager-webpack5 6.5.13 peer
│ ├─┬ @storybook/core-client 6.5.13
│ │ └─┬ webpack 5.75.0 peer
│ │   └─┬ terser-webpack-plugin 5.3.6
│ │     └── @swc/core 1.3.14 peer
│ ├─┬ babel-loader 8.3.0
│ │ └─┬ webpack 5.75.0 peer
│ │   └─┬ terser-webpack-plugin 5.3.6
│ │     └── @swc/core 1.3.14 peer
│ ├─┬ css-loader 5.2.7
│ │ └─┬ webpack 5.75.0 peer
│ │   └─┬ terser-webpack-plugin 5.3.6
│ │     └── @swc/core 1.3.14 peer
│ ├─┬ html-webpack-plugin 5.5.0
│ │ └─┬ webpack 5.75.0 peer
│ │   └─┬ terser-webpack-plugin 5.3.6
│ │     └── @swc/core 1.3.14 peer
│ ├─┬ style-loader 2.0.0
│ │ └─┬ webpack 5.75.0 peer
│ │   └─┬ terser-webpack-plugin 5.3.6
│ │     └── @swc/core 1.3.14 peer
│ ├─┬ terser-webpack-plugin 5.3.6
│ │ └── @swc/core 1.3.14 peer
│ ├─┬ webpack 5.75.0
│ │ └─┬ terser-webpack-plugin 5.3.6
│ │   └── @swc/core 1.3.14 peer
│ └─┬ webpack-dev-middleware 4.3.0
│   └─┬ webpack 5.75.0 peer
│     └─┬ terser-webpack-plugin 5.3.6
│       └── @swc/core 1.3.14 peer
├─┬ @storybook/react-docgen-typescript-plugin 1.0.2-canary.6.9d540b91e815f8fc2f8829189deb00553559ff63.0
│ └─┬ webpack 5.75.0 peer
│   └─┬ terser-webpack-plugin 5.3.6
│     └── @swc/core 1.3.14 peer
└─┬ webpack 5.75.0
  └─┬ terser-webpack-plugin 5.3.6
    └── @swc/core 1.3.14 peer
babel-loader 9.1.0
└─┬ webpack 5.75.0 peer
  └─┬ terser-webpack-plugin 5.3.6
    └── @swc/core 1.3.14 peer
css-loader 6.7.1
└─┬ webpack 5.75.0 peer
  └─┬ terser-webpack-plugin 5.3.6
    └── @swc/core 1.3.14 peer
storybook-addon-mantine 1.2.0
├─┬ @storybook/addon-essentials 6.5.13 peer
│ ├─┬ @storybook/addon-docs 6.5.13
│ │ └─┬ babel-loader 8.3.0
│ │   └─┬ webpack 5.75.0 peer
│ │     └─┬ terser-webpack-plugin 5.3.6
│ │       └── @swc/core 1.3.14 peer
│ ├─┬ @storybook/builder-webpack5 6.5.13 peer
│ │ ├─┬ babel-loader 8.3.0
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │     └── @swc/core 1.3.14 peer
│ │ ├─┬ css-loader 5.2.7
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │     └── @swc/core 1.3.14 peer
│ │ ├─┬ fork-ts-checker-webpack-plugin 6.5.2
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │     └── @swc/core 1.3.14 peer
│ │ ├─┬ html-webpack-plugin 5.5.0
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │     └── @swc/core 1.3.14 peer
│ │ ├─┬ style-loader 2.0.0
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │     └── @swc/core 1.3.14 peer
│ │ ├─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ webpack 5.75.0
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │   └── @swc/core 1.3.14 peer
│ │ └─┬ webpack-dev-middleware 4.3.0
│ │   └─┬ webpack 5.75.0 peer
│ │     └─┬ terser-webpack-plugin 5.3.6
│ │       └── @swc/core 1.3.14 peer
│ └─┬ webpack 5.75.0 peer
│   └─┬ terser-webpack-plugin 5.3.6
│     └── @swc/core 1.3.14 peer
├─┬ @storybook/react 6.5.13 peer
│ ├─┬ @pmmmwh/react-refresh-webpack-plugin 0.5.8
│ │ └─┬ webpack 5.75.0 peer
│ │   └─┬ terser-webpack-plugin 5.3.6
│ │     └── @swc/core 1.3.14 peer
│ ├─┬ @storybook/builder-webpack5 6.5.13 peer
│ │ ├─┬ babel-loader 8.3.0
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │     └── @swc/core 1.3.14 peer
│ │ ├─┬ css-loader 5.2.7
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │     └── @swc/core 1.3.14 peer
│ │ ├─┬ fork-ts-checker-webpack-plugin 6.5.2
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │     └── @swc/core 1.3.14 peer
│ │ ├─┬ html-webpack-plugin 5.5.0
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │     └── @swc/core 1.3.14 peer
│ │ ├─┬ style-loader 2.0.0
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │     └── @swc/core 1.3.14 peer
│ │ ├─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ webpack 5.75.0
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │   └── @swc/core 1.3.14 peer
│ │ └─┬ webpack-dev-middleware 4.3.0
│ │   └─┬ webpack 5.75.0 peer
│ │     └─┬ terser-webpack-plugin 5.3.6
│ │       └── @swc/core 1.3.14 peer
│ ├─┬ @storybook/core 6.5.13
│ │ ├─┬ @storybook/builder-webpack5 6.5.13 peer
│ │ │ ├─┬ babel-loader 8.3.0
│ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │ │     └── @swc/core 1.3.14 peer
│ │ │ ├─┬ css-loader 5.2.7
│ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │ │     └── @swc/core 1.3.14 peer
│ │ │ ├─┬ fork-ts-checker-webpack-plugin 6.5.2
│ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │ │     └── @swc/core 1.3.14 peer
│ │ │ ├─┬ html-webpack-plugin 5.5.0
│ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │ │     └── @swc/core 1.3.14 peer
│ │ │ ├─┬ style-loader 2.0.0
│ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │ │     └── @swc/core 1.3.14 peer
│ │ │ ├─┬ terser-webpack-plugin 5.3.6
│ │ │ │ └── @swc/core 1.3.14 peer
│ │ │ ├─┬ webpack 5.75.0
│ │ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ │   └── @swc/core 1.3.14 peer
│ │ │ └─┬ webpack-dev-middleware 4.3.0
│ │ │   └─┬ webpack 5.75.0 peer
│ │ │     └─┬ terser-webpack-plugin 5.3.6
│ │ │       └── @swc/core 1.3.14 peer
│ │ ├─┬ @storybook/core-client 6.5.13
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │     └── @swc/core 1.3.14 peer
│ │ ├─┬ @storybook/core-server 6.5.13
│ │ │ ├─┬ @storybook/builder-webpack5 6.5.13 peer
│ │ │ │ ├─┬ babel-loader 8.3.0
│ │ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │ │ │     └── @swc/core 1.3.14 peer
│ │ │ │ ├─┬ css-loader 5.2.7
│ │ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │ │ │     └── @swc/core 1.3.14 peer
│ │ │ │ ├─┬ fork-ts-checker-webpack-plugin 6.5.2
│ │ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │ │ │     └── @swc/core 1.3.14 peer
│ │ │ │ ├─┬ html-webpack-plugin 5.5.0
│ │ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │ │ │     └── @swc/core 1.3.14 peer
│ │ │ │ ├─┬ style-loader 2.0.0
│ │ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │ │ │     └── @swc/core 1.3.14 peer
│ │ │ │ ├─┬ terser-webpack-plugin 5.3.6
│ │ │ │ │ └── @swc/core 1.3.14 peer
│ │ │ │ ├─┬ webpack 5.75.0
│ │ │ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ │ │   └── @swc/core 1.3.14 peer
│ │ │ │ └─┬ webpack-dev-middleware 4.3.0
│ │ │ │   └─┬ webpack 5.75.0 peer
│ │ │ │     └─┬ terser-webpack-plugin 5.3.6
│ │ │ │       └── @swc/core 1.3.14 peer
│ │ │ └─┬ @storybook/manager-webpack5 6.5.13 peer
│ │ │   ├─┬ @storybook/core-client 6.5.13
│ │ │   │ └─┬ webpack 5.75.0 peer
│ │ │   │   └─┬ terser-webpack-plugin 5.3.6
│ │ │   │     └── @swc/core 1.3.14 peer
│ │ │   ├─┬ babel-loader 8.3.0
│ │ │   │ └─┬ webpack 5.75.0 peer
│ │ │   │   └─┬ terser-webpack-plugin 5.3.6
│ │ │   │     └── @swc/core 1.3.14 peer
│ │ │   ├─┬ css-loader 5.2.7
│ │ │   │ └─┬ webpack 5.75.0 peer
│ │ │   │   └─┬ terser-webpack-plugin 5.3.6
│ │ │   │     └── @swc/core 1.3.14 peer
│ │ │   ├─┬ html-webpack-plugin 5.5.0
│ │ │   │ └─┬ webpack 5.75.0 peer
│ │ │   │   └─┬ terser-webpack-plugin 5.3.6
│ │ │   │     └── @swc/core 1.3.14 peer
│ │ │   ├─┬ style-loader 2.0.0
│ │ │   │ └─┬ webpack 5.75.0 peer
│ │ │   │   └─┬ terser-webpack-plugin 5.3.6
│ │ │   │     └── @swc/core 1.3.14 peer
│ │ │   ├─┬ terser-webpack-plugin 5.3.6
│ │ │   │ └── @swc/core 1.3.14 peer
│ │ │   ├─┬ webpack 5.75.0
│ │ │   │ └─┬ terser-webpack-plugin 5.3.6
│ │ │   │   └── @swc/core 1.3.14 peer
│ │ │   └─┬ webpack-dev-middleware 4.3.0
│ │ │     └─┬ webpack 5.75.0 peer
│ │ │       └─┬ terser-webpack-plugin 5.3.6
│ │ │         └── @swc/core 1.3.14 peer
│ │ ├─┬ @storybook/manager-webpack5 6.5.13 peer
│ │ │ ├─┬ @storybook/core-client 6.5.13
│ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │ │     └── @swc/core 1.3.14 peer
│ │ │ ├─┬ babel-loader 8.3.0
│ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │ │     └── @swc/core 1.3.14 peer
│ │ │ ├─┬ css-loader 5.2.7
│ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │ │     └── @swc/core 1.3.14 peer
│ │ │ ├─┬ html-webpack-plugin 5.5.0
│ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │ │     └── @swc/core 1.3.14 peer
│ │ │ ├─┬ style-loader 2.0.0
│ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │ │     └── @swc/core 1.3.14 peer
│ │ │ ├─┬ terser-webpack-plugin 5.3.6
│ │ │ │ └── @swc/core 1.3.14 peer
│ │ │ ├─┬ webpack 5.75.0
│ │ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ │   └── @swc/core 1.3.14 peer
│ │ │ └─┬ webpack-dev-middleware 4.3.0
│ │ │   └─┬ webpack 5.75.0 peer
│ │ │     └─┬ terser-webpack-plugin 5.3.6
│ │ │       └── @swc/core 1.3.14 peer
│ │ └─┬ webpack 5.75.0 peer
│ │   └─┬ terser-webpack-plugin 5.3.6
│ │     └── @swc/core 1.3.14 peer
│ ├─┬ @storybook/manager-webpack5 6.5.13 peer
│ │ ├─┬ @storybook/core-client 6.5.13
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │     └── @swc/core 1.3.14 peer
│ │ ├─┬ babel-loader 8.3.0
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │     └── @swc/core 1.3.14 peer
│ │ ├─┬ css-loader 5.2.7
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │     └── @swc/core 1.3.14 peer
│ │ ├─┬ html-webpack-plugin 5.5.0
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │     └── @swc/core 1.3.14 peer
│ │ ├─┬ style-loader 2.0.0
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │   └─┬ terser-webpack-plugin 5.3.6
│ │ │     └── @swc/core 1.3.14 peer
│ │ ├─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ webpack 5.75.0
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │   └── @swc/core 1.3.14 peer
│ │ └─┬ webpack-dev-middleware 4.3.0
│ │   └─┬ webpack 5.75.0 peer
│ │     └─┬ terser-webpack-plugin 5.3.6
│ │       └── @swc/core 1.3.14 peer
│ ├─┬ @storybook/react-docgen-typescript-plugin 1.0.2-canary.6.9d540b91e815f8fc2f8829189deb00553559ff63.0
│ │ └─┬ webpack 5.75.0 peer
│ │   └─┬ terser-webpack-plugin 5.3.6
│ │     └── @swc/core 1.3.14 peer
│ └─┬ webpack 5.75.0
│   └─┬ terser-webpack-plugin 5.3.6
│     └── @swc/core 1.3.14 peer
├─┬ babel-loader 9.1.0 peer
│ └─┬ webpack 5.75.0 peer
│   └─┬ terser-webpack-plugin 5.3.6
│     └── @swc/core 1.3.14 peer
└─┬ webpack 5.75.0 peer
  └─┬ terser-webpack-plugin 5.3.6
    └── @swc/core 1.3.14 peer
storybook-addon-swc 1.1.9
├── @swc/core 1.3.14
├─┬ swc-loader 0.1.16
│ ├── @swc/core 1.3.14 peer
│ └─┬ webpack 5.75.0 peer
│   └─┬ terser-webpack-plugin 5.3.6
│     └── @swc/core 1.3.14 peer
└─┬ webpack 5.75.0 peer
  └─┬ terser-webpack-plugin 5.3.6
    └── @swc/core 1.3.14 peer
storybook-addon-turbo-build 1.1.0
└─┬ esbuild-loader 2.20.0
  └─┬ webpack 5.75.0 peer
    └─┬ terser-webpack-plugin 5.3.6
      └── @swc/core 1.3.14 peer
webpack 5.75.0
└─┬ terser-webpack-plugin 5.3.6
  └── @swc/core 1.3.14 peer

@belgattitude
Copy link
Contributor

belgattitude commented Nov 12, 2022

Would move storybook-addon-next is in your devDependencies as a first step... and if it's already done, I guess there's a bug in the outfileFileTracing / nft.

Edit: Seeing terser and uglify, it might be actually related to nft (?) Why dev deps here ? They should be dropped (maybe @balazsorban44 can confirm). Just tested a standalone build to see locally, maybe a clue:

image

PS: about having musl and glibc packages is another problem. AFAIK the only pm that is able to not install only what's needed is yarn 3+ (https://yarnpkg.com/configuration/yarnrc#supportedArchitectures). But I agree @swc/core should be dropped, so I shouldn't make any difference

@JoeKarow
Copy link

Moving storybook-addon-next to devDependencies did not change the size.

@belgattitude
Copy link
Contributor

belgattitude commented Nov 12, 2022

Mmm, by chance do you have some storybook in deps ? Niot sure what you're testingn but I see this https://github.com/weareinreach/InReach/blob/a82a69851e284c71f3cca7011a6813b9b8e09467/packages/storybook/package.json#L18). Would it fix the issue ?

@JoeKarow
Copy link

I pulled out the vite builder and there was no change. The only time anything storybook-related is referenced outside of the @weareinreach/storybook package is just an eslint plugin in a shared config package.

image

@JoeKarow
Copy link

@erawk
What does your function bundle look like when building on 13.0.3?

@erawk
Copy link
Author

erawk commented Nov 12, 2022

Hey! Can you share a list of asset/dependency sizes when deploying 13.0.1? Then we can tell which part actually became larger in the newer version.

Here you go, @shuding . TLDR -- in versions 13.0.2+, am now seeing a @swc/core included.

13.0.1
Large Dependencies                               Uncompressed size  Compressed size
node_modules/.prisma/client                                44.9 MB          15.6 MB
node_modules/next/dist                                     7.95 MB          2.15 MB
node_modules/@fortawesome/pro-regular-svg-icons            3.57 MB           1.1 MB
node_modules/react-icons/fa                                1.38 MB           434 kB
node_modules/react-dom/cjs                                 1.72 MB           414 kB
node_modules/react-icons/md                                1.83 MB           367 kB
node_modules/@prisma/client                                1.23 MB           267 kB
.next/server/chunks                                         1.3 MB           248 kB
node_modules/react-icons/ai                                 665 kB           167 kB
node_modules/react-bricks/node_modules                      419 kB           127 kB
node_modules/libphonenumber-js/build                        355 kB           118 kB
node_modules/libphonenumber-js/es6                          326 kB           108 kB
pages/t/[slug].js                                           703 kB           106 kB
node_modules/instantsearch.js/cjs                           352 kB           102 kB
node_modules/react-bricks/index.js                          321 kB           100 kB
modules/directoryTopics/constants                           517 kB          77.3 kB
All dependencies                                           81.1 MB          24.9 MB
13.0.2 - exceeds threshold
Large Dependencies                               Uncompressed size  Compressed size
node_modules/.prisma/client                                44.9 MB          15.6 MB
node_modules/@swc/core-linux-x64-gnu                       43.1 MB          14.4 MB
node_modules/@swc/core-linux-x64-musl                      42.7 MB          14.3 MB
node_modules/esbuild-linux-64/bin                          8.36 MB          3.52 MB
node_modules/next/dist                                     8.24 MB           2.2 MB
node_modules/@fortawesome/pro-regular-svg-icons            3.55 MB          1.09 MB
node_modules/webpack/lib                                    3.3 MB           848 kB
node_modules/react-dom/cjs                                 1.72 MB           414 kB
node_modules/@prisma/client                                1.23 MB           267 kB
node_modules/terser/dist                                    959 kB           183 kB
.next/server/chunks                                         598 kB           132 kB
node_modules/libphonenumber-js/build                        355 kB           118 kB
node_modules/libphonenumber-js/es6                          326 kB           108 kB
pages/t/[slug].js                                           701 kB           106 kB
node_modules/instantsearch.js/cjs                           352 kB           102 kB
node_modules/webpack/schemas                                559 kB          87.8 kB
modules/directoryTopics/constants                           517 kB          77.3 kB
All dependencies                                            170 MB          55.8 MB
13.0.3 - exceeds threshold
Large Dependencies                               Uncompressed size  Compressed size
node_modules/.prisma/client                                44.9 MB          15.6 MB
node_modules/@swc/core-linux-x64-gnu                       43.1 MB          14.4 MB
node_modules/@swc/core-linux-x64-musl                      42.7 MB          14.3 MB
node_modules/esbuild-linux-64/bin                          8.36 MB          3.52 MB
node_modules/next/dist                                     8.24 MB           2.2 MB
node_modules/@fortawesome/pro-regular-svg-icons            3.55 MB          1.09 MB
node_modules/webpack/lib                                    3.3 MB           848 kB
node_modules/react-dom/cjs                                 1.72 MB           414 kB
node_modules/@prisma/client                                1.23 MB           267 kB
node_modules/terser/dist                                    959 kB           183 kB
.next/server/chunks                                         598 kB           132 kB
node_modules/libphonenumber-js/build                        355 kB           118 kB
node_modules/libphonenumber-js/es6                          326 kB           108 kB
pages/t/[slug].js                                           701 kB           106 kB
node_modules/instantsearch.js/cjs                           352 kB           102 kB
node_modules/webpack/schemas                                559 kB          87.8 kB
modules/directoryTopics/constants                           517 kB          77.3 kB
All dependencies                                            170 MB          55.8 MB

Surprisingly, the @swc/core double include for both musl and gnu has disappeared. Not sure how this happened.

Each of the results above are from an uncached build.

Now to track down why @swc/core is included...

Thanks @belgattitude for the tip on pnpm why -r @swc/core.

@JoeKarow
Copy link

@erawk Are you still using that post-build script that wipes @swc/core-linux-x64-musl?

@erawk
Copy link
Author

erawk commented Nov 12, 2022

@JoeKarow no, I've removed it. Though maybe the results were cached between builds.

Let me re-run without a deploy cache.

@erawk
Copy link
Author

erawk commented Nov 12, 2022

@JoeKarow 🤦 Yes, it was nuked thanks to the build cache. An uncached build exceed the threshold:

13.0.3 - uncached, exceeding threshold
Large Dependencies                               Uncompressed size  Compressed size
--
21:49:01.955 | node_modules/.prisma/client                                44.9 MB          15.6 MB
21:49:01.955 | node_modules/@swc/core-linux-x64-gnu                       43.1 MB          14.4 MB
21:49:01.956 | node_modules/@swc/core-linux-x64-musl                      42.7 MB          14.3 MB
21:49:01.956 | node_modules/esbuild-linux-64/bin                          8.36 MB          3.52 MB
21:49:01.956 | node_modules/next/dist                                     8.24 MB           2.2 MB
21:49:01.956 | node_modules/@fortawesome/pro-regular-svg-icons            3.55 MB          1.09 MB
21:49:01.956 | node_modules/webpack/lib                                    3.3 MB           848 kB
21:49:01.956 | node_modules/react-dom/cjs                                 1.72 MB           414 kB
21:49:01.956 | node_modules/@prisma/client                                1.23 MB           267 kB
21:49:01.956 | node_modules/terser/dist                                    959 kB           183 kB
21:49:01.956 | .next/server/chunks                                         598 kB           132 kB
21:49:01.956 | node_modules/libphonenumber-js/build                        355 kB           118 kB
21:49:01.956 | node_modules/libphonenumber-js/es6                          326 kB           108 kB
21:49:01.956 | pages/t/[slug].js                                           701 kB           106 kB
21:49:01.956 | node_modules/instantsearch.js/cjs                           352 kB           102 kB
21:49:01.956 | node_modules/webpack/schemas                                559 kB          87.8 kB
21:49:01.956 | modules/directoryTopics/constants                           517 kB          77.3 kB
21:49:01.957 |  
21:49:01.957 | All dependencies                                            170 MB          55.8 MB

@erawk
Copy link
Author

erawk commented Nov 12, 2022

Here's the output from npm explain @swc/core. Doesn't seem to be anything that should be pulling it in that's not dev

`npm explain @swc/core`
@swc/[email protected] dev
node_modules/@swc/core
  dev @swc/core@"1.3.14" from the root project
  peer @swc/core@">= 1.3" from @swc-node/[email protected]
  node_modules/@swc-node/core
    @swc-node/core@"^1.9.1" from @swc-node/[email protected]
    node_modules/@swc-node/register
      dev @swc-node/register@"1.5.4" from the root project
  peer @swc/core@">= 1.3" from @swc-node/[email protected]
  node_modules/@swc-node/register
    dev @swc-node/register@"1.5.4" from the root project
  peer @swc/core@"^1.2.66" from @swc/[email protected]
  node_modules/@swc/cli
    dev @swc/cli@"0.1.57" from the root project
  peer @swc/core@"*" from @swc/[email protected]
  node_modules/@swc/jest
    dev @swc/jest@"0.2.23" from the root project
    peer @swc/jest@"^0.2.22" from [email protected]
    node_modules/jest_workaround
      dev jest_workaround@"0.1.12" from the root project
  peer @swc/core@"^1.3.3" from [email protected]
  node_modules/jest_workaround
    dev jest_workaround@"0.1.12" from the root project
  peerOptional @swc/core@">=1.2.50" from [email protected]
  node_modules/ts-node
    dev ts-node@"10.9.1" from the root project
    peerOptional ts-node@">=9.0.0" from [email protected]
    node_modules/jest-config
      jest-config@"^27.5.1" from @jest/[email protected]
      node_modules/@jest/core
        @jest/core@"^27.5.1" from [email protected]
        node_modules/jest
          dev jest@"27.5.1" from the root project
          peer jest@"^27.0.0" from [email protected]
          node_modules/ts-jest
            dev ts-jest@"27.1.3" from the root project
        @jest/core@"^27.5.1" from [email protected]
        node_modules/jest-cli
          jest-cli@"^27.5.1" from [email protected]
          node_modules/jest
            dev jest@"27.5.1" from the root project
            peer jest@"^27.0.0" from [email protected]
            node_modules/ts-jest
              dev ts-jest@"27.1.3" from the root project
      jest-config@"^27.5.1" from [email protected]
      node_modules/jest-cli
        jest-cli@"^27.5.1" from [email protected]
        node_modules/jest
          dev jest@"27.5.1" from the root project
          peer jest@"^27.0.0" from [email protected]
          node_modules/ts-jest
            dev ts-jest@"27.1.3" from the root project
    peerOptional ts-node@">=9.0.0" from [email protected]
    node_modules/postcss-load-config
      postcss-load-config@"^3.1.4" from [email protected]
      node_modules/tailwindcss
        dev tailwindcss@"3.0.24" from the root project
        peer tailwindcss@">=2.0.0 || >=3.0.0 || >=3.0.0-alpha.1" from @tailwindcss/[email protected]
        node_modules/@tailwindcss/line-clamp
          dev @tailwindcss/line-clamp@"0.4.0" from the root project
    optional ts-node@">= 8.3.0" from [email protected]
    node_modules/serverless-webpack
      dev serverless-webpack@"5.6.1" from the root project

@fdarian
Copy link

fdarian commented Apr 14, 2023

outputFileTracingExcludes: {
'*': [
'.//node_modules/@swc/core-linux-x64-gnu',
'./
/node_modules/@swc/core-linux-x64-musl',
'.//node_modules/esbuild/linux',
'./
/node_modules/webpack',
'.//node_modules/rollup',
'./
/node_modules/terser',
],

In my case, including webpack throws this error when calling API

Require stack:
- /var/task/node_modules/.pnpm/[email protected]_z72xxk7vwlamvgqemvc4ptm4du/node_modules/next/dist/server/initialize-require-hook.js
- /var/task/node_modules/.pnpm/[email protected]_z72xxk7vwlamvgqemvc4ptm4du/node_modules/next/dist/server/next-server.js
- /var/task/apps/web/___next_launcher.cjs
2023-04-14T07:08:35.468Z	undefined	ERROR	Did you forget to add it to "dependencies" in `package.json`?
RequestId: 73420ff0-4c28-4a34-aed2-f0b0bdca95a8 Error: Runtime exited with error: exit status 1
Runtime.ExitError

@marxian
Copy link

marxian commented Jul 1, 2023

This happened to us too, after a recent storybook update, in our nx monorepo.

@farreldarian's version of the workaround helped us out.

outputFileTracingExcludes: {
  '*': [
      './node_modules/@swc/core-linux-x64-gnu',
      './node_modules/@swc/core-linux-x64-musl',
  ],
},

was enough

@timneutkens timneutkens added the linear: next Confirmed issue that is tracked by the Next.js team. label Jul 3, 2023
@Michael-Reich
Copy link

I have the same problem, outputFileTracingExcludes fixed it for me but it seems like not a perfect solution

lean1190 added a commit to olivorocksrotated/olivo that referenced this issue Jul 30, 2023
To try to avoid some weird stuff getting into the bundle and exploding the lambda size limit vercel/next.js#42641
lean1190 added a commit to olivorocksrotated/olivo that referenced this issue Jul 30, 2023
To try to avoid some weird stuff getting into the bundle and exploding the lambda size limit vercel/next.js#42641
@Snailedlt
Copy link

This is happening to us too on Nextjs version 13.4.16 in a turborepo with pnpm-workspaces. node_modules/@swc/core-linux-x64-gnu and node_modules/@swc/core-linux-x64-musl seem to be the main culprits.
Adding outputFileTracingExcludes or experimental.outputFileTracingExcludes didn't fix the issue for us.

log snippet
Traced Next.js server files in: 1.387s
--
20:19:27.818 | Warning: Max serverless function size of 50 MB compressed or 250 MB uncompressed reached
20:19:27.819 | Serverless Function's page: index.js
20:19:27.863 | Large Dependencies                            Uncompressed size  Compressed size
20:19:27.863 | node_modules/@swc/core-linux-x64-gnu                   42.74 MB         14.17 MB
20:19:27.863 | node_modules/@swc/core-linux-x64-musl                  42.32 MB         14.02 MB
20:19:27.863 | node_modules/sharp/vendor                               16.2 MB          6.78 MB
20:19:27.863 | node_modules/@swc/wasm                                 19.48 MB          4.62 MB
20:19:27.864 | node_modules/@esbuild/linux-x64                         8.68 MB          3.64 MB
20:19:27.864 | node_modules/next/dist                                 11.73 MB          3.02 MB
20:19:27.864 | node_modules/mongodb-client-encryption/build            4.56 MB          2.55 MB
20:19:27.864 | node_modules/payload/dist                               3.67 MB          1.53 MB
20:19:27.864 | node_modules/webpack/lib                                3.45 MB        900.29 KB
20:19:27.864 | node_modules/sass/sass.dart.js                           4.2 MB         657.2 KB
20:19:27.864 | node_modules/@mongodb-js/zstd-linux-x64-musl            1.36 MB        606.83 KB
20:19:27.864 | node_modules/@mongodb-js/zstd-linux-x64-gnu             1.25 MB        543.64 KB
20:19:27.864 | node_modules/react-dom/cjs                              1.64 MB        404.02 KB
20:19:27.864 | node_modules/kerberos/build                             1.24 MB        393.74 KB
20:19:27.864 | node_modules/date-fns/locale                            1.16 MB        365.33 KB
20:19:27.865 | node_modules/mongoose/lib                               1.34 MB        361.95 KB
20:19:27.865 | node_modules/webpack-bundle-analyzer/public             1.14 MB        343.63 KB
20:19:27.865 | node_modules/caniuse-lite/data                        913.78 KB        327.31 KB
20:19:27.865 | node_modules/@napi-rs/snappy-linux-x64-musl           461.91 KB         210.5 KB
20:19:27.865 | node_modules/@napi-rs/snappy-linux-x64-gnu            462.09 KB        209.89 KB
20:19:27.865 | node_modules/mongodb/lib                              807.29 KB        206.46 KB
20:19:27.865 | node_modules/mongoose/node_modules                    803.56 KB        200.31 KB
20:19:27.865 | node_modules/terser/dist                              962.06 KB        184.11 KB
20:19:27.865 | node_modules/iconv-lite/encodings                     296.36 KB        167.75 KB
20:19:27.865 | node_modules/styled-jsx/dist                          970.43 KB        139.83 KB
20:19:27.865 | node_modules/webpack/schemas                          611.36 KB         94.52 KB
20:19:27.865 | node_modules/lodash/lodash.js                         531.35 KB         94.12 KB
20:19:27.865 |  
20:19:27.865 | All dependencies                                      190.61 MB         61.41 MB
20:19:27.866 | Max serverless function size was exceeded for 1 function
20:19:27.879 | Created all serverless functions in: 53.576s
20:19:27.888 | Collected static files (public/, static/, .next/static): 6.464ms
20:19:31.642 | Build Completed in /vercel/output [5m]
20:19:32.993 | Deploying outputs...
20:19:50.796 | Failed to process build result for "index". Data: {"type":"Prerender"}.
20:19:50.796 | Failed to process build result for "index.rsc". Data: {"type":"Prerender"}.
20:19:50.798 | Error: The Serverless Function "index" is 63.76mb which exceeds the maximum size limit of 50mb. Learn More: https://vercel.link/serverless-function-size

Are there any other workarounds or fixes yet?

@huinalam
Copy link

huinalam commented Aug 19, 2023

I had the similar problem.
I think that the problem is the "@storybook/nextjs" package.

I changed it to make storybook work Vite.
This will not build the storybook in vercel, so the over 50MB issue is resolved.
But it's a workaround.

Workaround

  1. delete "@storybook/nextjs"
    pnpm remove @storybook/nextjs`

  2. install Vite
    pnpm install @storybook/react-vite @vitejs/plugin-react-swc vite -D

  3. Modify .storybook/main.ts
    @storybook/nextjs -> @storybook/react-vite

  4. add vite.config.ts file

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'

export default defineConfig({
  plugins: [react()],
})

@Snailedlt
Copy link

I've tried the following with no success:

  experimental: {
    serverActions: true,
    outputFileTracingRoot: path.join(__dirname, '../../'),
    outputFileTracingExcludes: {
      "**/*": [
        "../../node_modules/@swc/core-linux-x64-gnu",
        "../../node_modules/@swc/core-linux-x64-musl",
        "./node_modules/@swc/core-linux-x64-gnu",
        "./node_modules/@swc/core-linux-x64-musl",
        "/node_modules/@swc/core-linux-x64-gnu",
        "/node_modules/@swc/core-linux-x64-musl",
        "node_modules/@swc/core-linux-x64-gnu",
        "node_modules/@swc/core-linux-x64-musl",
        "**/node_modules/@swc/core-linux-x64-gnu",
        "**/node_modules/@swc/core-linux-x64-musl",
        "**/@swc/*",
      ],
    },
  },

node_modules/@swc/core-linux-x64-musl and node_modules/@swc/core-linux-x64-gnu continue to be included, even when added to outputFileTracingExcludes in our monorepo. I'm fairly certain we've used the right paths at least in one of our tens of attempts, but still it's not excluded.
We've tried both with and without outputFileTracingRoot and with * or **/* as the key for outputFileTracingExcludes

full vercel log
[16:56:09.916] Running build in Washington, D.C., USA (East) – iad1
[16:56:09.983] Cloning github.com/EgdeConsulting/gronn-vekst (Branch: add_payload_cms_and_color_palette, Commit: 0746d92)
[16:56:11.334] Cloning completed: 1.351s
[16:56:15.545] Restored build cache
[16:56:15.579] Running "vercel build"
[16:56:16.085] Vercel CLI 31.4.0
[16:56:16.260] > Detected Turbo. Adjusting default settings...
[16:56:16.535] Detected `pnpm-lock.yaml` version 6 generated by pnpm 8...
[16:56:16.539] Running "install" command: `pnpm --filter admin install --production`...
[16:56:17.152] Recreating /vercel/path0/apps/admin/node_modules
[16:56:18.114] ../..                                    |    +1866 -155 +++++++++++++++++++++--
[16:56:18.445]  WARN  Failed to create bin at /vercel/path0/node_modules/vfile-matter/node_modules/.bin/js-yaml. ENOENT: no such file or directory, chmod '/vercel/path0/node_modules/vfile-matter/node_modules/js-yaml/bin/js-yaml.js'
[16:56:18.451]  WARN  Failed to create bin at /vercel/path0/node_modules/eslint-config-prettier/node_modules/.bin/eslint. ENOENT: no such file or directory, chmod '/vercel/path0/node_modules/eslint-config-prettier/node_modules/eslint/bin/eslint.js'
[16:56:18.452]  WARN  Failed to create bin at /vercel/path0/node_modules/eslint-config-prettier/node_modules/.bin/js-yaml. ENOENT: no such file or directory, chmod '/vercel/path0/node_modules/eslint-config-prettier/node_modules/js-yaml/bin/js-yaml.js'
[16:56:18.461]  WARN  Failed to create bin at /vercel/path0/node_modules/eslint-config-turbo/node_modules/.bin/eslint. ENOENT: no such file or directory, chmod '/vercel/path0/node_modules/eslint-config-turbo/node_modules/eslint/bin/eslint.js'
[16:56:18.462]  WARN  Failed to create bin at /vercel/path0/node_modules/eslint-config-turbo/node_modules/.bin/js-yaml. ENOENT: no such file or directory, chmod '/vercel/path0/node_modules/eslint-config-turbo/node_modules/js-yaml/bin/js-yaml.js'
[16:56:18.462]  WARN  Failed to create bin at /vercel/path0/node_modules/eslint-config-next/node_modules/.bin/eslint. ENOENT: no such file or directory, chmod '/vercel/path0/node_modules/eslint-config-next/node_modules/eslint/bin/eslint.js'
[16:56:18.462]  WARN  Failed to create bin at /vercel/path0/node_modules/eslint-config-next/node_modules/.bin/js-yaml. ENOENT: no such file or directory, chmod '/vercel/path0/node_modules/eslint-config-next/node_modules/js-yaml/bin/js-yaml.js'
[16:56:18.463]  WARN  Failed to create bin at /vercel/path0/node_modules/eslint-config-next/node_modules/.bin/semver. ENOENT: no such file or directory, chmod '/vercel/path0/node_modules/eslint-config-next/node_modules/semver/bin/semver.js'
[16:56:18.528] ../..                                    | Progress: resolved 0, reused 0, downloaded 1, added 0
[16:56:19.533] ../..                                    | Progress: resolved 0, reused 0, downloaded 43, added 21
[16:56:20.533] ../..                                    | Progress: resolved 0, reused 0, downloaded 83, added 66
[16:56:21.533] ../..                                    | Progress: resolved 0, reused 0, downloaded 109, added 97
[16:56:22.535] ../..                                    | Progress: resolved 0, reused 0, downloaded 161, added 160
[16:56:23.539] ../..                                    | Progress: resolved 0, reused 0, downloaded 204, added 205
[16:56:24.538] ../..                                    | Progress: resolved 0, reused 0, downloaded 244, added 254
[16:56:25.543] ../..                                    | Progress: resolved 0, reused 0, downloaded 283, added 296
[16:56:26.546] ../..                                    | Progress: resolved 0, reused 0, downloaded 353, added 368
[16:56:27.549] ../..                                    | Progress: resolved 0, reused 0, downloaded 451, added 484
[16:56:28.556] ../..                                    | Progress: resolved 0, reused 0, downloaded 511, added 551
[16:56:29.556] ../..                                    | Progress: resolved 0, reused 0, downloaded 623, added 672
[16:56:30.558] ../..                                    | Progress: resolved 0, reused 0, downloaded 686, added 738
[16:56:31.558] ../..                                    | Progress: resolved 0, reused 0, downloaded 782, added 889
[16:56:32.591] ../..                                    | Progress: resolved 0, reused 0, downloaded 853, added 969
[16:56:33.592] ../..                                    | Progress: resolved 0, reused 0, downloaded 883, added 1029
[16:56:35.440] ../..                                    | Progress: resolved 0, reused 0, downloaded 884, added 1029
[16:56:36.442] ../..                                    | Progress: resolved 0, reused 0, downloaded 885, added 1031
[16:56:37.442] ../..                                    | Progress: resolved 0, reused 0, downloaded 886, added 1033
[16:56:38.674] ../..                                    | Progress: resolved 0, reused 0, downloaded 887, added 1034
[16:56:39.756] ../..                                    | Progress: resolved 0, reused 0, downloaded 888, added 1034
[16:56:40.756] ../..                                    | Progress: resolved 0, reused 0, downloaded 891, added 1035
[16:56:43.079] ../..                                    | Progress: resolved 0, reused 0, downloaded 891, added 1036
[16:56:44.062] ../..                                    | Progress: resolved 0, reused 0, downloaded 891, added 1038, done
[16:56:44.087] .../@napi-rs/simple-git-linux-x64-gnu postinstall$ node install.js
[16:56:44.088] .../@napi-rs/simple-git-linux-x64-musl postinstall$ node install.js
[16:56:44.170] ../../node_modules/es5-ext postinstall$  node -e "try{require('./_postinstall')}catch(e){}" || exit 0
[16:56:44.193] .../@napi-rs/simple-git-linux-x64-musl postinstall: Failed
[16:56:44.196] ../../node_modules/bson-ext install$ prebuild-install || node-gyp rebuild
[16:56:44.197] ../../node_modules/aws-crt install$ node ./scripts/install.js
[16:56:44.235] .../@napi-rs/simple-git-linux-x64-gnu postinstall: Done
[16:56:44.255] ../../node_modules/kerberos install$ prebuild-install --runtime napi || node-gyp rebuild
[16:56:44.279] ../../node_modules/es5-ext postinstall: Done
[16:56:44.386] ../../node_modules/aws-crt install: The binding already exists, skip rebuilding. To rebuild the native addon, please run install.js with `--rebuild`
[16:56:44.387] ../../node_modules/aws-crt install: Done
[16:56:44.492] ../../node_modules/sharp install$ (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
[16:56:44.559] ../../node_modules/bson-ext install: prebuild-install WARN install No prebuilt binaries found (target=18.16.1 runtime=node arch=x64 libc= platform=linux)
[16:56:44.706] ../../node_modules/bson-ext install: gyp info it worked if it ends with ok
[16:56:44.710] ../../node_modules/bson-ext install: gyp info using [email protected]
[16:56:44.718] ../../node_modules/bson-ext install: gyp info using [email protected] | linux | x64
[16:56:44.728] ../../node_modules/kerberos install: Done
[16:56:44.819] ../../node_modules/sharp install: sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.13.3/libvips-8.13.3-linux-x64.tar.br
[16:56:44.839] ../../node_modules/bson-ext install: gyp info find Python using Python version 3.9.8 found at "/usr/local/bin/python3"
[16:56:44.971] ../../node_modules/bson-ext install: gyp http GET https://nodejs.org/download/release/v18.16.1/node-v18.16.1-headers.tar.gz
[16:56:45.072] ../../node_modules/bson-ext install: gyp http 200 https://nodejs.org/download/release/v18.16.1/node-v18.16.1-headers.tar.gz
[16:56:45.339] ../../node_modules/sharp install: sharp: Integrity check passed for linux-x64
[16:56:45.708] ../../node_modules/sharp install: Done
[16:56:46.723] ../../node_modules/bson-ext install: gyp http GET https://nodejs.org/download/release/v18.16.1/SHASUMS256.txt
[16:56:46.745] ../../node_modules/bson-ext install: gyp http 200 https://nodejs.org/download/release/v18.16.1/SHASUMS256.txt
[16:56:46.758] ../../node_modules/bson-ext install: gyp info spawn /usr/local/bin/python3
[16:56:46.758] ../../node_modules/bson-ext install: gyp info spawn args [
[16:56:46.758] ../../node_modules/bson-ext install: gyp info spawn args   '/pnpm8/node_modules/pnpm/dist/node_modules/node-gyp/gyp/gyp_main.py',
[16:56:46.758] ../../node_modules/bson-ext install: gyp info spawn args   'binding.gyp',
[16:56:46.758] ../../node_modules/bson-ext install: gyp info spawn args   '-f',
[16:56:46.758] ../../node_modules/bson-ext install: gyp info spawn args   'make',
[16:56:46.758] ../../node_modules/bson-ext install: gyp info spawn args   '-I',
[16:56:46.758] ../../node_modules/bson-ext install: gyp info spawn args   '/vercel/path0/node_modules/bson-ext/build/config.gypi',
[16:56:46.758] ../../node_modules/bson-ext install: gyp info spawn args   '-I',
[16:56:46.759] ../../node_modules/bson-ext install: gyp info spawn args   '/pnpm8/node_modules/pnpm/dist/node_modules/node-gyp/addon.gypi',
[16:56:46.759] ../../node_modules/bson-ext install: gyp info spawn args   '-I',
[16:56:46.759] ../../node_modules/bson-ext install: gyp info spawn args   '/vercel/.cache/node-gyp/18.16.1/include/node/common.gypi',
[16:56:46.759] ../../node_modules/bson-ext install: gyp info spawn args   '-Dlibrary=shared_library',
[16:56:46.759] ../../node_modules/bson-ext install: gyp info spawn args   '-Dvisibility=default',
[16:56:46.759] ../../node_modules/bson-ext install: gyp info spawn args   '-Dnode_root_dir=/vercel/.cache/node-gyp/18.16.1',
[16:56:46.759] ../../node_modules/bson-ext install: gyp info spawn args   '-Dnode_gyp_dir=/pnpm8/node_modules/pnpm/dist/node_modules/node-gyp',
[16:56:46.759] ../../node_modules/bson-ext install: gyp info spawn args   '-Dnode_lib_file=/vercel/.cache/node-gyp/18.16.1/<(target_arch)/node.lib',
[16:56:46.759] ../../node_modules/bson-ext install: gyp info spawn args   '-Dmodule_root_dir=/vercel/path0/node_modules/bson-ext',
[16:56:46.759] ../../node_modules/bson-ext install: gyp info spawn args   '-Dnode_engine=v8',
[16:56:46.759] ../../node_modules/bson-ext install: gyp info spawn args   '--depth=.',
[16:56:46.760] ../../node_modules/bson-ext install: gyp info spawn args   '--no-parallel',
[16:56:46.760] ../../node_modules/bson-ext install: gyp info spawn args   '--generator-output',
[16:56:46.760] ../../node_modules/bson-ext install: gyp info spawn args   'build',
[16:56:46.760] ../../node_modules/bson-ext install: gyp info spawn args   '-Goutput_dir=.'
[16:56:46.760] ../../node_modules/bson-ext install: gyp info spawn args ]
[16:56:46.947] ../../node_modules/bson-ext install: gyp info spawn make
[16:56:46.947] ../../node_modules/bson-ext install: gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
[16:56:46.949] ../../node_modules/bson-ext install: make: Entering directory `/vercel/path0/node_modules/bson-ext/build'
[16:56:46.951] ../../node_modules/bson-ext install:   CXX(target) Release/obj.target/bson/src/bson.o
[16:56:47.623] ../../node_modules/bson-ext install: In file included from ../src/bson.cc:36:0:
[16:56:47.624] ../../node_modules/bson-ext install: ../src/bson.h: In member function ‘double BSONDeserializer::ReadDouble()’:
[16:56:47.624] ../../node_modules/bson-ext install: ../src/bson.h:572:53: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
[16:56:47.624] ../../node_modules/bson-ext install:        returnValue = *reinterpret_cast<double *>(&tmp);
[16:56:47.624] ../../node_modules/bson-ext install:                                                      ^
[16:56:49.153] ../../node_modules/bson-ext install:   SOLINK_MODULE(target) Release/obj.target/bson.node
[16:56:49.212] ../../node_modules/bson-ext install:   COPY Release/bson.node
[16:56:49.219] ../../node_modules/bson-ext install: make: Leaving directory `/vercel/path0/node_modules/bson-ext/build'
[16:56:49.219] ../../node_modules/bson-ext install: gyp info ok 
[16:56:49.231] ../../node_modules/bson-ext install: Done
[16:56:49.589] ../../node_modules/@swc/core postinstall$ node postinstall.js
[16:56:49.699] ../../node_modules/@swc/core postinstall: Done
[16:56:49.827] .../mongodb-client-encryption install$ prebuild-install --runtime napi --tag-prefix node-v || node-gyp rebuild
[16:56:50.141] .../mongodb-client-encryption install: Done
[16:56:51.121] Done in 34.5s
[16:56:51.164] Detected Next.js version: 13.4.16
[16:56:51.165] Running "pnpm --filter admin build"
[16:56:51.735] 
[16:56:51.736] > [email protected] build /vercel/path0/apps/admin
[16:56:51.736] > pnpm build:next
[16:56:51.736] 
[16:56:52.231] 
[16:56:52.232] > [email protected] build:next /vercel/path0/apps/admin
[16:56:52.232] > next build
[16:56:52.232] 
[16:56:53.040] - warn You have enabled experimental features (serverActions, outputFileTracingRoot, outputFileTracingExcludes) in next.config.js.
[16:56:53.041] - warn Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk.
[16:56:53.041] 
[16:56:53.134] - info Creating an optimized production build...
[16:59:39.994] - info Compiled successfully
[16:59:39.995] - info Skipping validation of types
[16:59:39.995] - info Skipping linting
[16:59:40.353] - info Collecting page data...
[16:59:57.838] - info Generating static pages (0/5)
[16:59:57.931] - info Generating static pages (1/5)
[16:59:57.987] - info Generating static pages (2/5)
[16:59:58.233] - info Generating static pages (3/5)
[16:59:58.784] [14:59:58] INFO (payload): Connected to MongoDB server successfully!
[16:59:58.784] [14:59:58] INFO (payload): Starting Payload...
[16:59:59.766] - info Generating static pages (5/5)
[17:00:00.282] - info Finalizing page optimization...
[17:00:00.284] 
[17:00:00.295] Route (app)                                Size     First Load JS
[17:00:00.295] ┌ ○ /                                      180 B          81.5 kB
[17:00:00.295] ├ ○ /admin                                 1.78 kB         900 kB
[17:00:00.296] ├ λ /admin/[...slug]                       1.78 kB         900 kB
[17:00:00.296] └ λ /api/revalidate                        0 B                0 B
[17:00:00.296] + First Load JS shared by all              81.4 kB
[17:00:00.296]   ├ chunks/114-282d82c3d2bcd12c.js         26.7 kB
[17:00:00.296]   ├ chunks/bf6a786c-02eea4f6347a663e.js    52.7 kB
[17:00:00.296]   ├ chunks/main-app-08873b123bb4a8eb.js    224 B
[17:00:00.296]   └ chunks/webpack-8807ae8077964292.js     1.8 kB
[17:00:00.296] 
[17:00:00.296] Route (pages)                              Size     First Load JS
[17:00:00.296] ┌ ○ /404                                   183 B            80 kB
[17:00:00.296] ├ λ /api/[collection]                      0 B            79.8 kB
[17:00:00.296] ├ λ /api/[collection]/[id]                 0 B            79.8 kB
[17:00:00.296] ├ λ /api/[collection]/access/[id]          0 B            79.8 kB
[17:00:00.296] ├ λ /api/[collection]/first-register       0 B            79.8 kB
[17:00:00.296] ├ λ /api/[collection]/forgot-password      0 B            79.8 kB
[17:00:00.296] ├ λ /api/[collection]/init                 0 B            79.8 kB
[17:00:00.296] ├ λ /api/[collection]/login                0 B            79.8 kB
[17:00:00.297] ├ λ /api/[collection]/logout               0 B            79.8 kB
[17:00:00.297] ├ λ /api/[collection]/me                   0 B            79.8 kB
[17:00:00.297] ├ λ /api/[collection]/refresh              0 B            79.8 kB
[17:00:00.297] ├ λ /api/[collection]/refresh-token        0 B            79.8 kB
[17:00:00.297] ├ λ /api/[collection]/reset-password       0 B            79.8 kB
[17:00:00.297] ├ λ /api/[collection]/unlock               0 B            79.8 kB
[17:00:00.297] ├ λ /api/[collection]/verify/[token]       0 B            79.8 kB
[17:00:00.297] ├ λ /api/access                            0 B            79.8 kB
[17:00:00.297] ├ λ /api/globals/[global]                  0 B            79.8 kB
[17:00:00.297] └ λ /api/globals/[global]/access           0 B            79.8 kB
[17:00:00.297] + First Load JS shared by all              79.8 kB
[17:00:00.297]   ├ chunks/framework-f8b8d5107ecb6feb.js   45.1 kB
[17:00:00.297]   ├ chunks/main-868bf74d7dcbf589.js        32.7 kB
[17:00:00.297]   ├ chunks/pages/_app-6b79a29ad0d63b21.js  199 B
[17:00:00.297]   └ chunks/webpack-8807ae8077964292.js     1.8 kB
[17:00:00.297] 
[17:00:00.297] λ  (Server)  server-side renders at runtime (uses getInitialProps or getServerSideProps)
[17:00:00.297] ○  (Static)  automatically rendered as static HTML (uses no initial props)
[17:00:00.297] 
[17:00:01.743] Traced Next.js server files in: 1.230s
[17:00:49.609] Warning: Max serverless function size of 50 MB compressed or 250 MB uncompressed reached
[17:00:49.609] Serverless Function's page: index.js
[17:00:49.634] Large Dependencies                            Uncompressed size  Compressed size
[17:00:49.634] node_modules/@swc/core-linux-x64-gnu                   42.74 MB         14.17 MB
[17:00:49.635] node_modules/@swc/core-linux-x64-musl                  42.32 MB         14.02 MB
[17:00:49.635] node_modules/sharp/vendor                               16.2 MB          6.78 MB
[17:00:49.635] apps/admin/node_modules                                11.84 MB          3.05 MB
[17:00:49.635] node_modules/mongodb-client-encryption/build            4.56 MB          2.55 MB
[17:00:49.635] node_modules/payload/dist                               3.67 MB          1.53 MB
[17:00:49.635] node_modules/webpack/lib                                3.45 MB        900.28 KB
[17:00:49.635] node_modules/sass/sass.dart.js                           4.2 MB         657.2 KB
[17:00:49.635] node_modules/@mongodb-js/zstd-linux-x64-musl            1.36 MB        606.83 KB
[17:00:49.635] node_modules/@mongodb-js/zstd-linux-x64-gnu             1.25 MB        543.64 KB
[17:00:49.635] node_modules/react-dom/cjs                              1.64 MB        404.02 KB
[17:00:49.635] node_modules/kerberos/build                             1.24 MB        393.74 KB
[17:00:49.635] node_modules/date-fns/locale                            1.16 MB        365.33 KB
[17:00:49.635] node_modules/mongoose/lib                               1.34 MB        361.95 KB
[17:00:49.635] node_modules/webpack-bundle-analyzer/public             1.14 MB        343.63 KB
[17:00:49.635] node_modules/caniuse-lite/data                        912.11 KB        327.88 KB
[17:00:49.635] node_modules/@napi-rs/snappy-linux-x64-musl           461.91 KB         210.5 KB
[17:00:49.635] node_modules/@napi-rs/snappy-linux-x64-gnu            462.09 KB        209.89 KB
[17:00:49.635] node_modules/mongodb/lib                              807.29 KB        206.46 KB
[17:00:49.635] node_modules/mongoose/node_modules                    803.56 KB        200.31 KB
[17:00:49.636] node_modules/terser/dist                              961.18 KB        183.99 KB
[17:00:49.636] node_modules/iconv-lite/encodings                     296.36 KB        167.75 KB
[17:00:49.636] node_modules/webpack/schemas                          611.36 KB         94.52 KB
[17:00:49.636] node_modules/lodash/lodash.js                         531.35 KB         94.12 KB
[17:00:49.636] 
[17:00:49.636] All dependencies                                      161.14 MB         52.91 MB
[17:00:49.636] Max serverless function size was exceeded for 1 function
[17:00:49.650] Created all serverless functions in: 47.906s
[17:00:49.662] Collected static files (public/, static/, .next/static): 8.201ms
[17:00:53.096] Build Completed in /vercel/output [5m]
[17:00:54.452] Deploying outputs...
[17:01:09.988] Failed to process build result for "index". Data: {"type":"Prerender"}.
[17:01:09.988] Failed to process build result for "index.rsc". Data: {"type":"Prerender"}.
[17:01:09.989] Error: The Serverless Function "index" is 55.11mb which exceeds the maximum size limit of 50mb. Learn More: https://vercel.link/serverless-function-size

I'm hoping this issue gets resolved quickly, but seeing as this issue has now been open for 9 months, it doesn't look very likely.
In the meantime, are there any other workarounds we could try?

@Snailedlt
Copy link

It works with outputFileTracingIgnores. Seems like there's a bug currently where it doesn't work with outputFileTracingExcludes, but it does with outputFileTracingIgnores. See #54245

@GiancarlosIO
Copy link

GiancarlosIO commented Sep 9, 2023

Hi folks
I have tested @NBruhno and it worked! Thanks for that 🙇🏼
I would like to know if there is a risk excluding the @swc/core package manually 😨 . I have tested my app and looks like it is working correctly but I would like to know if maybe disabling/enabling the output tracking option might broke our apps 😨

Update:
Tested again and it doesn't work with nextjs v13.5.6 😢

@Technoash
Copy link

Technoash commented Dec 15, 2023

{
  // rest of next.config.mjs
  webpack: (config, { isServer, webpack }) => {
    if (!isServer) {
      config.plugins.push(new webpack.IgnorePlugin({ resourceRegExp: /prisma\/client/ }));
    }
    return config;
  },
}

^This worked for me. Prisma client was being bundled in on the webpage. This also exposed the db schema which is not good. Confirmed this works with @next/bundle-analyzer on nextjs v14

@revmischa
Copy link

revmischa commented Dec 30, 2023

I'm trying to remove dev deps from this bundle (using open-next, see opennextjs/opennextjs-aws#242):

Screenshot 2023-12-30 at 11 49 39 AM

If I have

    outputFileTracingExcludes: {
      "*": [
        "node_modules/@esbuild*",
        "node_modules/sass*",
       ]
   }

Then my build works okay.

If I have

    outputFileTracingExcludes: {
      "*": [
        "node_modules/@esbuild*",
        "node_modules/sass*",
        "node_modules/webpack*",
       ]
   }

Then I get this error:

 ✓ Collecting page data
 ✓ Generating static pages (35/35)
RangeError: Maximum call stack size exceeded
    at parse (/Users/cyber/dev/tombo/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/micromatch/index.js:15:6313)
    at picomatch.makeRe (/Users/cyber/dev/tombo/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/micromatch/index.js:15:21670)
    at picomatch (/Users/cyber/dev/tombo/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/micromatch/index.js:15:19637)

<snip>

    at /Users/cyber/dev/tombo/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/build/collect-build-traces.js:86:23
    at Array.every (<anonymous>)
    at shouldIgnore (/Users/cyber/dev/tombo/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/build/collect-build-traces.js:86:7)
    at /Users/cyber/dev/tombo/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/build/collect-build-traces.js:86:23
   Creating an optimized production build  .   Finalizing page optimization  .   Collecting build traces  . ELIFECYCLE  Command failed with exit code 1.
node:internal/errors:932
  const err = new Error(message);
              ^

@sYsguard
Copy link

run cache verify solved this stubborn issue:
npm cache clean --force
and
npm cache verify

@balazsorban44 balazsorban44 added Pages Router Related to Pages Router. and removed area: API routes labels Apr 17, 2024
@samcx samcx added SWC Related to minification/transpilation in Next.js. and removed Webpack Related to Webpack with Next.js. labels Apr 30, 2024
@samcx
Copy link
Member

samcx commented Jul 18, 2024

Hi everyone—

Due to the staleness of this issue and a variety of factors that could possibly cause this, I will be moving forward with closing this issue. If you are still experiencing a "large bundle size" issue, we encourage you to re-open via the bug report. This way, we can streamline triaging your issue with a wealth of information (e.g., next info, a :repro:, etc.).

One thing that can possibly be used is optimizePackageImports. We already optimize for a variety of popular packages with hundreds or thousands of imports, but you can also explicitly name your package if it's not amongst the list of packages we optimize for. This may fix your issue!

@samcx samcx closed this as completed Jul 18, 2024
Copy link
Contributor

github-actions bot commented Aug 1, 2024

This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@github-actions github-actions bot added the locked label Aug 1, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue was opened via the bug report template. linear: next Confirmed issue that is tracked by the Next.js team. locked Pages Router Related to Pages Router. SWC Related to minification/transpilation in Next.js.
Projects
None yet
Development

No branches or pull requests