vercel / next.js

The React Framework
https://nextjs.org
MIT License
126.79k stars 26.95k forks source link

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

Closed erawk closed 3 months ago

erawk commented 1 year ago

Verify canary release

Provide environment information

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


> my-app@0.1.2 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

balazsorban44 commented 1 year ago

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?

JoeKarow commented 1 year ago

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/@prisma+client@4.5.0_prisma@4.5.0                         45.7 MB          15.8 MB
01:41:37.450 | node_modules/.pnpm/@swc+core-linux-x64-gnu@1.3.10                            43.2 MB          14.4 MB
01:41:37.451 | node_modules/.pnpm/@swc+core-linux-x64-musl@1.3.10                           42.7 MB          14.2 MB
01:41:37.451 | node_modules/.pnpm/esbuild-linux-64@0.15.13                                  8.58 MB           3.6 MB
01:41:37.451 | node_modules/.pnpm/next@13.0.2_biqbaboplfbrettd7655fr4n2y                    12.2 MB          3.12 MB
01:41:37.451 | node_modules/.pnpm/webpack@5.74.0_@swc+core@1.3.10                           3.93 MB           953 kB
01:41:37.451 | apps/app/.next                                                               4.71 MB           825 kB
01:41:37.451 | node_modules/.pnpm/react-dom@18.2.0_react@18.2.0                             1.72 MB           415 kB
01:41:37.451 | node_modules/.pnpm/@mantine+core@5.7.1_etrvyeh76ry4n4cxjc37hheh7y             908 kB           321 kB
01:41:37.453 | node_modules/.pnpm/@mantine+core@5.7.1_rpbu45oak5njhv4mrqfytqjmse             908 kB           321 kB
01:41:37.454 | node_modules/.pnpm/caniuse-lite@1.0.30001429                                  844 kB           312 kB
01:41:37.454 | node_modules/.pnpm/uglify-js@3.17.4                                          1.18 MB           213 kB
01:41:37.454 | node_modules/.pnpm/terser@5.15.1                                              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/@prisma+client@4.5.0_prisma@4.5.0                         45.7 MB          15.8 MB
01:41:37.467 | node_modules/.pnpm/@swc+core-linux-x64-gnu@1.3.10                            43.2 MB          14.4 MB
01:41:37.467 | node_modules/.pnpm/@swc+core-linux-x64-musl@1.3.10                           42.7 MB          14.2 MB
01:41:37.467 | node_modules/.pnpm/esbuild-linux-64@0.15.13                                  8.58 MB           3.6 MB
01:41:37.467 | node_modules/.pnpm/next@13.0.2_biqbaboplfbrettd7655fr4n2y                    12.2 MB          3.12 MB
01:41:37.468 | node_modules/.pnpm/webpack@5.74.0_@swc+core@1.3.10                           3.93 MB           953 kB
01:41:37.468 | apps/app/.next                                                               4.71 MB           825 kB
01:41:37.468 | node_modules/.pnpm/react-dom@18.2.0_react@18.2.0                             1.72 MB           415 kB
01:41:37.468 | node_modules/.pnpm/@mantine+core@5.7.1_etrvyeh76ry4n4cxjc37hheh7y             908 kB           321 kB
01:41:37.468 | node_modules/.pnpm/@mantine+core@5.7.1_rpbu45oak5njhv4mrqfytqjmse             908 kB           321 kB
01:41:37.468 | node_modules/.pnpm/caniuse-lite@1.0.30001429                                  844 kB           312 kB
01:41:37.468 | node_modules/.pnpm/uglify-js@3.17.4                                          1.18 MB           213 kB
01:41:37.469 | node_modules/.pnpm/terser@5.15.1                                              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 commented 1 year ago

@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 commented 1 year ago

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 :green_heart:)

erawk commented 1 year ago

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:

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 commented 1 year ago

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 commented 1 year ago

@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 "pnpm@7.15.0" 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] .../core-js@3.26.0/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] .../core-js@3.26.0/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] .../esbuild@0.14.54/node_modules/esbuild postinstall$ node install.js [15:11:57.119] .../node_modules/@swc/core postinstall$ node postinstall.js [15:11:57.120] .../esbuild@0.15.13/node_modules/esbuild postinstall$ node install.js [15:11:57.120] .../.pnpm/turbo@1.6.3/node_modules/turbo postinstall$ node install.js [15:11:57.426] .../esbuild@0.14.54/node_modules/esbuild postinstall: Done [15:11:57.426] .../node_modules/@swc/core postinstall: Done [15:11:57.426] .../.pnpm/turbo@1.6.3/node_modules/turbo postinstall: Done [15:11:57.435] .../esbuild@0.15.13/node_modules/esbuild postinstall: Done [15:11:57.448] .../prisma@4.6.1/node_modules/prisma preinstall$ node scripts/preinstall-entry.js [15:11:57.544] .../prisma@4.6.1/node_modules/prisma preinstall: Done [15:11:57.544] .../prisma@4.6.1/node_modules/prisma install$ node scripts/install-entry.js [15:11:57.624] .../prisma@4.6.1/node_modules/prisma install: Done [15:11:57.706] .../cypress@11.0.1/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] .../cypress@11.0.1/node_modules/cypress postinstall: Installing Cypress (version: 11.0.1) [15:11:58.468] .../cypress@11.0.1/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] .../cypress@11.0.1/node_modules/cypress postinstall: [SUCCESS] Task without title. [15:12:02.180] .../cypress@11.0.1/node_modules/cypress postinstall: [STARTED] Task without title. [15:12:09.275] .../cypress@11.0.1/node_modules/cypress postinstall: [SUCCESS] Task without title. [15:12:09.275] .../cypress@11.0.1/node_modules/cypress postinstall: [STARTED] Task without title. [15:12:09.306] .../cypress@11.0.1/node_modules/cypress postinstall: [SUCCESS] Task without title. [15:12:10.309] .../cypress@11.0.1/node_modules/cypress postinstall: You can now open Cypress by running: node_modules/.bin/cypress open [15:12:10.309] .../cypress@11.0.1/node_modules/cypress postinstall: https://on.cypress.io/installing-cypress [15:12:10.322] .../cypress@11.0.1/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/db@0.0.0 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/db@0.0.0 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/@prisma+client@4.6.1_prisma@4.6.1/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/db@0.0.0 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/app@0.1.0 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: Create T3 App 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 "pnpm@7.15.0" 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] .../core-js@3.26.0/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] .../core-js@3.26.0/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] .../esbuild@0.14.54/node_modules/esbuild postinstall$ node install.js [15:05:52.360] .../esbuild@0.15.13/node_modules/esbuild postinstall$ node install.js [15:05:52.361] .../node_modules/@swc/core postinstall$ node postinstall.js [15:05:52.361] .../.pnpm/turbo@1.6.3/node_modules/turbo postinstall$ node install.js [15:05:52.495] .../esbuild@0.14.54/node_modules/esbuild postinstall: Done [15:05:52.496] .../esbuild@0.15.13/node_modules/esbuild postinstall: Done [15:05:52.547] .../node_modules/@swc/core postinstall: Done [15:05:52.615] .../.pnpm/turbo@1.6.3/node_modules/turbo postinstall: Done [15:05:52.624] .../prisma@4.6.1/node_modules/prisma preinstall$ node scripts/preinstall-entry.js [15:05:52.699] .../prisma@4.6.1/node_modules/prisma preinstall: Done [15:05:52.699] .../prisma@4.6.1/node_modules/prisma install$ node scripts/install-entry.js [15:05:52.765] .../prisma@4.6.1/node_modules/prisma install: Done [15:05:52.827] .../cypress@11.0.1/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] .../cypress@11.0.1/node_modules/cypress postinstall: Installing Cypress (version: 11.0.1) [15:05:53.346] .../cypress@11.0.1/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] .../cypress@11.0.1/node_modules/cypress postinstall: [SUCCESS] Task without title. [15:05:55.679] .../cypress@11.0.1/node_modules/cypress postinstall: [STARTED] Task without title. [15:06:01.308] .../cypress@11.0.1/node_modules/cypress postinstall: [SUCCESS] Task without title. [15:06:01.308] .../cypress@11.0.1/node_modules/cypress postinstall: [STARTED] Task without title. [15:06:01.331] .../cypress@11.0.1/node_modules/cypress postinstall: [SUCCESS] Task without title. [15:06:02.332] .../cypress@11.0.1/node_modules/cypress postinstall: You can now open Cypress by running: node_modules/.bin/cypress open [15:06:02.333] .../cypress@11.0.1/node_modules/cypress postinstall: https://on.cypress.io/installing-cypress [15:06:02.346] .../cypress@11.0.1/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/db@0.0.0 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/db@0.0.0 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/@prisma+client@4.6.1_prisma@4.6.1/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/db@0.0.0 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/app@0.1.0 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: Create T3 App 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/@prisma+client@4.6.1_prisma@4.6.1 45.6 MB 15.8 MB [15:07:17.528] node_modules/.pnpm/@swc+core-linux-x64-gnu@1.3.14 43.1 MB 14.4 MB [15:07:17.528] node_modules/.pnpm/@swc+core-linux-x64-musl@1.3.14 42.7 MB 14.3 MB [15:07:17.528] node_modules/.pnpm/esbuild-linux-64@0.14.54 8.36 MB 3.52 MB [15:07:17.528] node_modules/.pnpm/next@13.0.2_biqbaboplfbrettd7655fr4n2y 12.2 MB 3.12 MB [15:07:17.528] node_modules/.pnpm/webpack@5.75.0_@swc+core@1.3.14 3.93 MB 954 kB [15:07:17.529] apps/app/.next 3.72 MB 687 kB [15:07:17.529] node_modules/.pnpm/react-dom@18.2.0_react@18.2.0 1.72 MB 415 kB [15:07:17.529] node_modules/.pnpm/@mantine+core@5.7.1_etrvyeh76ry4n4cxjc37hheh7y 908 kB 321 kB [15:07:17.529] node_modules/.pnpm/caniuse-lite@1.0.30001431 844 kB 312 kB [15:07:17.529] node_modules/.pnpm/uglify-js@3.17.4 1.18 MB 213 kB [15:07:17.529] node_modules/.pnpm/terser@5.15.1 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/@prisma+client@4.6.1_prisma@4.6.1 45.6 MB 15.8 MB [15:07:17.539] node_modules/.pnpm/@swc+core-linux-x64-gnu@1.3.14 43.1 MB 14.4 MB [15:07:17.540] node_modules/.pnpm/@swc+core-linux-x64-musl@1.3.14 42.7 MB 14.3 MB [15:07:17.540] node_modules/.pnpm/esbuild-linux-64@0.14.54 8.36 MB 3.52 MB [15:07:17.540] node_modules/.pnpm/next@13.0.2_biqbaboplfbrettd7655fr4n2y 12.2 MB 3.12 MB [15:07:17.540] node_modules/.pnpm/webpack@5.75.0_@swc+core@1.3.14 3.93 MB 954 kB [15:07:17.540] apps/app/.next 3.72 MB 687 kB [15:07:17.540] node_modules/.pnpm/react-dom@18.2.0_react@18.2.0 1.72 MB 415 kB [15:07:17.540] node_modules/.pnpm/@mantine+core@5.7.1_etrvyeh76ry4n4cxjc37hheh7y 908 kB 321 kB [15:07:17.540] node_modules/.pnpm/caniuse-lite@1.0.30001431 844 kB 312 kB [15:07:17.540] node_modules/.pnpm/uglify-js@3.17.4 1.18 MB 213 kB [15:07:17.540] node_modules/.pnpm/terser@5.15.1 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 commented 1 year ago

@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 commented 1 year ago

@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 ```bash 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/@prisma+client@4.6.1_prisma@4.6.1 45.6 MB 15.8 MB 19:44:09.317 | node_modules/.pnpm/next@13.0.1_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/react-dom@18.2.0_react@18.2.0 1.72 MB 415 kB 19:44:09.318 | node_modules/.pnpm/@mantine+core@5.7.1_etrvyeh76ry4n4cxjc37hheh7y 908 kB 321 kB 19:44:09.318 | node_modules/.pnpm/@mantine+core@5.7.1_rpbu45oak5njhv4mrqfytqjmse 908 kB 321 kB 19:44:09.318 | node_modules/.pnpm/caniuse-lite@1.0.30001431 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 ```bash 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 "pnpm@7.15.0" 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 | .../core-js@3.26.0/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 | .../core-js@3.26.0/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 | .../esbuild@0.14.54/node_modules/esbuild postinstall$ node install.js 19:35:16.165 | .../.pnpm/turbo@1.6.3/node_modules/turbo postinstall$ node install.js 19:35:16.165 | .../esbuild@0.15.13/node_modules/esbuild postinstall$ node install.js 19:35:16.308 | .../node_modules/@swc/core postinstall: Done 19:35:16.336 | .../esbuild@0.14.54/node_modules/esbuild postinstall: Done 19:35:16.342 | .../prisma@4.6.1/node_modules/prisma preinstall$ node scripts/preinstall-entry.js 19:35:16.367 | .../.pnpm/turbo@1.6.3/node_modules/turbo postinstall: Done 19:35:16.367 | .../esbuild@0.15.13/node_modules/esbuild postinstall: Done 19:35:16.436 | .../prisma@4.6.1/node_modules/prisma preinstall: Done 19:35:16.436 | .../prisma@4.6.1/node_modules/prisma install$ node scripts/install-entry.js 19:35:16.555 | .../prisma@4.6.1/node_modules/prisma install: Done 19:35:16.664 | .../cypress@11.0.1/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 | .../cypress@11.0.1/node_modules/cypress postinstall: Installing Cypress (version: 11.0.1) 19:35:17.275 | .../cypress@11.0.1/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 | .../cypress@11.0.1/node_modules/cypress postinstall: [SUCCESS] Task without title. 19:35:20.509 | .../cypress@11.0.1/node_modules/cypress postinstall: [STARTED] Task without title. 19:35:26.022 | .../cypress@11.0.1/node_modules/cypress postinstall: [SUCCESS] Task without title. 19:35:26.023 | .../cypress@11.0.1/node_modules/cypress postinstall: [STARTED] Task without title. 19:35:26.046 | .../cypress@11.0.1/node_modules/cypress postinstall: [SUCCESS] Task without title. 19:35:27.049 | .../cypress@11.0.1/node_modules/cypress postinstall: You can now open Cypress by running: node_modules/.bin/cypress open 19:35:27.049 | .../cypress@11.0.1/node_modules/cypress postinstall: https://on.cypress.io/installing-cypress 19:35:27.063 | .../cypress@11.0.1/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/db@0.0.0 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/db@0.0.0 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/@prisma+client@4.6.1_prisma@4.6.1/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/db@0.0.0 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/app@0.1.0 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: Create T3 App 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/@swc+core-linux-x64-gnu@1.3.14 43.1 MB 14.4 MB 19:36:27.197 | node_modules/.pnpm/@swc+core-linux-x64-musl@1.3.14 42.7 MB 14.3 MB 19:36:27.197 | node_modules/.pnpm/esbuild-linux-64@0.14.54 8.36 MB 3.52 MB 19:36:27.197 | node_modules/.pnpm/next@13.0.3_biqbaboplfbrettd7655fr4n2y 8.09 MB 2.16 MB 19:36:27.197 | node_modules/.pnpm/webpack@5.75.0_@swc+core@1.3.14 3.93 MB 954 kB 19:36:27.197 | apps/app/.next 3.72 MB 687 kB 19:36:27.197 | node_modules/.pnpm/react-dom@18.2.0_react@18.2.0 1.72 MB 415 kB 19:36:27.197 | node_modules/.pnpm/uglify-js@3.17.4 1.18 MB 213 kB 19:36:27.197 | node_modules/.pnpm/terser@5.15.1 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 commented 1 year ago

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 commented 1 year ago

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 ```bash ❯ pnpm -r why @swc/core Legend: production dependency, optional only, dev only @weareinreach/storybook@0.1.0 /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 commented 1 year ago

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 commented 1 year ago

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

belgattitude commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

erawk commented 1 year ago

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 commented 1 year ago

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

erawk commented 1 year ago

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

Let me re-run without a deploy cache.

erawk commented 1 year ago

@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 commented 1 year ago

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/core@1.3.14 dev node_modules/@swc/core dev @swc/core@"1.3.14" from the root project peer @swc/core@">= 1.3" from @swc-node/core@1.9.1 node_modules/@swc-node/core @swc-node/core@"^1.9.1" from @swc-node/register@1.5.4 node_modules/@swc-node/register dev @swc-node/register@"1.5.4" from the root project peer @swc/core@">= 1.3" from @swc-node/register@1.5.4 node_modules/@swc-node/register dev @swc-node/register@"1.5.4" from the root project peer @swc/core@"^1.2.66" from @swc/cli@0.1.57 node_modules/@swc/cli dev @swc/cli@"0.1.57" from the root project peer @swc/core@"*" from @swc/jest@0.2.23 node_modules/@swc/jest dev @swc/jest@"0.2.23" from the root project peer @swc/jest@"^0.2.22" from jest_workaround@0.1.12 node_modules/jest_workaround dev jest_workaround@"0.1.12" from the root project peer @swc/core@"^1.3.3" from jest_workaround@0.1.12 node_modules/jest_workaround dev jest_workaround@"0.1.12" from the root project peerOptional @swc/core@">=1.2.50" from ts-node@10.9.1 node_modules/ts-node dev ts-node@"10.9.1" from the root project peerOptional ts-node@">=9.0.0" from jest-config@27.5.1 node_modules/jest-config jest-config@"^27.5.1" from @jest/core@27.5.1 node_modules/@jest/core @jest/core@"^27.5.1" from jest@27.5.1 node_modules/jest dev jest@"27.5.1" from the root project peer jest@"^27.0.0" from ts-jest@27.1.3 node_modules/ts-jest dev ts-jest@"27.1.3" from the root project @jest/core@"^27.5.1" from jest-cli@27.5.1 node_modules/jest-cli jest-cli@"^27.5.1" from jest@27.5.1 node_modules/jest dev jest@"27.5.1" from the root project peer jest@"^27.0.0" from ts-jest@27.1.3 node_modules/ts-jest dev ts-jest@"27.1.3" from the root project jest-config@"^27.5.1" from jest-cli@27.5.1 node_modules/jest-cli jest-cli@"^27.5.1" from jest@27.5.1 node_modules/jest dev jest@"27.5.1" from the root project peer jest@"^27.0.0" from ts-jest@27.1.3 node_modules/ts-jest dev ts-jest@"27.1.3" from the root project peerOptional ts-node@">=9.0.0" from postcss-load-config@3.1.4 node_modules/postcss-load-config postcss-load-config@"^3.1.4" from tailwindcss@3.0.24 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/line-clamp@0.4.0 node_modules/@tailwindcss/line-clamp dev @tailwindcss/line-clamp@"0.4.0" from the root project optional ts-node@">= 8.3.0" from serverless-webpack@5.6.1 node_modules/serverless-webpack dev serverless-webpack@"5.6.1" from the root project ```
JoeKarow commented 1 year ago

Okay - I spoke too soon... 13.0.3 has bloated back up again.

13.0.3 Failing build ```bash [08:58:37.490] Cloning github.com/weareinreach/InReach (Branch: IN-687-base-layout, Commit: ff5e7f6) [08:58:39.202] Cloning completed: 1.712s [08:58:39.203] Running "npx turbo-ignore" [08:58:40.234] npx: installed 1 in 0.956s [08:58:40.246] ≫ Using Turborepo to determine if this project is affected by the commit... [08:58:40.247] ≫ Inferred `@weareinreach/app` as scope from "/vercel/path0/apps/app/package.json" [08:58:40.247] ≫ Found previous deployment for project [08:58:40.247] ≫ Analyzing results of `npx turbo run build --filter=@weareinreach/app...[2cc60df183b182d39d1f9995c766eeda952a8b47] --dry=json`... [08:58:43.261] exec error: Error: Command failed: npx turbo run build --filter=@weareinreach/app...[2cc60df183b182d39d1f9995c766eeda952a8b47] --dry=json [08:58:43.261] ERROR run failed: failed to resolve packages to run: commit 2cc60df183b182d39d1f9995c766eeda952a8b47 does not exist [08:58:43.262] [08:58:43.262] ≫ Proceeding with build to be safe... [08:58:50.981] Build cache restored [08:58:51.031] Running "vercel build" [08:58:51.520] Vercel CLI 28.4.17 [08:58:52.121] Detected ENABLE_EXPERIMENTAL_COREPACK=1 and "pnpm@7.15.0" in package.json [08:58:52.418] Installing dependencies... [08:58:53.014] Scope: all 9 workspace projects [08:58:53.473] ../.. | Progress: resolved 1, reused 0, downloaded 0, added 0 [08:58:53.655] ../.. | +63 -55 ++++++------ [08:58:54.471] ../.. | Progress: resolved 63, reused 0, downloaded 12, added 10 [08:58:55.476] ../.. | Progress: resolved 63, reused 0, downloaded 42, added 41 [08:58:56.477] ../.. | Progress: resolved 63, reused 0, downloaded 55, added 54 [08:58:57.479] ../.. | Progress: resolved 63, reused 0, downloaded 58, added 58 [08:58:58.517] ../.. | Progress: resolved 63, reused 0, downloaded 60, added 59 [08:58:59.620] ../.. | Progress: resolved 63, reused 0, downloaded 60, added 61 [08:59:00.670] ../.. | Progress: resolved 63, reused 0, downloaded 62, added 63, done [08:59:00.902] .../node_modules/styled-components postinstall$ node ./postinstall.js [08:59:00.975] .../node_modules/styled-components postinstall: Done [08:59:01.597] [08:59:01.597] dependencies: [08:59:01.597] - @next/bundle-analyzer 13.0.1 [08:59:01.597] + @next/bundle-analyzer 13.0.3 [08:59:01.597] - next 13.0.1 [08:59:01.597] + next 13.0.3 [08:59:01.597] [08:59:01.597] devDependencies: [08:59:01.598] + @next/font 13.0.3 [08:59:01.598] - eslint-config-next 13.0.1 [08:59:01.598] + eslint-config-next 13.0.3 [08:59:01.598] [08:59:01.598] ../.. postinstall$ turbo run post-install [08:59:01.880] ../.. postinstall: • Packages in scope: @weareinreach/app, @weareinreach/aws-user-migrate, @weareinreach/config, @weareinreach/db, @weareinreach/eslint-config, @weareinreach/types, @weareinreach/ui, @weareinreach/web [08:59:01.881] ../.. postinstall: • Running post-install in 8 packages [08:59:01.881] ../.. postinstall: • Remote caching enabled [08:59:01.882] ../.. postinstall: @weareinreach/db:post-install: cache bypass, force executing 6e241806e3fb693f [08:59:02.423] ../.. postinstall: @weareinreach/db:post-install: [08:59:02.424] ../.. postinstall: @weareinreach/db:post-install: > @weareinreach/db@0.0.0 post-install /vercel/path0/packages/db [08:59:02.424] ../.. postinstall: @weareinreach/db:post-install: > pnpm db:generate [08:59:02.424] ../.. postinstall: @weareinreach/db:post-install: [08:59:02.954] ../.. postinstall: @weareinreach/db:post-install: [08:59:02.954] ../.. postinstall: @weareinreach/db:post-install: > @weareinreach/db@0.0.0 db:generate /vercel/path0/packages/db [08:59:02.955] ../.. postinstall: @weareinreach/db:post-install: > prisma generate && pnpm format:generated [08:59:02.955] ../.. postinstall: @weareinreach/db:post-install: [08:59:03.890] ../.. postinstall: @weareinreach/db:post-install: Prisma schema loaded from prisma/schema.prisma [08:59:08.606] ../.. postinstall: @weareinreach/db:post-install: [08:59:08.609] ../.. postinstall: @weareinreach/db:post-install: ✔ Generated Prisma Client (4.6.1 | library) to ./../../node_modules/.prisma/client in 1.41s [08:59:08.609] ../.. postinstall: @weareinreach/db:post-install: [08:59:08.609] ../.. postinstall: @weareinreach/db:post-install: ✔ Generated Prisma Docs Generator to ./../../docs/database in 688ms [08:59:08.609] ../.. postinstall: @weareinreach/db:post-install: [08:59:08.609] ../.. postinstall: @weareinreach/db:post-install: ✔ Generated Zod Schemas (0.5.4) to ./src/zod-schemas in 1.12s [08:59:08.610] ../.. postinstall: @weareinreach/db:post-install: You can now start using Prisma Client in your code. Reference: https://pris.ly/d/client [08:59:08.610] ../.. postinstall: @weareinreach/db:post-install: ``` [08:59:08.610] ../.. postinstall: @weareinreach/db:post-install: import { PrismaClient } from '../../node_modules/.prisma/client' [08:59:08.610] ../.. postinstall: @weareinreach/db:post-install: const prisma = new PrismaClient() [08:59:08.610] ../.. postinstall: @weareinreach/db:post-install: ``` [08:59:09.203] ../.. postinstall: @weareinreach/db:post-install: [08:59:09.203] ../.. postinstall: @weareinreach/db:post-install: > @weareinreach/db@0.0.0 format:generated /vercel/path0/packages/db [08:59:09.203] ../.. postinstall: @weareinreach/db:post-install: > prettier --write ./src/zod*/* [08:59:09.204] ../.. postinstall: @weareinreach/db:post-install: [08:59:10.277] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/account.ts 247ms [08:59:10.342] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/country.ts 57ms [08:59:10.379] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/fieldvisibility.ts 29ms [08:59:10.426] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/govdist.ts 41ms [08:59:10.452] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/govdisttype.ts 20ms [08:59:10.475] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/index.ts 15ms [08:59:10.538] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/internalnote.ts 56ms [08:59:10.570] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/language.ts 22ms [08:59:10.595] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/navigation.ts 17ms [08:59:10.624] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/organization.ts 24ms [08:59:10.648] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/orgdescription.ts 14ms [08:59:10.673] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/orgemail.ts 18ms [08:59:10.704] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/orghours.ts 25ms [08:59:10.757] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/orglocation.ts 40ms [08:59:10.783] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/orgphone.ts 21ms [08:59:10.806] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/orgphoto.ts 19ms [08:59:10.831] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/orgreview.ts 21ms [08:59:10.852] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/orgservice.ts 14ms [08:59:10.875] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/orgsocialmedia.ts 17ms [08:59:10.890] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/outsideapi.ts 10ms [08:59:10.906] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/permissionasset.ts 10ms [08:59:10.924] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/permissionitem.ts 10ms [08:59:10.946] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/phonetype.ts 15ms [08:59:10.968] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/servicecategory.ts 16ms [08:59:10.993] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/servicetag.ts 17ms [08:59:11.006] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/session.ts 6ms [08:59:11.017] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/socialmediaservice.ts 7ms [08:59:11.028] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/source.ts 8ms [08:59:11.040] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/translation.ts 7ms [08:59:11.065] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/translationkey.ts 22ms [08:59:11.093] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/translationnamespace.ts 17ms [08:59:11.103] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/translationvariable.ts 8ms [08:59:11.163] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/user.ts 56ms [08:59:11.176] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/usercommunity.ts 9ms [08:59:11.189] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/userethnicity.ts 10ms [08:59:11.204] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/userimmigration.ts 8ms [08:59:11.219] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/userrole.ts 7ms [08:59:11.234] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/usersavedlist.ts 10ms [08:59:11.258] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/usersog.ts 20ms [08:59:11.277] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/usertitle.ts 13ms [08:59:11.290] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/usertype.ts 8ms [08:59:11.307] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/verificationtoken.ts 6ms [08:59:11.369] ../.. postinstall: @weareinreach/db:post-install: src/zod-util/index.ts 55ms [08:59:11.411] ../.. postinstall: Tasks: 1 successful, 1 total [08:59:11.411] ../.. postinstall: Cached: 0 cached, 1 total [08:59:11.411] ../.. postinstall: Time: 9.788s [08:59:11.413] ../.. postinstall: Done [08:59:11.413] ../.. prepare$ husky install [08:59:11.485] ../.. prepare: husky - Git hooks installed [08:59:11.488] ../.. prepare: Done [08:59:11.490] Done in 18.9s [08:59:11.520] Detected Next.js version: 13.0.3 [08:59:11.555] Running "cd ../.. && npx turbo run build --filter=app..." [08:59:12.080] • Packages in scope: @weareinreach/app, @weareinreach/config, @weareinreach/db, @weareinreach/eslint-config, @weareinreach/ui [08:59:12.080] • Running build in 5 packages [08:59:12.081] • Remote caching enabled [08:59:12.429] @weareinreach/app:build: cache miss, executing 08af74b1185aed45 [08:59:12.943] @weareinreach/app:build: [08:59:12.943] @weareinreach/app:build: > @weareinreach/app@0.1.0 build /vercel/path0/apps/app [08:59:12.943] @weareinreach/app:build: > next build [08:59:12.944] @weareinreach/app:build: [08:59:13.387] @weareinreach/app:build: warn - You have enabled experimental features (serverComponentsExternalPackages, fontLoaders) in next.config.mjs. [08:59:13.388] @weareinreach/app:build: warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk. [08:59:13.388] @weareinreach/app:build: [08:59:13.490] @weareinreach/app:build: info - Linting and checking validity of types... [08:59:21.009] @weareinreach/app:build: info - Creating an optimized production build... [08:59:36.690] @weareinreach/app:build: info - Compiled successfully [08:59:36.691] @weareinreach/app:build: info - Collecting page data... [08:59:45.772] @weareinreach/app:build: info - Generating static pages (0/14) [08:59:45.819] @weareinreach/app:build: react-i18next:: You will need to pass in an i18next instance by using initReactI18next [08:59:45.844] @weareinreach/app:build: react-i18next:: You will need to pass in an i18next instance by using initReactI18next [08:59:45.844] @weareinreach/app:build: react-i18next:: You will need to pass in an i18next instance by using initReactI18next [08:59:45.937] @weareinreach/app:build: info - Generating static pages (3/14) [08:59:45.960] @weareinreach/app:build: info - Generating static pages (6/14) [08:59:45.981] @weareinreach/app:build: info - Generating static pages (10/14) [08:59:46.002] @weareinreach/app:build: info - Generating static pages (14/14) [08:59:46.015] @weareinreach/app:build: info - Finalizing page optimization... [08:59:46.018] @weareinreach/app:build: [08:59:46.026] @weareinreach/app:build: Route (pages) Size First Load JS [08:59:46.027] @weareinreach/app:build: ┌ λ / 487 B 218 kB [08:59:46.027] @weareinreach/app:build: ├ /_app 0 B 217 kB [08:59:46.027] @weareinreach/app:build: ├ ○ /404 214 B 218 kB [08:59:46.027] @weareinreach/app:build: ├ λ /api/auth/[...nextauth] 0 B 217 kB [08:59:46.027] @weareinreach/app:build: └ λ /api/trpc/[trpc] 0 B 217 kB [08:59:46.027] @weareinreach/app:build: + First Load JS shared by all 218 kB [08:59:46.027] @weareinreach/app:build: ├ chunks/framework-20996c291c2dfa29.js 45.7 kB [08:59:46.027] @weareinreach/app:build: ├ chunks/main-edae2fac1d938f3e.js 32.8 kB [08:59:46.027] @weareinreach/app:build: ├ chunks/pages/_app-22daf114d7a1ef70.js 138 kB [08:59:46.027] @weareinreach/app:build: ├ chunks/webpack-a0deeec5c85c92d3.js 1.25 kB [08:59:46.027] @weareinreach/app:build: └ css/6916cc758b70d7ea.css 636 B [08:59:46.027] @weareinreach/app:build: [08:59:46.027] @weareinreach/app:build: λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps) [08:59:46.027] @weareinreach/app:build: ○ (Static) automatically rendered as static HTML (uses no initial props) [08:59:46.027] @weareinreach/app:build: [08:59:46.227] [08:59:46.227] Tasks: 1 successful, 1 total [08:59:46.227] Cached: 0 cached, 1 total [08:59:46.227] Time: 34.283s [08:59:46.227] [09:00:01.623] Traced Next.js server files in: 15.081s [09:00:09.338] Warning: Max serverless function size of 50 MB compressed or 250 MB uncompressed reached [09:00:09.338] Serverless Function's page: index.js [09:00:09.345] Large Dependencies Uncompressed size Compressed size [09:00:09.345] node_modules/.pnpm/@swc+core-linux-x64-gnu@1.3.14 43.1 MB 14.4 MB [09:00:09.345] node_modules/.pnpm/@swc+core-linux-x64-musl@1.3.14 42.7 MB 14.3 MB [09:00:09.345] node_modules/.pnpm/esbuild-linux-64@0.14.54 8.36 MB 3.52 MB [09:00:09.345] node_modules/.pnpm/next@13.0.3_mqvh5p7ejg4taogoj6tpk3gd5a 8.13 MB 2.17 MB [09:00:09.346] node_modules/.pnpm/webpack@5.75.0_@swc+core@1.3.14 3.93 MB 954 kB [09:00:09.346] apps/app/.next 2.27 MB 422 kB [09:00:09.346] node_modules/.pnpm/react-dom@18.2.0_react@18.2.0 1.72 MB 415 kB [09:00:09.346] node_modules/.pnpm/uglify-js@3.17.4 1.18 MB 213 kB [09:00:09.346] node_modules/.pnpm/terser@5.15.1 962 kB 185 kB [09:00:09.346] [09:00:09.346] All dependencies 11.9 MB 37.5 MB [09:00:09.346] Serverless Function's page: api/auth/[...nextauth].js [09:00:09.351] Large Dependencies Uncompressed size Compressed size [09:00:09.351] node_modules/.pnpm/@prisma+client@4.6.1_prisma@4.6.1 45.6 MB 15.8 MB [09:00:09.351] node_modules/.pnpm/@swc+core-linux-x64-gnu@1.3.14 43.1 MB 14.4 MB [09:00:09.351] node_modules/.pnpm/@swc+core-linux-x64-musl@1.3.14 42.7 MB 14.3 MB [09:00:09.351] node_modules/.pnpm/esbuild-linux-64@0.14.54 8.36 MB 3.52 MB [09:00:09.351] node_modules/.pnpm/next@13.0.3_mqvh5p7ejg4taogoj6tpk3gd5a 8.14 MB 2.18 MB [09:00:09.352] node_modules/.pnpm/webpack@5.75.0_@swc+core@1.3.14 3.93 MB 954 kB [09:00:09.352] apps/app/.next 2.28 MB 425 kB [09:00:09.352] node_modules/.pnpm/react-dom@18.2.0_react@18.2.0 1.72 MB 415 kB [09:00:09.352] node_modules/.pnpm/uglify-js@3.17.4 1.18 MB 213 kB [09:00:09.352] node_modules/.pnpm/terser@5.15.1 962 kB 185 kB [09:00:09.352] [09:00:09.352] All dependencies 58 MB 53.5 MB [09:00:09.352] Serverless Function's page: api/trpc/[trpc].js [09:00:09.357] Large Dependencies Uncompressed size Compressed size [09:00:09.357] node_modules/.pnpm/@prisma+client@4.6.1_prisma@4.6.1 45.6 MB 15.8 MB [09:00:09.357] node_modules/.pnpm/@swc+core-linux-x64-gnu@1.3.14 43.1 MB 14.4 MB [09:00:09.357] node_modules/.pnpm/@swc+core-linux-x64-musl@1.3.14 42.7 MB 14.3 MB [09:00:09.357] node_modules/.pnpm/esbuild-linux-64@0.14.54 8.36 MB 3.52 MB [09:00:09.357] node_modules/.pnpm/next@13.0.3_mqvh5p7ejg4taogoj6tpk3gd5a 8.14 MB 2.18 MB [09:00:09.357] node_modules/.pnpm/webpack@5.75.0_@swc+core@1.3.14 3.93 MB 954 kB [09:00:09.358] apps/app/.next 2.28 MB 425 kB [09:00:09.358] node_modules/.pnpm/react-dom@18.2.0_react@18.2.0 1.72 MB 415 kB [09:00:09.358] node_modules/.pnpm/uglify-js@3.17.4 1.18 MB 213 kB [09:00:09.358] node_modules/.pnpm/terser@5.15.1 962 kB 185 kB [09:00:09.358] [09:00:09.358] All dependencies 58.4 MB 53.5 MB [09:00:09.358] Max serverless function size was exceeded for 2 functions [09:00:09.364] Created all serverless functions in: 7.741s [09:00:09.378] Collected static files (public/, static/, .next/static): 11.48ms [09:00:12.353] Build Completed in /vercel/output [1m] [09:00:27.286] Failed to process build result for "api/auth/[...nextauth]". Data: {"type":"Lambda"}. [09:00:27.287] Error: The Serverless Function "api/auth/[...nextauth]" is 51.93mb which exceeds the maximum size limit of 50mb. Learn More: https://vercel.link/serverless-function-size ```
13.0.1 Successful build ```bash [09:08:32.737] Cloning github.com/weareinreach/InReach (Branch: IN-687-base-layout, Commit: 2b9a9db) [09:08:34.504] Cloning completed: 1.767s [09:08:34.504] Running "npx turbo-ignore" [09:08:35.666] npx: installed 1 in 1.085s [09:08:35.681] ≫ Using Turborepo to determine if this project is affected by the commit... [09:08:35.682] ≫ Inferred `@weareinreach/app` as scope from "/vercel/path0/apps/app/package.json" [09:08:35.682] ≫ Found previous deployment for project [09:08:35.682] ≫ Analyzing results of `npx turbo run build --filter=@weareinreach/app...[2cc60df183b182d39d1f9995c766eeda952a8b47] --dry=json`... [09:08:39.108] exec error: Error: Command failed: npx turbo run build --filter=@weareinreach/app...[2cc60df183b182d39d1f9995c766eeda952a8b47] --dry=json [09:08:39.109] ERROR run failed: failed to resolve packages to run: commit 2cc60df183b182d39d1f9995c766eeda952a8b47 does not exist [09:08:39.109] [09:08:39.109] ≫ Proceeding with build to be safe... [09:08:46.632] Build cache restored [09:08:46.681] Running "vercel build" [09:08:47.193] Vercel CLI 28.4.17 [09:08:47.660] Detected ENABLE_EXPERIMENTAL_COREPACK=1 and "pnpm@7.16.0" in package.json [09:08:47.966] Installing dependencies... [09:08:49.097] Scope: all 9 workspace projects [09:08:49.521] ../.. | Progress: resolved 1, reused 0, downloaded 0, added 0 [09:08:49.698] ../.. | +57 -46 ++++++----- [09:08:50.528] ../.. | Progress: resolved 57, reused 0, downloaded 10, added 10 [09:08:51.531] ../.. | Progress: resolved 57, reused 0, downloaded 41, added 37 [09:08:52.540] ../.. | Progress: resolved 57, reused 0, downloaded 48, added 48 [09:08:53.540] ../.. | Progress: resolved 57, reused 0, downloaded 52, added 52 [09:08:54.541] ../.. | Progress: resolved 57, reused 0, downloaded 53, added 53 [09:08:55.675] ../.. | Progress: resolved 57, reused 0, downloaded 54, added 55 [09:08:56.870] ../.. | Progress: resolved 57, reused 0, downloaded 56, added 57, done [09:08:57.229] .../node_modules/styled-components postinstall$ node ./postinstall.js [09:08:57.304] .../node_modules/styled-components postinstall: Done [09:08:57.928] [09:08:57.928] devDependencies: [09:08:57.928] + @next/font 13.0.3 [09:08:57.928] [09:08:57.929] ../.. postinstall$ turbo run post-install [09:08:58.321] ../.. postinstall: • Packages in scope: @weareinreach/app, @weareinreach/aws-user-migrate, @weareinreach/config, @weareinreach/db, @weareinreach/eslint-config, @weareinreach/types, @weareinreach/ui, @weareinreach/web [09:08:58.321] ../.. postinstall: • Running post-install in 8 packages [09:08:58.321] ../.. postinstall: • Remote caching enabled [09:08:58.321] ../.. postinstall: @weareinreach/db:post-install: cache bypass, force executing 06c0480b5490b3f5 [09:08:58.882] ../.. postinstall: @weareinreach/db:post-install: [09:08:58.883] ../.. postinstall: @weareinreach/db:post-install: > @weareinreach/db@0.0.0 post-install /vercel/path0/packages/db [09:08:58.883] ../.. postinstall: @weareinreach/db:post-install: > pnpm db:generate [09:08:58.883] ../.. postinstall: @weareinreach/db:post-install: [09:08:59.435] ../.. postinstall: @weareinreach/db:post-install: [09:08:59.435] ../.. postinstall: @weareinreach/db:post-install: > @weareinreach/db@0.0.0 db:generate /vercel/path0/packages/db [09:08:59.435] ../.. postinstall: @weareinreach/db:post-install: > prisma generate && pnpm format:generated [09:08:59.436] ../.. postinstall: @weareinreach/db:post-install: [09:09:00.440] ../.. postinstall: @weareinreach/db:post-install: Prisma schema loaded from prisma/schema.prisma [09:09:05.586] ../.. postinstall: @weareinreach/db:post-install: [09:09:05.586] ../.. postinstall: @weareinreach/db:post-install: ✔ Generated Prisma Client (4.6.1 | library) to ./../../node_modules/.prisma/client in 1.70s [09:09:05.587] ../.. postinstall: @weareinreach/db:post-install: [09:09:05.587] ../.. postinstall: @weareinreach/db:post-install: ✔ Generated Prisma Docs Generator to ./../../docs/database in 699ms [09:09:05.587] ../.. postinstall: @weareinreach/db:post-install: [09:09:05.588] ../.. postinstall: @weareinreach/db:post-install: ✔ Generated Zod Schemas (0.5.4) to ./src/zod-schemas in 1.17s [09:09:05.588] ../.. postinstall: @weareinreach/db:post-install: You can now start using Prisma Client in your code. Reference: https://pris.ly/d/client [09:09:05.588] ../.. postinstall: @weareinreach/db:post-install: ``` [09:09:05.588] ../.. postinstall: @weareinreach/db:post-install: import { PrismaClient } from '../../node_modules/.prisma/client' [09:09:05.588] ../.. postinstall: @weareinreach/db:post-install: const prisma = new PrismaClient() [09:09:05.588] ../.. postinstall: @weareinreach/db:post-install: ``` [09:09:06.195] ../.. postinstall: @weareinreach/db:post-install: [09:09:06.195] ../.. postinstall: @weareinreach/db:post-install: > @weareinreach/db@0.0.0 format:generated /vercel/path0/packages/db [09:09:06.195] ../.. postinstall: @weareinreach/db:post-install: > prettier --write ./src/zod*/* [09:09:06.195] ../.. postinstall: @weareinreach/db:post-install: [09:09:07.315] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/account.ts 259ms [09:09:07.384] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/country.ts 59ms [09:09:07.424] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/fieldvisibility.ts 29ms [09:09:07.477] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/govdist.ts 47ms [09:09:07.504] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/govdisttype.ts 21ms [09:09:07.524] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/index.ts 12ms [09:09:07.582] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/internalnote.ts 53ms [09:09:07.615] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/language.ts 22ms [09:09:07.641] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/navigation.ts 19ms [09:09:07.671] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/organization.ts 24ms [09:09:07.694] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/orgdescription.ts 12ms [09:09:07.719] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/orgemail.ts 19ms [09:09:07.752] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/orghours.ts 26ms [09:09:07.804] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/orglocation.ts 43ms [09:09:07.832] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/orgphone.ts 20ms [09:09:07.857] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/orgphoto.ts 20ms [09:09:07.892] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/orgreview.ts 29ms [09:09:07.915] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/orgservice.ts 15ms [09:09:07.940] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/orgsocialmedia.ts 16ms [09:09:07.955] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/outsideapi.ts 11ms [09:09:07.972] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/permissionasset.ts 13ms [09:09:07.991] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/permissionitem.ts 11ms [09:09:08.014] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/phonetype.ts 15ms [09:09:08.039] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/servicecategory.ts 18ms [09:09:08.063] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/servicetag.ts 18ms [09:09:08.078] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/session.ts 7ms [09:09:08.090] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/socialmediaservice.ts 8ms [09:09:08.103] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/source.ts 8ms [09:09:08.115] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/translation.ts 8ms [09:09:08.141] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/translationkey.ts 21ms [09:09:08.162] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/translationnamespace.ts 14ms [09:09:08.173] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/translationvariable.ts 10ms [09:09:08.238] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/user.ts 60ms [09:09:08.251] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/usercommunity.ts 9ms [09:09:08.266] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/userethnicity.ts 10ms [09:09:08.278] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/userimmigration.ts 8ms [09:09:08.295] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/userrole.ts 8ms [09:09:08.309] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/usersavedlist.ts 9ms [09:09:08.334] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/usersog.ts 21ms [09:09:08.357] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/usertitle.ts 15ms [09:09:08.379] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/usertype.ts 13ms [09:09:08.394] ../.. postinstall: @weareinreach/db:post-install: src/zod-schemas/verificationtoken.ts 6ms [09:09:08.452] ../.. postinstall: @weareinreach/db:post-install: src/zod-util/index.ts 54ms [09:09:08.501] ../.. postinstall: Tasks: 1 successful, 1 total [09:09:08.502] ../.. postinstall: Cached: 0 cached, 1 total [09:09:08.502] ../.. postinstall: Time: 10.548s [09:09:08.503] ../.. postinstall: Done [09:09:08.503] ../.. prepare$ husky install [09:09:08.575] ../.. prepare: husky - Git hooks installed [09:09:08.578] ../.. prepare: Done [09:09:08.581] Done in 19.9s [09:09:08.608] Detected Next.js version: 13.0.1 [09:09:08.643] Running "cd ../.. && npx turbo run build --filter=app..." [09:09:09.197] • Packages in scope: @weareinreach/app, @weareinreach/config, @weareinreach/db, @weareinreach/eslint-config, @weareinreach/ui [09:09:09.197] • Running build in 5 packages [09:09:09.197] • Remote caching enabled [09:09:09.580] @weareinreach/app:build: cache miss, executing 0599988cd7691233 [09:09:10.123] @weareinreach/app:build: [09:09:10.123] @weareinreach/app:build: > @weareinreach/app@0.1.0 build /vercel/path0/apps/app [09:09:10.123] @weareinreach/app:build: > next build [09:09:10.124] @weareinreach/app:build: [09:09:10.585] @weareinreach/app:build: warn - You have enabled experimental feature (fontLoaders) in next.config.mjs. [09:09:10.585] @weareinreach/app:build: warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk. [09:09:10.585] @weareinreach/app:build: [09:09:10.700] @weareinreach/app:build: info - Linting and checking validity of types... [09:09:18.522] @weareinreach/app:build: info - Creating an optimized production build... [09:09:37.872] @weareinreach/app:build: info - Compiled successfully [09:09:37.872] @weareinreach/app:build: info - Collecting page data... [09:09:44.554] @weareinreach/app:build: info - Generating static pages (0/14) [09:09:44.601] @weareinreach/app:build: react-i18next:: You will need to pass in an i18next instance by using initReactI18next [09:09:44.622] @weareinreach/app:build: react-i18next:: You will need to pass in an i18next instance by using initReactI18next [09:09:44.627] @weareinreach/app:build: react-i18next:: You will need to pass in an i18next instance by using initReactI18next [09:09:44.784] @weareinreach/app:build: info - Generating static pages (3/14) [09:09:44.785] @weareinreach/app:build: info - Generating static pages (6/14) [09:09:44.802] @weareinreach/app:build: info - Generating static pages (10/14) [09:09:44.818] @weareinreach/app:build: info - Generating static pages (14/14) [09:09:44.835] @weareinreach/app:build: info - Finalizing page optimization... [09:09:44.839] @weareinreach/app:build: [09:09:44.858] @weareinreach/app:build: Route (pages) Size First Load JS [09:09:44.858] @weareinreach/app:build: ┌ λ / 353 B 187 kB [09:09:44.858] @weareinreach/app:build: ├ /_app 0 B 186 kB [09:09:44.858] @weareinreach/app:build: ├ ○ /404 182 B 186 kB [09:09:44.858] @weareinreach/app:build: ├ λ /api/auth/[...nextauth] 0 B 186 kB [09:09:44.858] @weareinreach/app:build: └ λ /api/trpc/[trpc] 0 B 186 kB [09:09:44.859] @weareinreach/app:build: + First Load JS shared by all 187 kB [09:09:44.859] @weareinreach/app:build: ├ chunks/framework-d5f8ed288849d546.js 45.4 kB [09:09:44.859] @weareinreach/app:build: ├ chunks/main-01f726a4d07bb0b6.js 26.5 kB [09:09:44.859] @weareinreach/app:build: ├ chunks/pages/_app-f3515fad2250758d.js 113 kB [09:09:44.859] @weareinreach/app:build: ├ chunks/webpack-0b5d8249fb15f5f3.js 939 B [09:09:44.859] @weareinreach/app:build: └ css/6916cc758b70d7ea.css 636 B [09:09:44.859] @weareinreach/app:build: [09:09:44.859] @weareinreach/app:build: λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps) [09:09:44.859] @weareinreach/app:build: ○ (Static) automatically rendered as static HTML (uses no initial props) [09:09:44.859] @weareinreach/app:build: [09:09:45.151] [09:09:45.151] Tasks: 1 successful, 1 total [09:09:45.152] Cached: 0 cached, 1 total [09:09:45.152] Time: 36.095s [09:09:45.152] [09:09:46.955] Traced Next.js server files in: 1.458s [09:09:54.971] Serverless function size info [09:09:54.971] Serverless Function's page: index.js [09:09:54.979] Large Dependencies Uncompressed size Compressed size [09:09:54.979] node_modules/.pnpm/next@13.0.1_mqvh5p7ejg4taogoj6tpk3gd5a 9.14 MB 2.46 MB [09:09:54.979] apps/app/.next 2.27 MB 421 kB [09:09:54.980] node_modules/.pnpm/react-dom@18.2.0_react@18.2.0 1.72 MB 415 kB [09:09:54.980] node_modules/.pnpm/@mantine+core@5.7.2_s42f3uthtxnh7bllormamvwjhq 909 kB 321 kB [09:09:54.980] node_modules/.pnpm/caniuse-lite@1.0.30001431 844 kB 312 kB [09:09:54.980] [09:09:54.980] All dependencies 6.17 MB 4.64 MB [09:09:54.980] Serverless Function's pages: api/auth/[...nextauth].js, api/trpc/[trpc].js [09:09:54.987] Large Dependencies Uncompressed size Compressed size [09:09:54.987] node_modules/.pnpm/@prisma+client@4.6.1_prisma@4.6.1 45.6 MB 15.8 MB [09:09:54.987] node_modules/.pnpm/next@13.0.1_mqvh5p7ejg4taogoj6tpk3gd5a 9.14 MB 2.46 MB [09:09:54.987] apps/app/.next 2.28 MB 425 kB [09:09:54.987] node_modules/.pnpm/react-dom@18.2.0_react@18.2.0 1.72 MB 415 kB [09:09:54.987] node_modules/.pnpm/@mantine+core@5.7.2_s42f3uthtxnh7bllormamvwjhq 909 kB 321 kB [09:09:54.987] node_modules/.pnpm/caniuse-lite@1.0.30001431 844 kB 312 kB [09:09:54.987] [09:09:54.989] All dependencies 52.7 MB 20.7 MB [09:09:54.994] Created all serverless functions in: 8.039s [09:09:55.007] Collected static files (public/, static/, .next/static): 11.468ms [09:09:57.160] Build Completed in /vercel/output [1m] [09:10:06.854] Generated build outputs: [09:10:06.855] - Static files: 59 [09:10:06.855] - Serverless Functions: 8 [09:10:06.855] - Edge Functions: 0 [09:10:06.855] Serverless regions: Washington, D.C., USA [09:10:06.855] Deployed outputs in 3s [09:10:07.829] Build completed. Populating build cache... [09:10:51.016] Uploading build cache [379.95 MB]... [09:11:01.366] Build cache uploaded: 10.349s [09:11:01.415] Done with "." ```
ijjk commented 1 year ago

Hi, any chance someone who has a repo that consistently fails with this above v13.0.1 could try the patch from https://github.com/vercel/next.js/pull/43069 via yarn add next@https://files-99l7vkuaq-ijjk-testing.vercel.app and confirming whether this alleviates the problem or not?

amosbastian commented 1 year ago

Hi, any chance someone who has a repo that consistently fails with this above v13.0.1 could try the patch from #43069 via yarn add next@https://files-99l7vkuaq-ijjk-testing.vercel.app and confirming whether this alleviates the problem or not?

I tried it, but it doesn't work for me. Had to downgrade to 13.0.1 to get my app to build.

erawk commented 1 year ago

Hi, any chance someone who has a repo that consistently fails with this above v13.0.1 could try the patch from #43069 via yarn add next@https://files-99l7vkuaq-ijjk-testing.vercel.app and confirming whether this alleviates the problem or not?

Hey @ijjk - sorry, no luck. There's no change in the build sizes

ijjk-upstream-fork - Exceeds build threshold, both @swc/core included still
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.25 MB           2.2 MB
node_modules/@fortawesome/pro-regular-svg-icons            3.55 MB          1.09 MB
node_modules/webpack/lib                                   3.35 MB           861 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                                         673 kB           143 kB
node_modules/libphonenumber-js/build                        355 kB           118 kB
pages/t/[slug].js                                           725 kB           109 kB
node_modules/libphonenumber-js/es6                          326 kB           108 kB
node_modules/instantsearch.js/cjs                           352 kB           102 kB
node_modules/webpack/schemas                                565 kB          88.5 kB
modules/directoryTopics/constants                           517 kB          77.3 kB

All dependencies                                            170 MB          55.9 MB
ijjk commented 1 year ago

@erawk can you share the specific commit you deployed to get that result, I'm not able to reproduce the size issue on the latest commit here https://github.com/erawk/next-app-bug-report-serverless-functions-payload-size/commit/2c95975ac099fd027a4cafdeeb9ae2b996fca2b4

https://vercel.com/ijjk-testing/next-app-bug-report-serverless-functions-payload-size/Ha3LeajwsaSyJ8nb5wo8VrYxD7uR

ijjk commented 1 year ago

Hi, we have landed a new experimental.outputFileTracingIgnores config that allows adding custom globs to ignore from the traces which can allow making the function size more controlled when certain dependencies are known to not be needed at runtime.

Example:

module.exports = {
  experimental: {
    outputFileTracingIgnores: ['**swc+core**', '**esbuild**', ']
  }
}

It seems usage of storybook is causing swc to be traced due to the way it is configured.

erawk commented 1 year ago

we have landed a new experimental.outputFileTracingIgnores config that allows adding custom globs to ignore from the traces which can allow making the function size more controlled when certain dependencies are known to not be needed at runtime.

Yes! This definitely solved our problem. We added the fragment to exclude swc/core and our payload sizes are no longer overflowing:

13.0.5-canary-2 - no longer exceeding threshold!! ``` Large Dependencies Uncompressed size Compressed size -- 20:53:36.420 | node_modules/.prisma/client 44.9 MB 15.6 MB 20:53:36.420 | node_modules/next/dist 8.25 MB 2.2 MB 20:53:36.420 | node_modules/@fortawesome/pro-regular-svg-icons 3.57 MB 1.1 MB 20:53:36.420 | node_modules/webpack/lib 3.35 MB 861 kB 20:53:36.420 | node_modules/react-icons/fa 1.38 MB 434 kB 20:53:36.421 | node_modules/react-dom/cjs 1.72 MB 414 kB 20:53:36.421 | node_modules/react-icons/md 1.83 MB 367 kB 20:53:36.421 | node_modules/@prisma/client 1.23 MB 267 kB 20:53:36.421 | .next/server/chunks 1.4 MB 258 kB 20:53:36.421 | node_modules/maplibre-gl/dist 746 kB 194 kB 20:53:36.421 | node_modules/terser/dist 959 kB 183 kB 20:53:36.422 | node_modules/react-icons/ai 665 kB 167 kB 20:53:36.422 | node_modules/react-bricks/node_modules 419 kB 127 kB 20:53:36.422 | node_modules/libphonenumber-js/build 355 kB 118 kB 20:53:36.422 | pages/t/[slug].js 722 kB 109 kB 20:53:36.422 | node_modules/libphonenumber-js/es6 326 kB 108 kB 20:53:36.422 | node_modules/instantsearch.js/cjs 352 kB 102 kB 20:53:36.422 | node_modules/react-bricks/index.js 321 kB 100 kB 20:53:36.422 | node_modules/webpack/schemas 565 kB 88.5 kB 20:53:36.423 | modules/directoryTopics/constants 517 kB 77.3 kB 20:53:36.423 |   20:53:36.423 | All dependencies 89.7 MB 26.9 MB ```

Here's the relevant section from our next.config.js for others:

module.exports = {
  experimental: {
    esmExternals: true,
    outputFileTracingIgnores: ['**swc/core**'], // See https://github.com/vercel/next.js/issues/42641#issuecomment-1320713368
    swcPlugins: [['next-superjson-plugin', {}]], // Use SuperJSON in getStaticProps via SWC
  },
 ...
}

It seems usage of storybook is causing swc to be traced due to the way it is configured.

Interesting! We don't use Storybook. We do have ladle. There's probably something else that's pulled @swc/core in.

erawk commented 1 year ago

I am still curious what changed between 13.0.1 and 13.0.2 that made @swc/core be included.

ijjk commented 1 year ago

@erawk If you can share two commits with only bumping 13.0.1 and 13.0.2 showing this being the only change causing the increase would be happy to investigate this further! The reproduction we did see with this was showing this on 13.0.1 as well though and haven't seen this occurring only after updating 13.0.2.

JoeKarow commented 1 year ago

Bumping to 13.0.5-canary.2 fixed the bloat with experimental.outputFileTracingIgnores. I am experiencing a different issue now - my serverless functions aren't able to use the Prisma client. It doesn't get bundled during the Vercel deploy, but oddly enough, it does if I do vercel build using the cli locally.

Vercel Deploy ```bash [21:55:02.216] Cloning github.com/weareinreach/InReach (Branch: renovate/next.js, Commit: a0a26f9) [21:55:02.222] The cli flag --force was set. Skipping build cache download. [21:55:03.619] Cloning completed: 1.402s [21:55:03.619] Running "npx turbo-ignore" [21:55:04.902] npx: installed 1 in 1.216s [21:55:04.921] ≫ Using Turborepo to determine if this project is affected by the commit... [21:55:04.921] [21:55:04.922] ≫ `TURBO_FORCE` detected [21:55:04.922] ≫ proceeding with deployment [21:55:05.579] Running "vercel build" [21:55:06.088] Vercel CLI 28.5.5 [21:55:06.383] Detected ENABLE_EXPERIMENTAL_COREPACK=1 and "pnpm@7.16.1" in package.json [21:55:06.687] Installing dependencies... [21:55:08.073] Scope: all 9 workspace projects [21:55:08.356] ../.. | Progress: resolved 1, reused 0, downloaded 0, added 0 [21:55:08.790] ../.. | +2334 ++++++++++++++++++++++++++++ [21:55:09.359] ../.. | Progress: resolved 2334, reused 0, downloaded 6, added 0 [21:55:09.429] Packages are hard linked from the content-addressable store to the virtual store. [21:55:09.429] Content-addressable store is at: /vercel/.local/share/pnpm/store/v3 [21:55:09.430] Virtual store is at: ../../node_modules/.pnpm [21:55:10.363] ../.. | Progress: resolved 2334, reused 0, downloaded 52, added 49 [21:55:11.363] ../.. | Progress: resolved 2334, reused 0, downloaded 93, added 96 [21:55:12.367] ../.. | Progress: resolved 2334, reused 0, downloaded 125, added 128 [21:55:13.369] ../.. | Progress: resolved 2334, reused 0, downloaded 187, added 190 [21:55:14.369] ../.. | Progress: resolved 2334, reused 0, downloaded 235, added 239 [21:55:15.369] ../.. | Progress: resolved 2334, reused 0, downloaded 315, added 318 [21:55:16.374] ../.. | Progress: resolved 2334, reused 0, downloaded 373, added 378 [21:55:17.373] ../.. | Progress: resolved 2334, reused 0, downloaded 421, added 427 [21:55:18.380] ../.. | Progress: resolved 2334, reused 0, downloaded 491, added 499 [21:55:19.381] ../.. | Progress: resolved 2334, reused 0, downloaded 518, added 524 [21:55:20.386] ../.. | Progress: resolved 2334, reused 0, downloaded 572, added 579 [21:55:21.388] ../.. | Progress: resolved 2334, reused 0, downloaded 627, added 634 [21:55:22.387] ../.. | Progress: resolved 2334, reused 0, downloaded 755, added 762 [21:55:23.387] ../.. | Progress: resolved 2334, reused 0, downloaded 825, added 832 [21:55:24.392] ../.. | Progress: resolved 2334, reused 0, downloaded 887, added 891 [21:55:25.394] ../.. | Progress: resolved 2334, reused 0, downloaded 938, added 946 [21:55:26.395] ../.. | Progress: resolved 2334, reused 0, downloaded 969, added 977 [21:55:27.399] ../.. | Progress: resolved 2334, reused 0, downloaded 1002, added 1010 [21:55:28.400] ../.. | Progress: resolved 2334, reused 0, downloaded 1067, added 1079 [21:55:29.401] ../.. | Progress: resolved 2334, reused 0, downloaded 1169, added 1179 [21:55:30.406] ../.. | Progress: resolved 2334, reused 0, downloaded 1323, added 1336 [21:55:31.412] ../.. | Progress: resolved 2334, reused 0, downloaded 1420, added 1432 [21:55:32.413] ../.. | Progress: resolved 2334, reused 0, downloaded 1556, added 1573 [21:55:33.413] ../.. | Progress: resolved 2334, reused 0, downloaded 1615, added 1628 [21:55:34.414] ../.. | Progress: resolved 2334, reused 0, downloaded 1705, added 1721 [21:55:35.414] ../.. | Progress: resolved 2334, reused 0, downloaded 1806, added 1822 [21:55:36.413] ../.. | Progress: resolved 2334, reused 0, downloaded 1858, added 1875 [21:55:37.414] ../.. | Progress: resolved 2334, reused 0, downloaded 1935, added 1952 [21:55:38.597] ../.. | Progress: resolved 2334, reused 0, downloaded 1995, added 2011 [21:55:39.597] ../.. | Progress: resolved 2334, reused 0, downloaded 2063, added 2081 [21:55:40.602] ../.. | Progress: resolved 2334, reused 0, downloaded 2126, added 2141 [21:55:41.680] ../.. | Progress: resolved 2334, reused 0, downloaded 2180, added 2197 [21:55:42.680] ../.. | Progress: resolved 2334, reused 0, downloaded 2229, added 2250 [21:55:43.680] ../.. | Progress: resolved 2334, reused 0, downloaded 2300, added 2322 [21:55:44.688] ../.. | Progress: resolved 2334, reused 0, downloaded 2304, added 2325 [21:55:45.710] ../.. | Progress: resolved 2334, reused 0, downloaded 2307, added 2329 [21:55:47.291] ../.. | Progress: resolved 2334, reused 0, downloaded 2308, added 2329 [21:55:48.331] ../.. | Progress: resolved 2334, reused 0, downloaded 2311, added 2333 [21:55:49.332] ../.. | Progress: resolved 2334, reused 0, downloaded 2312, added 2334, done [21:55:49.606] .../node_modules/@prisma/client postinstall$ node scripts/postinstall.js [21:55:49.606] .../node_modules/@prisma/engines postinstall$ node scripts/postinstall.js [21:55:49.607] .../node_modules/@prisma/engines postinstall$ node download/index.js [21:55:49.679] .../node_modules/core-js-pure postinstall$ node -e "try{require('./postinstall')}catch(e){}" [21:55:49.713] .../core-js@3.26.1/node_modules/core-js postinstall$ node -e "try{require('./postinstall')}catch(e){}" [21:55:49.812] .../core-js@3.26.1/node_modules/core-js postinstall: Done [21:55:49.931] .../node_modules/core-js-pure postinstall: Done [21:55:51.519] .../node_modules/styled-components postinstall$ node ./postinstall.js [21:55:51.763] .../node_modules/styled-components postinstall: Done [21:55:57.502] .../node_modules/@prisma/engines postinstall: Done [21:55:57.534] .../node_modules/@prisma/client postinstall: prisma:warn The postinstall script automatically ran `prisma generate` and did not find your `prisma/schema.prisma`. [21:55:57.535] .../node_modules/@prisma/client postinstall: If you have a Prisma schema file in a custom path, you will need to run [21:55:57.535] .../node_modules/@prisma/client postinstall: `prisma generate --schema=./path/to/your/schema.prisma` to generate Prisma Client. [21:55:57.535] .../node_modules/@prisma/client postinstall: If you do not have a Prisma schema file yet, you can ignore this message. [21:55:57.568] .../node_modules/@prisma/client postinstall: Done [21:55:57.764] .../node_modules/@prisma/engines postinstall: Done [21:55:58.783] .../node_modules/@swc/core postinstall$ node postinstall.js [21:55:58.784] .../.pnpm/turbo@1.6.3/node_modules/turbo postinstall$ node install.js [21:55:58.784] .../esbuild@0.15.14/node_modules/esbuild postinstall$ node install.js [21:55:58.784] .../esbuild@0.14.54/node_modules/esbuild postinstall$ node install.js [21:55:58.926] .../node_modules/@swc/core postinstall: Done [21:55:58.960] .../.pnpm/turbo@1.6.3/node_modules/turbo postinstall: Done [21:55:58.962] .../esbuild@0.15.14/node_modules/esbuild postinstall: Done [21:55:58.970] .../prisma@4.6.1/node_modules/prisma preinstall$ node scripts/preinstall-entry.js [21:55:59.007] .../esbuild@0.14.54/node_modules/esbuild postinstall: Done [21:55:59.127] .../prisma@4.6.1/node_modules/prisma preinstall: Done [21:55:59.128] .../prisma@4.6.1/node_modules/prisma install$ node scripts/install-entry.js [21:55:59.246] .../prisma@4.6.1/node_modules/prisma install: Done [21:55:59.362] .../cypress@11.1.0/node_modules/cypress postinstall$ node index.js --exec install [21:55:59.496] .../node_modules/@prisma/client postinstall$ node scripts/postinstall.js [21:55:59.955] .../cypress@11.1.0/node_modules/cypress postinstall: Installing Cypress (version: 11.1.0) [21:55:59.958] .../cypress@11.1.0/node_modules/cypress postinstall: [STARTED] Task without title. [21:56:01.794] .../node_modules/@prisma/client postinstall: prisma:warn The postinstall script automatically ran `prisma generate` and did not find your `prisma/schema.prisma`. [21:56:01.794] .../node_modules/@prisma/client postinstall: If you have a Prisma schema file in a custom path, you will need to run [21:56:01.795] .../node_modules/@prisma/client postinstall: `prisma generate --schema=./path/to/your/schema.prisma` to generate Prisma Client. [21:56:01.795] .../node_modules/@prisma/client postinstall: If you do not have a Prisma schema file yet, you can ignore this message. [21:56:01.895] .../node_modules/@prisma/client postinstall: Done [21:56:02.451] .../cypress@11.1.0/node_modules/cypress postinstall: [SUCCESS] Task without title. [21:56:02.451] .../cypress@11.1.0/node_modules/cypress postinstall: [STARTED] Task without title. [21:56:08.053] .../cypress@11.1.0/node_modules/cypress postinstall: [SUCCESS] Task without title. [21:56:08.053] .../cypress@11.1.0/node_modules/cypress postinstall: [STARTED] Task without title. [21:56:08.077] .../cypress@11.1.0/node_modules/cypress postinstall: [SUCCESS] Task without title. [21:56:09.079] .../cypress@11.1.0/node_modules/cypress postinstall: You can now open Cypress by running: node_modules/.bin/cypress open [21:56:09.079] .../cypress@11.1.0/node_modules/cypress postinstall: https://on.cypress.io/installing-cypress [21:56:09.093] .../cypress@11.1.0/node_modules/cypress postinstall: Done [21:56:10.337] [21:56:10.337] dependencies: [21:56:10.338] + @next-auth/prisma-adapter 1.0.5 [21:56:10.338] + @next/bundle-analyzer 13.0.5-canary.2 [21:56:10.338] + @tanstack/react-query 4.16.1 [21:56:10.338] + @trpc/client 10.0.0-rc.8 [21:56:10.338] + @trpc/next 10.0.0-rc.8 [21:56:10.338] + @trpc/react-query 10.0.0-rc.8 [21:56:10.338] + @trpc/server 10.0.0-rc.8 [21:56:10.338] + @weareinreach/db 0.100.0 <- ../../packages/db [21:56:10.338] + i18next 22.0.6 [21:56:10.338] + next 13.0.5-canary.2 [21:56:10.338] + next-auth 4.16.4 [21:56:10.338] + next-i18next 12.1.0 [21:56:10.339] + next-transpile-modules 10.0.0 [21:56:10.339] + react 18.2.0 [21:56:10.339] + react-dom 18.2.0 [21:56:10.339] + react-i18next 12.0.0 [21:56:10.339] + superjson 1.11.0 [21:56:10.339] + zod 3.19.1 [21:56:10.339] [21:56:10.339] devDependencies: [21:56:10.339] + @next/font 13.0.5-canary.2 [21:56:10.339] + @types/node 16.18.3 [21:56:10.339] + @types/react 18.0.25 [21:56:10.339] + @types/react-dom 18.0.9 [21:56:10.339] + @typescript-eslint/eslint-plugin 5.43.0 [21:56:10.339] + @typescript-eslint/parser 5.43.0 [21:56:10.340] + @weareinreach/config 0.100.0 <- ../../packages/config [21:56:10.340] + @weareinreach/eslint-config 0.100.0 <- ../../packages/eslint-config [21:56:10.340] + @weareinreach/ui 0.100.0 <- ../../packages/ui [21:56:10.340] + eslint 8.27.0 [21:56:10.340] + eslint-config-next 13.0.5-canary.2 [21:56:10.340] + eslint-import-resolver-typescript 3.5.2 [21:56:10.340] + eslint-plugin-codegen 0.16.1 [21:56:10.340] + eslint-plugin-i18next 6.0.0-4 [21:56:10.340] + eslint-plugin-import 2.26.0 [21:56:10.340] + eslint-plugin-prettier 4.2.1 [21:56:10.340] + eslint-plugin-simple-import-sort 8.0.0 [21:56:10.340] + typescript 4.9.3 [21:56:10.340] [21:56:10.341] ../.. postinstall$ turbo run post-install [21:56:10.627] ../.. postinstall: • Packages in scope: @weareinreach/app, @weareinreach/aws-user-migrate, @weareinreach/config, @weareinreach/db, @weareinreach/eslint-config, @weareinreach/types, @weareinreach/ui, @weareinreach/web [21:56:10.628] ../.. postinstall: • Running post-install in 8 packages [21:56:10.629] ../.. postinstall: • Remote caching enabled [21:56:10.629] ../.. postinstall: @weareinreach/db:post-install: cache bypass, force executing 855e7084cea9ab68 [21:56:11.185] ../.. postinstall: @weareinreach/db:post-install: [21:56:11.185] ../.. postinstall: @weareinreach/db:post-install: > @weareinreach/db@0.100.0 post-install /vercel/path0/packages/db [21:56:11.185] ../.. postinstall: @weareinreach/db:post-install: > pnpm db:generate [21:56:11.185] ../.. postinstall: @weareinreach/db:post-install: [21:56:11.732] ../.. postinstall: @weareinreach/db:post-install: [21:56:11.733] ../.. postinstall: @weareinreach/db:post-install: > @weareinreach/db@0.100.0 db:generate /vercel/path0/packages/db [21:56:11.733] ../.. postinstall: @weareinreach/db:post-install: > prisma generate && pnpm format:generated && prisma -v [21:56:11.733] ../.. postinstall: @weareinreach/db:post-install: [21:56:13.578] ../.. postinstall: @weareinreach/db:post-install: Prisma schema loaded from prisma/schema.prisma [21:56:20.807] ../.. postinstall: @weareinreach/db:post-install: [21:56:20.807] ../.. postinstall: @weareinreach/db:post-install: ✔ Generated Prisma Client (4.6.1 | library) to ./../../node_modules/.prisma/client in 2.61s [21:56:20.807] ../.. postinstall: @weareinreach/db:post-install: [21:56:20.808] ../.. postinstall: @weareinreach/db:post-install: ✔ Generated Prisma Docs Generator to ./../../docs/database in 935ms [21:56:20.808] ../.. postinstall: @weareinreach/db:post-install: [21:56:20.808] ../.. postinstall: @weareinreach/db:post-install: ✔ Generated Zod Schemas (0.5.4) to ./zod-schemas in 1.22s [21:56:20.808] ../.. postinstall: @weareinreach/db:post-install: You can now start using Prisma Client in your code. Reference: https://pris.ly/d/client [21:56:20.808] ../.. postinstall: @weareinreach/db:post-install: ``` [21:56:20.809] ../.. postinstall: @weareinreach/db:post-install: import { PrismaClient } from '../../node_modules/.prisma/client' [21:56:20.809] ../.. postinstall: @weareinreach/db:post-install: const prisma = new PrismaClient() [21:56:20.809] ../.. postinstall: @weareinreach/db:post-install: ``` [21:56:21.470] ../.. postinstall: @weareinreach/db:post-install: [21:56:21.470] ../.. postinstall: @weareinreach/db:post-install: > @weareinreach/db@0.100.0 format:generated /vercel/path0/packages/db [21:56:21.471] ../.. postinstall: @weareinreach/db:post-install: > prettier --cache --cache-strategy metadata --write ./zod*/* [21:56:21.471] ../.. postinstall: @weareinreach/db:post-install: [21:56:22.575] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/account.ts 265ms [21:56:22.640] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/country.ts 55ms [21:56:22.683] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/fieldvisibility.ts 30ms [21:56:22.730] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/govdist.ts 41ms [21:56:22.761] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/govdisttype.ts 22ms [21:56:22.780] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/index.ts 13ms [21:56:22.841] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/internalnote.ts 55ms [21:56:22.876] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/language.ts 26ms [21:56:22.901] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/navigation.ts 19ms [21:56:22.934] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/organization.ts 27ms [21:56:22.957] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/orgdescription.ts 13ms [21:56:22.984] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/orgemail.ts 21ms [21:56:23.020] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/orghours.ts 28ms [21:56:23.071] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/orglocation.ts 44ms [21:56:23.099] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/orgphone.ts 21ms [21:56:23.125] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/orgphoto.ts 20ms [21:56:23.153] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/orgreview.ts 25ms [21:56:23.186] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/orgservice.ts 21ms [21:56:23.213] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/orgsocialmedia.ts 21ms [21:56:23.233] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/outsideapi.ts 12ms [21:56:23.257] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/permissionasset.ts 16ms [21:56:23.276] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/permissionitem.ts 11ms [21:56:23.299] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/phonetype.ts 16ms [21:56:23.319] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/servicecategory.ts 14ms [21:56:23.339] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/servicetag.ts 15ms [21:56:23.355] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/session.ts 7ms [21:56:23.367] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/socialmediaservice.ts 8ms [21:56:23.379] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/source.ts 8ms [21:56:23.391] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/translation.ts 8ms [21:56:23.421] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/translationkey.ts 25ms [21:56:23.441] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/translationnamespace.ts 13ms [21:56:23.460] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/translationvariable.ts 14ms [21:56:23.525] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/user.ts 60ms [21:56:23.539] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/usercommunity.ts 10ms [21:56:23.555] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/userethnicity.ts 11ms [21:56:23.567] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/userimmigration.ts 8ms [21:56:23.584] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/userrole.ts 8ms [21:56:23.599] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/usersavedlist.ts 11ms [21:56:23.625] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/usersog.ts 20ms [21:56:23.642] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/usertitle.ts 12ms [21:56:23.657] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/usertype.ts 9ms [21:56:23.672] ../.. postinstall: @weareinreach/db:post-install: zod-schemas/verificationtoken.ts 4ms [21:56:23.725] ../.. postinstall: @weareinreach/db:post-install: zod-util/index.ts 48ms [21:56:25.759] ../.. postinstall: @weareinreach/db:post-install: prisma : 4.6.1 [21:56:25.760] ../.. postinstall: @weareinreach/db:post-install: @prisma/client : 4.6.1 [21:56:25.760] ../.. postinstall: @weareinreach/db:post-install: Current platform : rhel-openssl-1.0.x [21:56:25.760] ../.. postinstall: @weareinreach/db:post-install: Query Engine (Node-API) : libquery-engine 694eea289a8462c80264df36757e4fdc129b1b32 (at ../../node_modules/.pnpm/@prisma+engines@4.6.1/node_modules/@prisma/engines/libquery_engine-rhel-openssl-1.0.x.so.node) [21:56:25.760] ../.. postinstall: @weareinreach/db:post-install: Migration Engine : migration-engine-cli 694eea289a8462c80264df36757e4fdc129b1b32 (at ../../node_modules/.pnpm/@prisma+engines@4.6.1/node_modules/@prisma/engines/migration-engine-rhel-openssl-1.0.x) [21:56:25.760] ../.. postinstall: @weareinreach/db:post-install: Introspection Engine : introspection-core 694eea289a8462c80264df36757e4fdc129b1b32 (at ../../node_modules/.pnpm/@prisma+engines@4.6.1/node_modules/@prisma/engines/introspection-engine-rhel-openssl-1.0.x) [21:56:25.761] ../.. postinstall: @weareinreach/db:post-install: Format Binary : prisma-fmt 694eea289a8462c80264df36757e4fdc129b1b32 (at ../../node_modules/.pnpm/@prisma+engines@4.6.1/node_modules/@prisma/engines/prisma-fmt-rhel-openssl-1.0.x) [21:56:25.761] ../.. postinstall: @weareinreach/db:post-install: Format Wasm : @prisma/prisma-fmt-wasm 4.6.1-3.694eea289a8462c80264df36757e4fdc129b1b32 [21:56:25.761] ../.. postinstall: @weareinreach/db:post-install: Default Engines Hash : 694eea289a8462c80264df36757e4fdc129b1b32 [21:56:25.761] ../.. postinstall: @weareinreach/db:post-install: Studio : 0.476.0 [21:56:25.880] ../.. postinstall: Tasks: 1 successful, 1 total [21:56:25.880] ../.. postinstall: Cached: 0 cached, 1 total [21:56:25.881] ../.. postinstall: Time: 15.51s [21:56:26.249] ../.. postinstall: Done [21:56:26.249] ../.. prepare$ husky install [21:56:26.326] ../.. prepare: husky - Git hooks installed [21:56:26.329] ../.. prepare: Done [21:56:26.331] Done in 1m 18.7s [21:56:26.368] Detected Next.js version: 13.0.5-canary.2 [21:56:26.454] Running "cd ../.. && npx turbo run build --filter=app..." [21:56:27.005] • Packages in scope: @weareinreach/app, @weareinreach/config, @weareinreach/db, @weareinreach/eslint-config, @weareinreach/ui [21:56:27.005] • Running build in 5 packages [21:56:27.006] • Remote caching enabled [21:56:27.006] @weareinreach/app:build: cache bypass, force executing 4e74316afe970926 [21:56:27.541] @weareinreach/app:build: [21:56:27.541] @weareinreach/app:build: > @weareinreach/app@0.100.0 build /vercel/path0/apps/app [21:56:27.541] @weareinreach/app:build: > next build [21:56:27.541] @weareinreach/app:build: [21:56:27.987] @weareinreach/app:build: warn - You have enabled experimental features (transpilePackages, fontLoaders, outputFileTracingIgnores) in next.config.mjs. [21:56:27.988] @weareinreach/app:build: warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk. [21:56:27.988] @weareinreach/app:build: [21:56:28.005] @weareinreach/app:build: Attention: Next.js now collects completely anonymous telemetry regarding usage. [21:56:28.005] @weareinreach/app:build: This information is used to shape Next.js' roadmap and prioritize features. [21:56:28.005] @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: [21:56:28.005] @weareinreach/app:build: https://nextjs.org/telemetry [21:56:28.005] @weareinreach/app:build: [21:56:28.107] @weareinreach/app:build: info - Linting and checking validity of types... [21:56:35.866] @weareinreach/app:build: info - Creating an optimized production build... [21:56:50.308] @weareinreach/app:build: info - Compiled successfully [21:56:50.309] @weareinreach/app:build: info - Collecting page data... [21:56:56.122] @weareinreach/app:build: info - Generating static pages (0/14) [21:56:56.170] @weareinreach/app:build: react-i18next:: You will need to pass in an i18next instance by using initReactI18next [21:56:56.192] @weareinreach/app:build: react-i18next:: You will need to pass in an i18next instance by using initReactI18next [21:56:56.192] @weareinreach/app:build: react-i18next:: You will need to pass in an i18next instance by using initReactI18next [21:56:56.357] @weareinreach/app:build: info - Generating static pages (3/14) [21:56:56.388] @weareinreach/app:build: info - Generating static pages (6/14) [21:56:56.414] @weareinreach/app:build: info - Generating static pages (10/14) [21:56:56.457] @weareinreach/app:build: info - Generating static pages (14/14) [21:56:56.471] @weareinreach/app:build: info - Finalizing page optimization... [21:56:56.475] @weareinreach/app:build: [21:56:56.494] @weareinreach/app:build: Route (pages) Size First Load JS [21:56:56.494] @weareinreach/app:build: ┌ λ / 353 B 192 kB [21:56:56.494] @weareinreach/app:build: ├ /_app 0 B 192 kB [21:56:56.494] @weareinreach/app:build: ├ ○ /404 182 B 192 kB [21:56:56.494] @weareinreach/app:build: ├ λ /api/auth/[...nextauth] 0 B 192 kB [21:56:56.494] @weareinreach/app:build: └ λ /api/trpc/[trpc] 0 B 192 kB [21:56:56.494] @weareinreach/app:build: + First Load JS shared by all 192 kB [21:56:56.494] @weareinreach/app:build: ├ chunks/framework-d5f8ed288849d546.js 45.4 kB [21:56:56.494] @weareinreach/app:build: ├ chunks/main-0522efcb72766301.js 27.4 kB [21:56:56.494] @weareinreach/app:build: ├ chunks/pages/_app-dbe62eb9f7aba7fd.js 118 kB [21:56:56.495] @weareinreach/app:build: ├ chunks/webpack-0b5d8249fb15f5f3.js 939 B [21:56:56.495] @weareinreach/app:build: └ css/17f0d613640b4042.css 578 B [21:56:56.495] @weareinreach/app:build: [21:56:56.495] @weareinreach/app:build: λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps) [21:56:56.495] @weareinreach/app:build: ○ (Static) automatically rendered as static HTML (uses no initial props) [21:56:56.495] @weareinreach/app:build: [21:56:56.626] [21:56:56.626] Tasks: 1 successful, 1 total [21:56:56.626] Cached: 0 cached, 1 total [21:56:56.626] Time: 29.77s [21:56:56.627] [21:56:58.150] Traced Next.js server files in: 1.120s [21:56:59.377] Serverless function size info [21:56:59.377] Serverless Function's page: index.js [21:56:59.383] Large Dependencies Uncompressed size Compressed size [21:56:59.383] node_modules/.pnpm/next@13.0.5-canary.2_mqvh5p7ejg4taogoj6tpk3gd5a 8.32 MB 2.22 MB [21:56:59.383] node_modules/.pnpm/react-dom@18.2.0_react@18.2.0 1.72 MB 415 kB [21:56:59.384] node_modules/.pnpm/@mantine+core@5.8.0_oropdu55clxolwu5c7qygkf2pm 911 kB 321 kB [21:56:59.384] [21:56:59.384] All dependencies 4.11 MB 3.84 MB [21:56:59.384] Serverless Function's pages: api/auth/[...nextauth].js, api/trpc/[trpc].js [21:56:59.389] Large Dependencies Uncompressed size Compressed size [21:56:59.389] node_modules/.pnpm/next@13.0.5-canary.2_mqvh5p7ejg4taogoj6tpk3gd5a 8.32 MB 2.22 MB [21:56:59.390] node_modules/.pnpm/react-dom@18.2.0_react@18.2.0 1.72 MB 415 kB [21:56:59.390] node_modules/.pnpm/@mantine+core@5.8.0_oropdu55clxolwu5c7qygkf2pm 911 kB 321 kB [21:56:59.390] [21:56:59.390] All dependencies 5.05 MB 4.08 MB [21:56:59.416] Created all serverless functions in: 1.266s [21:56:59.432] Collected static files (public/, static/, .next/static): 11.824ms [21:57:01.368] Build Completed in /vercel/output [2m] [21:57:07.547] Generated build outputs: [21:57:07.548] - Static files: 68 [21:57:07.548] - Serverless Functions: 8 [21:57:07.548] - Edge Functions: 0 [21:57:07.548] Serverless regions: Washington, D.C., USA [21:57:07.548] Deployed outputs in 2s [21:57:08.454] Build completed. Populating build cache... [21:57:43.623] Uploading build cache [292.47 MB]... [21:57:50.050] Build cache uploaded: 6.426s [21:57:50.108] Done with "." ```
Local cli - vercel build ```bash Vercel CLI 28.4.16 Detected `pnpm-lock.yaml` generated by pnpm 7... WARNING: You should not upload the `.next` directory. Installing dependencies... Scope: all 9 workspace projects ../.. postinstall$ turbo run post-install ../.. postinstall: • Packages in scope: @weareinreach/app, @weareinreach/aws-user-migrate, @weareinreach/config, @weareinreach/db, @weareinreach/eslint-config, @weareinreach/types, @weareinreach/ui, @weareinreach/web ../.. postinstall: • Running post-install in 8 packages ../.. postinstall: • Remote caching enabled ../.. postinstall: @weareinreach/db:post-install: cache miss, executing 5f4cb8e55d21fa75 ../.. postinstall: @weareinreach/db:post-install: ../.. postinstall: @weareinreach/db:post-install: > @weareinreach/db@0.100.0 post-install /Users/joe/GitHub/InReach/monorepo/packages/db ../.. postinstall: @weareinreach/db:post-install: > pnpm db:generate ../.. postinstall: @weareinreach/db:post-install: ../.. postinstall: @weareinreach/db:post-install: ../.. postinstall: @weareinreach/db:post-install: > @weareinreach/db@0.100.0 db:generate /Users/joe/GitHub/InReach/monorepo/packages/db ../.. postinstall: @weareinreach/db:post-install: > prisma generate && pnpm format:generated && prisma -v ../.. postinstall: @weareinreach/db:post-install: ../.. postinstall: @weareinreach/db:post-install: Environment variables loaded from .env ../.. postinstall: @weareinreach/db:post-install: Prisma schema loaded from prisma/schema.prisma ../.. postinstall: @weareinreach/db:post-install: ../.. postinstall: @weareinreach/db:post-install: ✔ Generated Prisma Client (4.6.1 | library) to ./../../node_modules/.prisma/client in 1.44s ../.. postinstall: @weareinreach/db:post-install: ../.. postinstall: @weareinreach/db:post-install: ✔ Generated Prisma Docs Generator to ./../../docs/database in 568ms ../.. postinstall: @weareinreach/db:post-install: ../.. postinstall: @weareinreach/db:post-install: ✔ Generated Zod Schemas (0.5.4) to ./zod-schemas in 849ms ../.. postinstall: @weareinreach/db:post-install: You can now start using Prisma Client in your code. Reference: https://pris.ly/d/client ../.. postinstall: @weareinreach/db:post-install: ``` ../.. postinstall: @weareinreach/db:post-install: import { PrismaClient } from '../../node_modules/.prisma/client' ../.. postinstall: @weareinreach/db:post-install: const prisma = new PrismaClient() ../.. postinstall: @weareinreach/db:post-install: ``` ../.. postinstall: @weareinreach/db:post-install: ../.. postinstall: @weareinreach/db:post-install: > @weareinreach/db@0.100.0 format:generated /Users/joe/GitHub/InReach/monorepo/packages/db ../.. postinstall: @weareinreach/db:post-install: > prettier --cache --cache-strategy metadata --write ./zod*/* ../.. postinstall: @weareinreach/db:post-install: ../.. postinstall: @weareinreach/db:post-install: zod-schemas/account.ts 230ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/country.ts 43ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/fieldvisibility.ts 20ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/govdist.ts 28ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/govdisttype.ts 14ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/index.ts 8ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/internalnote.ts 32ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/language.ts 16ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/navigation.ts 14ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/organization.ts 19ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/orgdescription.ts 10ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/orgemail.ts 15ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/orghours.ts 14ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/orglocation.ts 24ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/orgphone.ts 12ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/orgphoto.ts 13ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/orgreview.ts 14ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/orgservice.ts 11ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/orgsocialmedia.ts 10ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/outsideapi.ts 9ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/permissionasset.ts 9ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/permissionitem.ts 9ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/phonetype.ts 9ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/servicecategory.ts 11ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/servicetag.ts 10ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/session.ts 6ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/socialmediaservice.ts 6ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/source.ts 7ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/translation.ts 7ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/translationkey.ts 17ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/translationnamespace.ts 9ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/translationvariable.ts 7ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/user.ts 42ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/usercommunity.ts 8ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/userethnicity.ts 9ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/userimmigration.ts 7ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/userrole.ts 6ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/usersavedlist.ts 8ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/usersog.ts 17ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/usertitle.ts 9ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/usertype.ts 7ms ../.. postinstall: @weareinreach/db:post-install: zod-schemas/verificationtoken.ts 4ms ../.. postinstall: @weareinreach/db:post-install: zod-util/index.ts 0ms (cached) ../.. postinstall: @weareinreach/db:post-install: Environment variables loaded from .env ../.. postinstall: @weareinreach/db:post-install: prisma : 4.6.1 ../.. postinstall: @weareinreach/db:post-install: @prisma/client : 4.6.1 ../.. postinstall: @weareinreach/db:post-install: Current platform : darwin ../.. postinstall: @weareinreach/db:post-install: Query Engine (Node-API) : libquery-engine 694eea289a8462c80264df36757e4fdc129b1b32 (at ../../node_modules/.pnpm/@prisma+engines@4.6.1/node_modules/@prisma/engines/libquery_engine-darwin.dylib.node) ../.. postinstall: @weareinreach/db:post-install: Migration Engine : migration-engine-cli 694eea289a8462c80264df36757e4fdc129b1b32 (at ../../node_modules/.pnpm/@prisma+engines@4.6.1/node_modules/@prisma/engines/migration-engine-darwin) ../.. postinstall: @weareinreach/db:post-install: Introspection Engine : introspection-core 694eea289a8462c80264df36757e4fdc129b1b32 (at ../../node_modules/.pnpm/@prisma+engines@4.6.1/node_modules/@prisma/engines/introspection-engine-darwin) ../.. postinstall: @weareinreach/db:post-install: Format Binary : prisma-fmt 694eea289a8462c80264df36757e4fdc129b1b32 (at ../../node_modules/.pnpm/@prisma+engines@4.6.1/node_modules/@prisma/engines/prisma-fmt-darwin) ../.. postinstall: @weareinreach/db:post-install: Format Wasm : @prisma/prisma-fmt-wasm 4.6.1-3.694eea289a8462c80264df36757e4fdc129b1b32 ../.. postinstall: @weareinreach/db:post-install: Default Engines Hash : 694eea289a8462c80264df36757e4fdc129b1b32 ../.. postinstall: @weareinreach/db:post-install: Studio : 0.476.0 ../.. postinstall: @weareinreach/db:post-install: Preview Features : fieldReference, postgresqlExtensions ../.. postinstall: Tasks: 1 successful, 1 total ../.. postinstall: Cached: 0 cached, 1 total ../.. postinstall: Time: 11.254s ../.. postinstall: Done ../.. prepare$ husky install ../.. prepare: husky - Git hooks installed ../.. prepare: Done Done in 14.1s Detected Next.js version: 13.0.5-canary.2 Running "cd ../.. && npx turbo run build --filter=app..." • Packages in scope: @weareinreach/app, @weareinreach/config, @weareinreach/db, @weareinreach/eslint-config, @weareinreach/ui • Running build in 5 packages • Remote caching enabled @weareinreach/app:build: cache miss, executing 28af7f12fd3aaba7 @weareinreach/app:build: @weareinreach/app:build: > @weareinreach/app@0.100.0 build /Users/joe/GitHub/InReach/monorepo/apps/app @weareinreach/app:build: > next build @weareinreach/app:build: @weareinreach/app:build: warn - You have enabled experimental features (transpilePackages, fontLoaders, outputFileTracingIgnores) in next.config.mjs. @weareinreach/app:build: warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk. @weareinreach/app:build: @weareinreach/app:build: info - Linting and checking validity of types... @weareinreach/app:build: info - Creating an optimized production build... @weareinreach/app:build: info - Compiled successfully @weareinreach/app:build: info - Collecting page data... @weareinreach/app:build: info - Generating static pages (0/14) @weareinreach/app:build: react-i18next:: You will need to pass in an i18next instance by using initReactI18next @weareinreach/app:build: react-i18next:: You will need to pass in an i18next instance by using initReactI18next @weareinreach/app:build: react-i18next:: You will need to pass in an i18next instance by using initReactI18next @weareinreach/app:build: info - Generating static pages (3/14) @weareinreach/app:build: info - Generating static pages (6/14) @weareinreach/app:build: react-i18next:: You will need to pass in an i18next instance by using initReactI18next @weareinreach/app:build: react-i18next:: You will need to pass in an i18next instance by using initReactI18next @weareinreach/app:build: react-i18next:: You will need to pass in an i18next instance by using initReactI18next @weareinreach/app:build: react-i18next:: You will need to pass in an i18next instance by using initReactI18next @weareinreach/app:build: react-i18next:: You will need to pass in an i18next instance by using initReactI18next @weareinreach/app:build: react-i18next:: You will need to pass in an i18next instance by using initReactI18next @weareinreach/app:build: react-i18next:: You will need to pass in an i18next instance by using initReactI18next @weareinreach/app:build: react-i18next:: You will need to pass in an i18next instance by using initReactI18next @weareinreach/app:build: info - Generating static pages (10/14) @weareinreach/app:build: info - Generating static pages (14/14) @weareinreach/app:build: info - Finalizing page optimization... @weareinreach/app:build: @weareinreach/app:build: Route (pages) Size First Load JS @weareinreach/app:build: ┌ λ / 353 B 192 kB @weareinreach/app:build: ├ /_app 0 B 192 kB @weareinreach/app:build: ├ ○ /404 182 B 192 kB @weareinreach/app:build: ├ λ /api/auth/[...nextauth] 0 B 192 kB @weareinreach/app:build: └ λ /api/trpc/[trpc] 0 B 192 kB @weareinreach/app:build: + First Load JS shared by all 192 kB @weareinreach/app:build: ├ chunks/framework-d5f8ed288849d546.js 45.4 kB @weareinreach/app:build: ├ chunks/main-0522efcb72766301.js 27.4 kB @weareinreach/app:build: ├ chunks/pages/_app-dbe62eb9f7aba7fd.js 118 kB @weareinreach/app:build: ├ chunks/webpack-0b5d8249fb15f5f3.js 939 B @weareinreach/app:build: └ css/17f0d613640b4042.css 578 B @weareinreach/app:build: @weareinreach/app:build: λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps) @weareinreach/app:build: ○ (Static) automatically rendered as static HTML (uses no initial props) @weareinreach/app:build: Tasks: 1 successful, 1 total Cached: 0 cached, 1 total Time: 22.559s Traced Next.js server files in: 874.963ms Serverless function size info Serverless Function's page: index.js Large Dependencies Uncompressed size Compressed size node_modules/.pnpm/next@13.0.5-canary.2_mqvh5p7ejg4taogoj6tpk3gd5a 8.32 MB 2.22 MB node_modules/.pnpm/react-dom@18.2.0_react@18.2.0 1.72 MB 415 kB node_modules/.pnpm/@mantine+core@5.8.0_oropdu55clxolwu5c7qygkf2pm 911 kB 321 kB All dependencies 4.11 MB 3.84 MB Serverless Function's pages: api/auth/[...nextauth].js, api/trpc/[trpc].js Large Dependencies Uncompressed size Compressed size node_modules/.prisma/client 35.7 MB 13.3 MB node_modules/.pnpm/next@13.0.5-canary.2_mqvh5p7ejg4taogoj6tpk3gd5a 8.32 MB 2.22 MB node_modules/.pnpm/react-dom@18.2.0_react@18.2.0 1.72 MB 415 kB node_modules/.pnpm/@mantine+core@5.8.0_oropdu55clxolwu5c7qygkf2pm 911 kB 321 kB All dependencies 40.8 MB 17.4 MB Created all serverless functions in: 4.568s Collected static files (public/, static/, .next/static): 6.023ms ✅ Build Completed in .vercel/output [45s] ```
Serverless function error ```bash [POST] /api/auth/_log 22:05:00:43 Function Status: None Edge Status: 500 Duration: 344.99 ms Init Duration: N/A Memory Used: 72 MB ID: iad1::twbqv-1668827100430-4964a7a74c04 User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 2022-11-19T03:05:01.930Z 7f613c4c-539c-4fcb-b4bf-802dd9f7f654 ERROR Error: @prisma/client did not initialize yet. Please run "prisma generate" and try to import it again. In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues at new PrismaClient (/var/task/node_modules/.pnpm/@prisma+client@4.6.1_prisma@4.6.1/node_modules/.prisma/client/index.js:3:11) at generateClient (/var/task/apps/app/.next/server/chunks/176.js:63:112) at Object.189 (/var/task/apps/app/.next/server/chunks/176.js:71:33) at __webpack_require__ (/var/task/apps/app/.next/server/webpack-api-runtime.js:25:42) at Object.7176 (/var/task/apps/app/.next/server/chunks/176.js:20:74) at __webpack_require__ (/var/task/apps/app/.next/server/webpack-api-runtime.js:25:42) at __webpack_exec__ (/var/task/apps/app/.next/server/pages/api/auth/[...nextauth].js:42:39) at /var/task/apps/app/.next/server/pages/api/auth/[...nextauth].js:43:66 at Function.__webpack_require__.X (/var/task/apps/app/.next/server/webpack-api-runtime.js:177:21) at /var/task/apps/app/.next/server/pages/api/auth/[...nextauth].js:43:47 RequestId: 7f613c4c-539c-4fcb-b4bf-802dd9f7f654 Error: Runtime exited with error: exit status 1 ```

Is there a docker container which replicates Vercel's server build/deploy process so I can run it locally when troubleshooting/testing?

fdarian commented 1 year ago

@erawk If you can share two commits with only bumping 13.0.1 and 13.0.2 showing this being the only change causing the increase would be happy to investigate this further! The reproduction we did see with this was showing this on 13.0.1 as well though and haven't seen this occurring only after updating 13.0.2.

Hi, just wan't to inform that my company is also experiencing the exact problem when upgrading to 13.0.2 from 13.0.1. I tried to make a reproduce repo but the problem isn't showing.

Here's one of the example on regular next-auth route with prisma and siwe dependencies.

Screenshot 2022-11-21 at 17 23 56

Let me know what can I provide to help.

liamross commented 1 year ago

Upgraded to 13.0.5, unfortunately still causing issue. I see @JoeKarow referenced this and said 13.0.5-canary.2 fixed it, but the stable version does not (using npm, standard t3 stack).

erawk commented 1 year ago

Hey @liamross - what fixed it for us was to ensure we have the outputFileTracingIgnores set-up, as in my comment here

module.exports = {
  experimental: {
    esmExternals: true,
    outputFileTracingIgnores: ['**swc/core**'], // See https://github.com/vercel/next.js/issues/42641#issuecomment-1320713368
    swcPlugins: [['next-superjson-plugin', {}]], // Use SuperJSON in getStaticProps via SWC
  },
 ...
}

It wasn't just updating to 13.0.5 that solved it, but also ensuring we add the outputFileTracingIgnores block in our next.config.js.

liamross commented 1 year ago

That solved the build issues, however now the serverless functions crash and I can't access the site. Here is my function error output if anyone else is having the same problem (for now the fix on my end seems to be simply downgrading to 13.0.1).

[GET] /
09:46:31:89

2022-11-25T17:46:32.077Z    undefined   ERROR   Cannot find module './initialize-require-hook'
Require stack:
- /var/task/apps/app/node_modules/next/dist/server/next-server.js
- /var/task/apps/app/___next_launcher.cjs
2022-11-25T17:46:32.077Z    undefined   ERROR   Did you forget to add it to "dependencies" in `package.json`?
RequestId: a0e959c0-0f5e-427d-8e38-d421ee6cecec Error: Runtime exited with error: exit status 1
Runtime.ExitError
erawk commented 1 year ago

@liamross one thing you can try is:

  1. Upgrading to the latest 13.0.5
  2. Do NOT put anything in your next.config.ts for outputFileTracingIgnores
  3. Add a post-build.sh step in your deploy process to zero-byte one of the @swc/core-linux libraries

An example of post-build.sh is what I posted earlier in : https://github.com/vercel/next.js/issues/42641#issuecomment-1310422980

This provides the @swc/core binary for compilation at run time, but not two of them. For Vercel, I was OK with zeroing out the musl version. But if you are using say Alpine Linux, you will have to keep the musl one and zero out the other one.

I don't really recommend this, as it could lead to unexpected consequences if your libc changes from underneath you, but it might help determine if you do need @swc/core for your deploys.

kylemh commented 1 year ago

I'm in a branch where I'm trying to upgrade dependencies and I'm using @swc/core and @swc/jest in a component library's Jest unit tests. My Next.js app is v^12 and I'm seeing the same issue with every distribution of swc attempting to be loaded to a serverless function.

I don't have experimental.outputFileTracingIgnores in that version of Next.js

I'm not sure if this is better served in the SWC repo, but here's an example diff in lockfile:

Screenshot 2022-12-07 at 12 26 45 AM

What should I do?

liamross commented 1 year ago

This is still broken on 13.0.6 unfortunately

controversial commented 1 year ago

For me, this bug appeared when I had @swc/core listed as a dependency in my package.json—no matter whether or not it was used by my serverless functions, @swc/core was included in the bundle for every single serverless function, and added up to close to the 50MB limit.

I ran npm un @swc/core and redeployed my project with no other code changes, and the issue was resolved.

amosbastian commented 1 year ago

For me, this bug appeared when I had @swc/core listed as a dependency in my package.json—no matter whether or not it was used by my serverless functions, @swc/core was included in the bundle for every single serverless function, and added up to close to the 50MB limit.

I ran npm un @swc/core and redeployed my project with no other code changes, and the issue was resolved.

Unfortunately this did not fix it for me 😞

liamross commented 1 year ago

Got it working with basically the steps everyone has been saying, not sure why it was dying before but now the basic steps seem to work. Here's a summary:

NOTE: still seeing approx 20 MB increase in uncompressed sizes across my serverless functions, this update is still bad and bundling unnecessary stuff, but at least I'm taking care of the big offenders to get it back below the cutoff

1. Add NEXT_DEBUG_FUNCTION_SIZE=1 to Environment Variables, deploy 13.0.1

2. Upgrade everything from 13.0.1 to 13.0.6

3. Deploy 13.0.6 which fails, but tells you the largest files

4. Cross reference with 13.0.1 deployment to determine which are unnecessary

5. Go into /your_app/next.config.mjs or wherever it lives

6. Add the paths to config.experimental.outputFileTracingIgnores

Add the following lines or whatever yours look like:

const nextConfig = {
+ experimental: {
+   outputFileTracingIgnores: [
+     'node_modules/@swc/core-linux-x64-gnu',
+     'node_modules/@swc/core-linux-x64-musl',
+     'node_modules/esbuild-linux-64/bin', // doesn't work, can ignore
+     'node_modules/webpack/lib',          // doesn't work, can ignore
+   ],
+ },
};

Edit: I'm noticing that node_modules/esbuild-linux-64/bin and node_modules/webpack/lib are still being included which is accounting for 12 / 20 of the unaccounted for MB, if I can get those to be correctly excluded it will be close enough to the normal size that I'll be tentatively happy

amosbastian commented 1 year ago

I just tried the above 2 things after 13.0.7 was released and it seems to have fixed it for me. Not sure if anything changed or I was just doing something wrong before, but at least for me it's "fixed" 😄

liamross commented 1 year ago

I have removed the experimental section and my builds are working again, I think after 13.0.7 it is fixed (now on 13.1.0) 🥳

mwarger commented 1 year ago

I'm seeing this same behavior after upgrading to "13.1.1" within an NX monorepo. I was able to work around this by removing the @swc/core dependency.

GiancarlosIO commented 1 year ago

Just to add that this also happens when using the next-federation-plugin.

Related issue: https://github.com/module-federation/universe/issues/561

baptisteArno commented 1 year ago

Having the same issue after upgrading packages from my project (https://github.com/baptisteArno/typebot.io/commit/d2880cdf2dc44cd370d975c5dffb63121759d776)

CleanShot 2023-02-23 at 09 50 59@2x

I can see tons of unnecessary dev dependencies here: swc, esbuild, rollup, webpack, terser, uglify 🤔

baptisteArno commented 1 year ago

After running pnpm why -r @swc/core I figured it is @ladel/react that is using @vitejs/plugin-react-swc that uses @swc/core

I first tried to move @ladel/react to dev dependencies, but it didn't work, so I downgraded @ladel/react from 2.9.0 to 2.5.1

matamatanot commented 1 year ago

outputFileTracingIgnores has been moved to experimental.outputFileTracingExcludes. Please update your next.config.js file accordingly.

44605

GiancarlosIO commented 1 year ago

We have just upgraded to nextjs 13.2.4 and now we are having the same problem 😢

It's a monorepo where we have packages/ and apps/ folders. We have @swc/core installed in the root and it's used to compile our frontend libraries inside the packages/ folder.

image

And when deploying to production (using vercel deploy --prod) the total code uploaded is 1.2gb 😨 image

I have noticed that it only happens in our ci (linux), in local (macos) the problem is not present

NBruhno commented 1 year ago

We have just upgraded to nextjs 13.2.4 and now we are having the same problem 😢

I fixed my issue with the below config in next.config.js, inspired by the previously mentioned solutions. But just in case people need an example of how it looks after it was changed to outputFileTracingExcludes;

experimental: {
  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',
    ],
  },
},
outputFileTracing: true,

I struggled with this for the longest time because I had set outputFileTracing to false a long time ago, which still meant that files I didn't want were included, but I could not control it with outputFileTracingExcludes. Also worth mentioning that I'm using pnpm, so thats why the locations are prefixed with **/ as the packages are nested further down in the store.