-
Notifications
You must be signed in to change notification settings - Fork 27k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Large bundle size as of NextJS 13.0.2 due to Prisma + 2x @swc/core (musl + gnu) #42641
Comments
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?
Are you referring to an API route? Could you add one that seems to fail the build? |
I was seeing similar results on 13.0.2 Traced Next.js server files in: 18.254s
--
01:41:37.433 | Warning: Max serverless function size of 50 MB compressed or 250 MB uncompressed reached
01:41:37.433 | Serverless Function's page: api/auth/[...nextauth].js
01:41:37.450 | Large Dependencies Uncompressed size Compressed size
01:41:37.450 | node_modules/.pnpm/@[email protected][email protected] 45.7 MB 15.8 MB
01:41:37.450 | node_modules/.pnpm/@[email protected] 43.2 MB 14.4 MB
01:41:37.451 | node_modules/.pnpm/@[email protected] 42.7 MB 14.2 MB
01:41:37.451 | node_modules/.pnpm/[email protected] 8.58 MB 3.6 MB
01:41:37.451 | node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y 12.2 MB 3.12 MB
01:41:37.451 | node_modules/.pnpm/[email protected]_@[email protected] 3.93 MB 953 kB
01:41:37.451 | apps/app/.next 4.71 MB 825 kB
01:41:37.451 | node_modules/.pnpm/[email protected][email protected] 1.72 MB 415 kB
01:41:37.451 | node_modules/.pnpm/@[email protected]_etrvyeh76ry4n4cxjc37hheh7y 908 kB 321 kB
01:41:37.453 | node_modules/.pnpm/@[email protected]_rpbu45oak5njhv4mrqfytqjmse 908 kB 321 kB
01:41:37.454 | node_modules/.pnpm/[email protected] 844 kB 312 kB
01:41:37.454 | node_modules/.pnpm/[email protected] 1.18 MB 213 kB
01:41:37.454 | node_modules/.pnpm/[email protected] 962 kB 185 kB
01:41:37.454 |
01:41:37.454 | All dependencies 55 MB 56.3 MB
01:41:37.458 | Serverless Function's page: api/trpc/[trpc].js
01:41:37.467 | Large Dependencies Uncompressed size Compressed size
01:41:37.467 | node_modules/.pnpm/@[email protected][email protected] 45.7 MB 15.8 MB
01:41:37.467 | node_modules/.pnpm/@[email protected] 43.2 MB 14.4 MB
01:41:37.467 | node_modules/.pnpm/@[email protected] 42.7 MB 14.2 MB
01:41:37.467 | node_modules/.pnpm/[email protected] 8.58 MB 3.6 MB
01:41:37.467 | node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y 12.2 MB 3.12 MB
01:41:37.468 | node_modules/.pnpm/[email protected]_@[email protected] 3.93 MB 953 kB
01:41:37.468 | apps/app/.next 4.71 MB 825 kB
01:41:37.468 | node_modules/.pnpm/[email protected][email protected] 1.72 MB 415 kB
01:41:37.468 | node_modules/.pnpm/@[email protected]_etrvyeh76ry4n4cxjc37hheh7y 908 kB 321 kB
01:41:37.468 | node_modules/.pnpm/@[email protected]_rpbu45oak5njhv4mrqfytqjmse 908 kB 321 kB
01:41:37.468 | node_modules/.pnpm/[email protected] 844 kB 312 kB
01:41:37.468 | node_modules/.pnpm/[email protected] 1.18 MB 213 kB
01:41:37.469 | node_modules/.pnpm/[email protected] 962 kB 185 kB
01:41:37.469 |
01:41:37.469 | All dependencies 55.3 MB 56.3 MB
01:41:37.469 | Max serverless function size was exceeded for 2 functions
01:41:37.479 | Created all serverless functions in: 10.230s
01:41:37.490 | Collected static files (public/, static/, .next/static): 7.761ms
01:41:43.350 | Build Completed in /vercel/output [3m]
01:41:55.987 | Failed to process build result for "api/auth/[...nextauth]". Data: {"type":"Lambda"}.
01:41:55.989 | Error: The Serverless Function "api/auth/[...nextauth]" is 55.12mb which exceeds the maximum size limit of 50mb. Learn More: https://vercel.link/serverless-function-size Rolling back to 13.0.1 fixed the builds. |
@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. |
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 💚) |
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
That has a stanza that looks like
This effectively wipes out the unnecessary SWC This is super hacky and really has a ton of unintended consequences if we actually do end up needing My guess two fold:
The combination of both has pushed this beyond the allowable 50MB threshold. I've confirmed in the repro repo that both the
|
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. |
@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
Failed 13.0.2 Build
|
Add a |
@belgattitude 13.0.1 Function SizeTraced Next.js server files in: 1.545s
--
19:44:09.307 | Serverless function size info
19:44:09.308 | Serverless Function's pages: api/auth/[...nextauth].js, api/trpc/[trpc].js
19:44:09.317 | Large Dependencies Uncompressed size Compressed size
19:44:09.317 | node_modules/.pnpm/@[email protected][email protected] 45.6 MB 15.8 MB
19:44:09.317 | node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y 9.14 MB 2.46 MB
19:44:09.317 | apps/app/.next 4.78 MB 833 kB
19:44:09.317 | node_modules/.pnpm/[email protected][email protected] 1.72 MB 415 kB
19:44:09.318 | node_modules/.pnpm/@[email protected]_etrvyeh76ry4n4cxjc37hheh7y 908 kB 321 kB
19:44:09.318 | node_modules/.pnpm/@[email protected]_rpbu45oak5njhv4mrqfytqjmse 908 kB 321 kB
19:44:09.318 | node_modules/.pnpm/[email protected] 844 kB 312 kB
19:44:09.318 |
19:44:09.318 | All dependencies 56.1 MB 21.4 MB
19:44:09.321 | Created all serverless functions in: 8.526s
19:44:09.329 | Collected static files (public/, static/, .next/static): 5.551ms
19:44:10.731 | Build Completed in /vercel/output [2m]
19:44:18.699 | Generated build outputs:
19:44:18.699 | - Static files: 32
19:44:18.700 | - Serverless Functions: 2
19:44:18.700 | - Edge Functions: 0
19:44:18.701 | Serverless regions: Washington, D.C., USA
19:44:18.701 | Deployed outputs in 3s
19:44:19.603 | Build completed. Populating build cache... 13.0.3 Full build logCloning github.com/weareinreach/InReach (Branch: renovate/all-minor-patch, Commit: efc9e0b)
--
19:34:21.189 | The cli flag --force was set. Skipping build cache download.
19:34:22.700 | Cloning completed: 1.517s
19:34:22.701 | Running "npx turbo-ignore"
19:34:23.850 | npx: installed 1 in 1.083s
19:34:23.863 | ≫ Using Turborepo to determine if this project is affected by the commit...
19:34:23.863 | ≫ `TURBO_FORCE` detected, skipping check and proceeding with build.
19:34:24.481 | Running "vercel build"
19:34:24.968 | Vercel CLI 28.4.17
19:34:25.253 | Detected ENABLE_EXPERIMENTAL_COREPACK=1 and "[email protected]" in package.json
19:34:25.553 | Installing dependencies...
19:34:26.950 | Scope: all 10 workspace projects
19:34:27.221 | ../.. \| Progress: resolved 1, reused 0, downloaded 0, added 0
19:34:27.639 | ../.. \| +2270 ++++++++++++++++++++++++++++
19:34:28.228 | ../.. \| Progress: resolved 2270, reused 0, downloaded 8, added 0
19:34:28.249 | Packages are hard linked from the content-addressable store to the virtual store.
19:34:28.249 | Content-addressable store is at: /vercel/.local/share/pnpm/store/v3
19:34:28.250 | Virtual store is at: ../../node_modules/.pnpm
19:34:29.230 | ../.. \| Progress: resolved 2270, reused 0, downloaded 45, added 42
19:34:30.237 | ../.. \| Progress: resolved 2270, reused 0, downloaded 64, added 65
19:34:31.247 | ../.. \| Progress: resolved 2270, reused 0, downloaded 107, added 106
19:34:32.250 | ../.. \| Progress: resolved 2270, reused 0, downloaded 175, added 175
19:34:33.265 | ../.. \| Progress: resolved 2270, reused 0, downloaded 191, added 194
19:34:34.271 | ../.. \| Progress: resolved 2270, reused 0, downloaded 264, added 266
19:34:35.307 | ../.. \| Progress: resolved 2270, reused 0, downloaded 317, added 323
19:34:36.307 | ../.. \| Progress: resolved 2270, reused 0, downloaded 363, added 368
19:34:37.312 | ../.. \| Progress: resolved 2270, reused 0, downloaded 416, added 424
19:34:38.315 | ../.. \| Progress: resolved 2270, reused 0, downloaded 471, added 476
19:34:39.316 | ../.. \| Progress: resolved 2270, reused 0, downloaded 575, added 582
19:34:40.320 | ../.. \| Progress: resolved 2270, reused 0, downloaded 702, added 709
19:34:41.322 | ../.. \| Progress: resolved 2270, reused 0, downloaded 788, added 796
19:34:42.326 | ../.. \| Progress: resolved 2270, reused 0, downloaded 863, added 870
19:34:43.327 | ../.. \| Progress: resolved 2270, reused 0, downloaded 907, added 915
19:34:44.328 | ../.. \| Progress: resolved 2270, reused 0, downloaded 982, added 990
19:34:45.329 | ../.. \| Progress: resolved 2270, reused 0, downloaded 1076, added 1085
19:34:46.330 | ../.. \| Progress: resolved 2270, reused 0, downloaded 1246, added 1256
19:34:47.331 | ../.. \| Progress: resolved 2270, reused 0, downloaded 1326, added 1340
19:34:48.331 | ../.. \| Progress: resolved 2270, reused 0, downloaded 1409, added 1422
19:34:49.334 | ../.. \| Progress: resolved 2270, reused 0, downloaded 1458, added 1470
19:34:50.336 | ../.. \| Progress: resolved 2270, reused 0, downloaded 1538, added 1552
19:34:51.337 | ../.. \| Progress: resolved 2270, reused 0, downloaded 1620, added 1630
19:34:52.339 | ../.. \| Progress: resolved 2270, reused 0, downloaded 1736, added 1750
19:34:53.342 | ../.. \| Progress: resolved 2270, reused 0, downloaded 1810, added 1824
19:34:54.344 | ../.. \| Progress: resolved 2270, reused 0, downloaded 1842, added 1855
19:34:55.346 | ../.. \| Progress: resolved 2270, reused 0, downloaded 1888, added 1904
19:34:56.348 | ../.. \| Progress: resolved 2270, reused 0, downloaded 1937, added 1950
19:34:57.349 | ../.. \| Progress: resolved 2270, reused 0, downloaded 1999, added 2015
19:34:58.355 | ../.. \| Progress: resolved 2270, reused 0, downloaded 2062, added 2078
19:34:59.358 | ../.. \| Progress: resolved 2270, reused 0, downloaded 2152, added 2168
19:35:00.362 | ../.. \| Progress: resolved 2270, reused 0, downloaded 2210, added 2226
19:35:01.362 | ../.. \| Progress: resolved 2270, reused 0, downloaded 2244, added 2260
19:35:02.364 | ../.. \| Progress: resolved 2270, reused 0, downloaded 2248, added 2265
19:35:03.609 | ../.. \| Progress: resolved 2270, reused 0, downloaded 2249, added 2265
19:35:04.610 | ../.. \| Progress: resolved 2270, reused 0, downloaded 2251, added 2267
19:35:05.647 | ../.. \| Progress: resolved 2270, reused 0, downloaded 2253, added 2270, done
19:35:06.813 | .../node_modules/@prisma/client postinstall$ node scripts/postinstall.js
19:35:06.813 | .../node_modules/@prisma/engines postinstall$ node scripts/postinstall.js
19:35:06.814 | .../node_modules/@prisma/engines postinstall$ node download/index.js
19:35:06.902 | .../node_modules/core-js-pure postinstall$ node -e "try{require('./postinstall')}catch(e){}"
19:35:06.923 | .../[email protected]/node_modules/core-js postinstall$ node -e "try{require('./postinstall')}catch(e){}"
19:35:07.018 | .../node_modules/core-js-pure postinstall: Done
19:35:07.167 | .../[email protected]/node_modules/core-js postinstall: Done
19:35:14.888 | .../node_modules/@prisma/engines postinstall: Done
19:35:14.995 | .../node_modules/@prisma/engines postinstall: Done
19:35:15.050 | .../node_modules/@prisma/client postinstall: prisma:warn The postinstall script automatically ran `prisma generate` and did not find your `prisma/schema.prisma`.
19:35:15.050 | .../node_modules/@prisma/client postinstall: If you have a Prisma schema file in a custom path, you will need to run
19:35:15.050 | .../node_modules/@prisma/client postinstall: `prisma generate --schema=./path/to/your/schema.prisma` to generate Prisma Client.
19:35:15.051 | .../node_modules/@prisma/client postinstall: If you do not have a Prisma schema file yet, you can ignore this message.
19:35:15.094 | .../node_modules/@prisma/client postinstall: Done
19:35:16.164 | .../node_modules/@swc/core postinstall$ node postinstall.js
19:35:16.165 | .../[email protected]/node_modules/esbuild postinstall$ node install.js
19:35:16.165 | .../.pnpm/[email protected]/node_modules/turbo postinstall$ node install.js
19:35:16.165 | .../[email protected]/node_modules/esbuild postinstall$ node install.js
19:35:16.308 | .../node_modules/@swc/core postinstall: Done
19:35:16.336 | .../[email protected]/node_modules/esbuild postinstall: Done
19:35:16.342 | .../[email protected]/node_modules/prisma preinstall$ node scripts/preinstall-entry.js
19:35:16.367 | .../.pnpm/[email protected]/node_modules/turbo postinstall: Done
19:35:16.367 | .../[email protected]/node_modules/esbuild postinstall: Done
19:35:16.436 | .../[email protected]/node_modules/prisma preinstall: Done
19:35:16.436 | .../[email protected]/node_modules/prisma install$ node scripts/install-entry.js
19:35:16.555 | .../[email protected]/node_modules/prisma install: Done
19:35:16.664 | .../[email protected]/node_modules/cypress postinstall$ node index.js --exec install
19:35:16.893 | .../node_modules/@prisma/client postinstall$ node scripts/postinstall.js
19:35:17.273 | .../[email protected]/node_modules/cypress postinstall: Installing Cypress (version: 11.0.1)
19:35:17.275 | .../[email protected]/node_modules/cypress postinstall: [STARTED] Task without title.
19:35:19.135 | .../node_modules/@prisma/client postinstall: prisma:warn The postinstall script automatically ran `prisma generate` and did not find your `prisma/schema.prisma`.
19:35:19.136 | .../node_modules/@prisma/client postinstall: If you have a Prisma schema file in a custom path, you will need to run
19:35:19.136 | .../node_modules/@prisma/client postinstall: `prisma generate --schema=./path/to/your/schema.prisma` to generate Prisma Client.
19:35:19.136 | .../node_modules/@prisma/client postinstall: If you do not have a Prisma schema file yet, you can ignore this message.
19:35:19.521 | .../node_modules/@prisma/client postinstall: Done
19:35:20.508 | .../[email protected]/node_modules/cypress postinstall: [SUCCESS] Task without title.
19:35:20.509 | .../[email protected]/node_modules/cypress postinstall: [STARTED] Task without title.
19:35:26.022 | .../[email protected]/node_modules/cypress postinstall: [SUCCESS] Task without title.
19:35:26.023 | .../[email protected]/node_modules/cypress postinstall: [STARTED] Task without title.
19:35:26.046 | .../[email protected]/node_modules/cypress postinstall: [SUCCESS] Task without title.
19:35:27.049 | .../[email protected]/node_modules/cypress postinstall: You can now open Cypress by running: node_modules/.bin/cypress open
19:35:27.049 | .../[email protected]/node_modules/cypress postinstall: https://on.cypress.io/installing-cypress
19:35:27.063 | .../[email protected]/node_modules/cypress postinstall: Done
19:35:27.757 |
19:35:27.757 | dependencies:
19:35:27.757 | + @next-auth/prisma-adapter 1.0.5
19:35:27.757 | + @next/bundle-analyzer 13.0.3
19:35:27.757 | + @tanstack/react-query 4.14.6
19:35:27.758 | + @trpc/client 10.0.0-rc.7
19:35:27.758 | + @trpc/next 10.0.0-rc.7
19:35:27.758 | + @trpc/react-query 10.0.0-rc.7
19:35:27.758 | + @trpc/server 10.0.0-rc.7
19:35:27.758 | + @weareinreach/db 0.0.0 <- ../../packages/db
19:35:27.758 | + i18next 22.0.4
19:35:27.758 | + next 13.0.3
19:35:27.758 | + next-auth 4.16.4
19:35:27.758 | + next-i18next 12.1.0
19:35:27.758 | + next-transpile-modules 10.0.0
19:35:27.758 | + react 18.2.0
19:35:27.758 | + react-dom 18.2.0
19:35:27.758 | + react-i18next 12.0.0
19:35:27.758 | + superjson 1.11.0
19:35:27.758 | + zod 3.19.1
19:35:27.759 |
19:35:27.759 | devDependencies:
19:35:27.759 | + @types/node 16.18.3
19:35:27.759 | + @types/react 18.0.25
19:35:27.759 | + @types/react-dom 18.0.8
19:35:27.759 | + @typescript-eslint/eslint-plugin 5.42.1
19:35:27.759 | + @typescript-eslint/parser 5.42.1
19:35:27.759 | + @weareinreach/config 0.0.0 <- ../../packages/config
19:35:27.759 | + @weareinreach/eslint-config 0.0.0 <- ../../packages/eslint-config
19:35:27.759 | + @weareinreach/ui 0.0.0 <- ../../packages/ui
19:35:27.759 | + eslint 8.27.0
19:35:27.759 | + eslint-config-next 13.0.3
19:35:27.759 | + typescript 4.8.4
19:35:27.760 |
19:35:27.760 | ../.. postinstall$ turbo run post-install
19:35:28.190 | ../.. postinstall: • Packages in scope: @weareinreach/app, @weareinreach/aws-user-migrate, @weareinreach/config, @weareinreach/db, @weareinreach/eslint-config, @weareinreach/storybook, @weareinreach/types, @weareinreach/ui, @weareinreach/web
19:35:28.191 | ../.. postinstall: • Running post-install in 9 packages
19:35:28.191 | ../.. postinstall: • Remote caching enabled
19:35:28.191 | ../.. postinstall: Tasks: 0 successful, 0 total
19:35:28.191 | ../.. postinstall: Cached: 0 cached, 0 total
19:35:28.192 | ../.. postinstall: Time: 401ms
19:35:28.192 | ../.. postinstall: Done
19:35:28.192 | ../.. prepare$ husky install
19:35:28.266 | ../.. prepare: husky - Git hooks installed
19:35:28.269 | ../.. prepare: Done
19:35:28.271 | Done in 1m 1.7s
19:35:28.307 | Detected Next.js version: 13.0.3
19:35:28.391 | Running "cd ../.. && npx turbo run build --filter=app..."
19:35:28.925 | • Packages in scope: @weareinreach/app, @weareinreach/config, @weareinreach/db, @weareinreach/eslint-config, @weareinreach/ui
19:35:28.926 | • Running build in 5 packages
19:35:28.926 | • Remote caching enabled
19:35:28.926 | @weareinreach/db:db:generate: cache bypass, force executing 187de26749029b3e
19:35:28.927 | @weareinreach/db:clean: cache bypass, force executing ce759e1c5ef575e5
19:35:29.524 | @weareinreach/db:db:generate:
19:35:29.525 | @weareinreach/db:db:generate: > @weareinreach/[email protected] db:generate /vercel/path0/packages/db
19:35:29.525 | @weareinreach/db:db:generate: > prisma generate && pnpm format:generated
19:35:29.525 | @weareinreach/db:db:generate:
19:35:29.525 | @weareinreach/db:clean:
19:35:29.525 | @weareinreach/db:clean: > @weareinreach/[email protected] clean /vercel/path0/packages/db
19:35:29.525 | @weareinreach/db:clean: > rm -rf dist \|\| true
19:35:29.525 | @weareinreach/db:clean:
19:35:31.304 | @weareinreach/db:db:generate: Prisma schema loaded from prisma/schema.prisma
19:35:37.047 | @weareinreach/db:db:generate:
19:35:37.047 | @weareinreach/db:db:generate: ✔ Generated Prisma Client (4.6.1 \| library) to ./../../node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client in 1.96s
19:35:37.047 | @weareinreach/db:db:generate:
19:35:37.047 | @weareinreach/db:db:generate: ✔ Generated Prisma Docs Generator to ./../../docs/database in 690ms
19:35:37.048 | @weareinreach/db:db:generate:
19:35:37.048 | @weareinreach/db:db:generate: ✔ Generated Zod Schemas (0.5.4) to ./src/zod-schemas in 1.14s
19:35:37.048 | @weareinreach/db:db:generate: You can now start using Prisma Client in your code. Reference: https://pris.ly/d/client
19:35:37.048 | @weareinreach/db:db:generate: ```
19:35:37.048 | @weareinreach/db:db:generate: import { PrismaClient } from '@prisma/client'
19:35:37.048 | @weareinreach/db:db:generate: const prisma = new PrismaClient()
19:35:37.048 | @weareinreach/db:db:generate: ```
19:35:37.711 | @weareinreach/db:db:generate:
19:35:37.711 | @weareinreach/db:db:generate: > @weareinreach/[email protected] format:generated /vercel/path0/packages/db
19:35:37.711 | @weareinreach/db:db:generate: > prettier --write ./src/zod*/*
19:35:37.711 | @weareinreach/db:db:generate:
19:35:38.792 | @weareinreach/db:db:generate: src/zod-schemas/account.ts 248ms
19:35:38.858 | @weareinreach/db:db:generate: src/zod-schemas/country.ts 57ms
19:35:38.894 | @weareinreach/db:db:generate: src/zod-schemas/fieldvisibility.ts 30ms
19:35:38.943 | @weareinreach/db:db:generate: src/zod-schemas/govdist.ts 44ms
19:35:38.970 | @weareinreach/db:db:generate: src/zod-schemas/govdisttype.ts 20ms
19:35:38.986 | @weareinreach/db:db:generate: src/zod-schemas/index.ts 10ms
19:35:39.048 | @weareinreach/db:db:generate: src/zod-schemas/internalnote.ts 57ms
19:35:39.079 | @weareinreach/db:db:generate: src/zod-schemas/language.ts 23ms
19:35:39.104 | @weareinreach/db:db:generate: src/zod-schemas/navigation.ts 18ms
19:35:39.133 | @weareinreach/db:db:generate: src/zod-schemas/organization.ts 24ms
19:35:39.181 | @weareinreach/db:db:generate: src/zod-schemas/orgdescription.ts 19ms
19:35:39.190 | @weareinreach/db:db:generate: src/zod-schemas/orgemail.ts 22ms
19:35:39.223 | @weareinreach/db:db:generate: src/zod-schemas/orghours.ts 26ms
19:35:39.268 | @weareinreach/db:db:generate: src/zod-schemas/orglocation.ts 34ms
19:35:39.300 | @weareinreach/db:db:generate: src/zod-schemas/orgphone.ts 21ms
19:35:39.324 | @weareinreach/db:db:generate: src/zod-schemas/orgphoto.ts 19ms
19:35:39.352 | @weareinreach/db:db:generate: src/zod-schemas/orgreview.ts 24ms
19:35:39.381 | @weareinreach/db:db:generate: src/zod-schemas/orgservice.ts 19ms
19:35:39.406 | @weareinreach/db:db:generate: src/zod-schemas/orgsocialmedia.ts 19ms
19:35:39.426 | @weareinreach/db:db:generate: src/zod-schemas/outsideapi.ts 13ms
19:35:39.445 | @weareinreach/db:db:generate: src/zod-schemas/permissionasset.ts 14ms
19:35:39.462 | @weareinreach/db:db:generate: src/zod-schemas/permissionitem.ts 9ms
19:35:39.477 | @weareinreach/db:db:generate: src/zod-schemas/phonetype.ts 11ms
19:35:39.495 | @weareinreach/db:db:generate: src/zod-schemas/servicecategory.ts 13ms
19:35:39.521 | @weareinreach/db:db:generate: src/zod-schemas/servicetag.ts 21ms
19:35:39.540 | @weareinreach/db:db:generate: src/zod-schemas/session.ts 7ms
19:35:39.553 | @weareinreach/db:db:generate: src/zod-schemas/socialmediaservice.ts 8ms
19:35:39.565 | @weareinreach/db:db:generate: src/zod-schemas/source.ts 8ms
19:35:39.577 | @weareinreach/db:db:generate: src/zod-schemas/translation.ts 8ms
19:35:39.601 | @weareinreach/db:db:generate: src/zod-schemas/translationkey.ts 21ms
19:35:39.625 | @weareinreach/db:db:generate: src/zod-schemas/translationnamespace.ts 17ms
19:35:39.639 | @weareinreach/db:db:generate: src/zod-schemas/translationvariable.ts 8ms
19:35:39.702 | @weareinreach/db:db:generate: src/zod-schemas/user.ts 58ms
19:35:39.714 | @weareinreach/db:db:generate: src/zod-schemas/usercommunity.ts 8ms
19:35:39.728 | @weareinreach/db:db:generate: src/zod-schemas/userethnicity.ts 10ms
19:35:39.740 | @weareinreach/db:db:generate: src/zod-schemas/userimmigration.ts 7ms
19:35:39.755 | @weareinreach/db:db:generate: src/zod-schemas/userrole.ts 7ms
19:35:39.770 | @weareinreach/db:db:generate: src/zod-schemas/usersavedlist.ts 10ms
19:35:39.796 | @weareinreach/db:db:generate: src/zod-schemas/usersog.ts 21ms
19:35:39.812 | @weareinreach/db:db:generate: src/zod-schemas/usertitle.ts 11ms
19:35:39.826 | @weareinreach/db:db:generate: src/zod-schemas/usertype.ts 9ms
19:35:39.838 | @weareinreach/db:db:generate: src/zod-schemas/verificationtoken.ts 5ms
19:35:39.895 | @weareinreach/db:db:generate: src/zod-util/index.ts 52ms
19:35:39.971 | @weareinreach/app:build: cache bypass, force executing 51e01ac35614c612
19:35:40.521 | @weareinreach/app:build:
19:35:40.522 | @weareinreach/app:build: > @weareinreach/[email protected] build /vercel/path0/apps/app
19:35:40.522 | @weareinreach/app:build: > next build
19:35:40.523 | @weareinreach/app:build:
19:35:40.986 | @weareinreach/app:build: Attention: Next.js now collects completely anonymous telemetry regarding usage.
19:35:40.986 | @weareinreach/app:build: This information is used to shape Next.js' roadmap and prioritize features.
19:35:40.986 | @weareinreach/app:build: You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
19:35:40.986 | @weareinreach/app:build: https://nextjs.org/telemetry
19:35:40.986 | @weareinreach/app:build:
19:35:41.087 | @weareinreach/app:build: info - Linting and checking validity of types...
19:35:43.956 | @weareinreach/app:build:
19:35:43.956 | @weareinreach/app:build: ./src/pages/index.tsx
19:35:43.956 | @weareinreach/app:build: 8:12 Warning: disallow literal string: <title>Create T3 App</title> i18next/no-literal-string
19:35:43.956 | @weareinreach/app:build:
19:35:43.956 | @weareinreach/app:build: info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
19:35:45.648 | @weareinreach/app:build: info - Creating an optimized production build...
19:36:00.289 | @weareinreach/app:build: info - Compiled successfully
19:36:00.289 | @weareinreach/app:build: info - Collecting page data...
19:36:09.921 | @weareinreach/app:build: info - Generating static pages (0/24)
19:36:10.053 | @weareinreach/app:build: info - Generating static pages (6/24)
19:36:10.071 | @weareinreach/app:build: info - Generating static pages (12/24)
19:36:10.087 | @weareinreach/app:build: info - Generating static pages (18/24)
19:36:10.113 | @weareinreach/app:build: info - Generating static pages (24/24)
19:36:10.131 | @weareinreach/app:build: info - Finalizing page optimization...
19:36:10.136 | @weareinreach/app:build:
19:36:10.144 | @weareinreach/app:build: Route (pages) Size First Load JS
19:36:10.144 | @weareinreach/app:build: ┌ ○ / 503 B 179 kB
19:36:10.144 | @weareinreach/app:build: ├ /_app 0 B 179 kB
19:36:10.144 | @weareinreach/app:build: ├ ○ /404 215 B 179 kB
19:36:10.144 | @weareinreach/app:build: ├ λ /api/auth/[...nextauth] 0 B 179 kB
19:36:10.144 | @weareinreach/app:build: + First Load JS shared by all 179 kB
19:36:10.144 | @weareinreach/app:build: ├ chunks/framework-20996c291c2dfa29.js 45.7 kB
19:36:10.144 | @weareinreach/app:build: ├ chunks/main-ef60f45f368c058f.js 32.8 kB
19:36:10.144 | @weareinreach/app:build: ├ chunks/pages/_app-ca46fe3c4386a1eb.js 99.1 kB
19:36:10.144 | @weareinreach/app:build: └ chunks/webpack-a0deeec5c85c92d3.js 1.25 kB
19:36:10.144 | @weareinreach/app:build:
19:36:10.144 | @weareinreach/app:build: λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
19:36:10.144 | @weareinreach/app:build: ○ (Static) automatically rendered as static HTML (uses no initial props)
19:36:10.145 | @weareinreach/app:build:
19:36:10.480 |
19:36:10.480 | Tasks: 3 successful, 3 total
19:36:10.480 | Cached: 0 cached, 3 total
19:36:10.480 | Time: 41.691s
19:36:10.480 |
19:36:26.195 | Traced Next.js server files in: 15.354s
19:36:27.192 | Serverless function size info
19:36:27.192 | Serverless Function's pages: api/auth/[...nextauth].js, api/trpc/[trpc].js
19:36:27.197 | Large Dependencies Uncompressed size Compressed size
19:36:27.197 | node_modules/.pnpm/@[email protected] 43.1 MB 14.4 MB
19:36:27.197 | node_modules/.pnpm/@[email protected] 42.7 MB 14.3 MB
19:36:27.197 | node_modules/.pnpm/[email protected] 8.36 MB 3.52 MB
19:36:27.197 | node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y 8.09 MB 2.16 MB
19:36:27.197 | node_modules/.pnpm/[email protected]_@[email protected] 3.93 MB 954 kB
19:36:27.197 | apps/app/.next 3.72 MB 687 kB
19:36:27.197 | node_modules/.pnpm/[email protected][email protected] 1.72 MB 415 kB
19:36:27.197 | node_modules/.pnpm/[email protected] 1.18 MB 213 kB
19:36:27.197 | node_modules/.pnpm/[email protected] 962 kB 185 kB
19:36:27.198 |
19:36:27.198 | All dependencies 14.2 MB 38 MB
19:36:27.205 | Created all serverless functions in: 1.010s
19:36:27.213 | Collected static files (public/, static/, .next/static): 5.122ms
19:36:28.401 | Build Completed in /vercel/output [2m]
19:36:39.006 | Generated build outputs:
19:36:39.006 | - Static files: 32
19:36:39.006 | - Serverless Functions: 2
19:36:39.006 | - Edge Functions: 0
19:36:39.006 | Serverless regions: Washington, D.C., USA
19:36:39.007 | Deployed outputs in 3s
19:36:39.859 | Build completed. Populating build cache... |
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 |
Sure, here you are! It looks like only our Storybook repo is using Details❯ pnpm -r why @swc/core
Legend: production dependency, optional only, dev only
@weareinreach/[email protected] /Users/joe/GitHub/InReach/monorepo/packages/storybook
dependencies:
storybook-addon-next 1.6.10
├─┬ postcss-loader 6.2.1
│ └─┬ webpack 5.75.0 peer
│ └─┬ terser-webpack-plugin 5.3.6
│ └── @swc/core 1.3.14 peer
└─┬ sass-loader 12.6.0
└─┬ webpack 5.75.0 peer
└─┬ terser-webpack-plugin 5.3.6
└── @swc/core 1.3.14 peer
devDependencies:
@storybook/addon-essentials 6.5.13
├─┬ @storybook/addon-docs 6.5.13
│ └─┬ babel-loader 8.3.0
│ └─┬ webpack 5.75.0 peer
│ └─┬ terser-webpack-plugin 5.3.6
│ └── @swc/core 1.3.14 peer
├─┬ @storybook/builder-webpack5 6.5.13 peer
│ ├─┬ babel-loader 8.3.0
│ │ └─┬ webpack 5.75.0 peer
│ │ └─┬ terser-webpack-plugin 5.3.6
│ │ └── @swc/core 1.3.14 peer
│ ├─┬ css-loader 5.2.7
│ │ └─┬ webpack 5.75.0 peer
│ │ └─┬ terser-webpack-plugin 5.3.6
│ │ └── @swc/core 1.3.14 peer
│ ├─┬ fork-ts-checker-webpack-plugin 6.5.2
│ │ └─┬ webpack 5.75.0 peer
│ │ └─┬ terser-webpack-plugin 5.3.6
│ │ └── @swc/core 1.3.14 peer
│ ├─┬ html-webpack-plugin 5.5.0
│ │ └─┬ webpack 5.75.0 peer
│ │ └─┬ terser-webpack-plugin 5.3.6
│ │ └── @swc/core 1.3.14 peer
│ ├─┬ style-loader 2.0.0
│ │ └─┬ webpack 5.75.0 peer
│ │ └─┬ terser-webpack-plugin 5.3.6
│ │ └── @swc/core 1.3.14 peer
│ ├─┬ terser-webpack-plugin 5.3.6
│ │ └── @swc/core 1.3.14 peer
│ ├─┬ webpack 5.75.0
│ │ └─┬ terser-webpack-plugin 5.3.6
│ │ └── @swc/core 1.3.14 peer
│ └─┬ webpack-dev-middleware 4.3.0
│ └─┬ webpack 5.75.0 peer
│ └─┬ terser-webpack-plugin 5.3.6
│ └── @swc/core 1.3.14 peer
└─┬ webpack 5.75.0 peer
└─┬ terser-webpack-plugin 5.3.6
└── @swc/core 1.3.14 peer
@storybook/builder-webpack5 6.5.13
├─┬ babel-loader 8.3.0
│ └─┬ webpack 5.75.0 peer
│ └─┬ terser-webpack-plugin 5.3.6
│ └── @swc/core 1.3.14 peer
├─┬ css-loader 5.2.7
│ └─┬ webpack 5.75.0 peer
│ └─┬ terser-webpack-plugin 5.3.6
│ └── @swc/core 1.3.14 peer
├─┬ fork-ts-checker-webpack-plugin 6.5.2
│ └─┬ webpack 5.75.0 peer
│ └─┬ terser-webpack-plugin 5.3.6
│ └── @swc/core 1.3.14 peer
├─┬ html-webpack-plugin 5.5.0
│ └─┬ webpack 5.75.0 peer
│ └─┬ terser-webpack-plugin 5.3.6
│ └── @swc/core 1.3.14 peer
├─┬ style-loader 2.0.0
│ └─┬ webpack 5.75.0 peer
│ └─┬ terser-webpack-plugin 5.3.6
│ └── @swc/core 1.3.14 peer
├─┬ terser-webpack-plugin 5.3.6
│ └── @swc/core 1.3.14 peer
├─┬ webpack 5.75.0
│ └─┬ terser-webpack-plugin 5.3.6
│ └── @swc/core 1.3.14 peer
└─┬ webpack-dev-middleware 4.3.0
└─┬ webpack 5.75.0 peer
└─┬ terser-webpack-plugin 5.3.6
└── @swc/core 1.3.14 peer
@storybook/manager-webpack5 6.5.13
├─┬ @storybook/core-client 6.5.13
│ └─┬ webpack 5.75.0 peer
│ └─┬ terser-webpack-plugin 5.3.6
│ └── @swc/core 1.3.14 peer
├─┬ babel-loader 8.3.0
│ └─┬ webpack 5.75.0 peer
│ └─┬ terser-webpack-plugin 5.3.6
│ └── @swc/core 1.3.14 peer
├─┬ css-loader 5.2.7
│ └─┬ webpack 5.75.0 peer
│ └─┬ terser-webpack-plugin 5.3.6
│ └── @swc/core 1.3.14 peer
├─┬ html-webpack-plugin 5.5.0
│ └─┬ webpack 5.75.0 peer
│ └─┬ terser-webpack-plugin 5.3.6
│ └── @swc/core 1.3.14 peer
├─┬ style-loader 2.0.0
│ └─┬ webpack 5.75.0 peer
│ └─┬ terser-webpack-plugin 5.3.6
│ └── @swc/core 1.3.14 peer
├─┬ terser-webpack-plugin 5.3.6
│ └── @swc/core 1.3.14 peer
├─┬ webpack 5.75.0
│ └─┬ terser-webpack-plugin 5.3.6
│ └── @swc/core 1.3.14 peer
└─┬ webpack-dev-middleware 4.3.0
└─┬ webpack 5.75.0 peer
└─┬ terser-webpack-plugin 5.3.6
└── @swc/core 1.3.14 peer
@storybook/react 6.5.13
├─┬ @pmmmwh/react-refresh-webpack-plugin 0.5.8
│ └─┬ webpack 5.75.0 peer
│ └─┬ terser-webpack-plugin 5.3.6
│ └── @swc/core 1.3.14 peer
├─┬ @storybook/builder-webpack5 6.5.13 peer
│ ├─┬ babel-loader 8.3.0
│ │ └─┬ webpack 5.75.0 peer
│ │ └─┬ terser-webpack-plugin 5.3.6
│ │ └── @swc/core 1.3.14 peer
│ ├─┬ css-loader 5.2.7
│ │ └─┬ webpack 5.75.0 peer
│ │ └─┬ terser-webpack-plugin 5.3.6
│ │ └── @swc/core 1.3.14 peer
│ ├─┬ fork-ts-checker-webpack-plugin 6.5.2
│ │ └─┬ webpack 5.75.0 peer
│ │ └─┬ terser-webpack-plugin 5.3.6
│ │ └── @swc/core 1.3.14 peer
│ ├─┬ html-webpack-plugin 5.5.0
│ │ └─┬ webpack 5.75.0 peer
│ │ └─┬ terser-webpack-plugin 5.3.6
│ │ └── @swc/core 1.3.14 peer
│ ├─┬ style-loader 2.0.0
│ │ └─┬ webpack 5.75.0 peer
│ │ └─┬ terser-webpack-plugin 5.3.6
│ │ └── @swc/core 1.3.14 peer
│ ├─┬ terser-webpack-plugin 5.3.6
│ │ └── @swc/core 1.3.14 peer
│ ├─┬ webpack 5.75.0
│ │ └─┬ terser-webpack-plugin 5.3.6
│ │ └── @swc/core 1.3.14 peer
│ └─┬ webpack-dev-middleware 4.3.0
│ └─┬ webpack 5.75.0 peer
│ └─┬ terser-webpack-plugin 5.3.6
│ └── @swc/core 1.3.14 peer
├─┬ @storybook/core 6.5.13
│ ├─┬ @storybook/builder-webpack5 6.5.13 peer
│ │ ├─┬ babel-loader 8.3.0
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ css-loader 5.2.7
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ fork-ts-checker-webpack-plugin 6.5.2
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ html-webpack-plugin 5.5.0
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ style-loader 2.0.0
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ webpack 5.75.0
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ └─┬ webpack-dev-middleware 4.3.0
│ │ └─┬ webpack 5.75.0 peer
│ │ └─┬ terser-webpack-plugin 5.3.6
│ │ └── @swc/core 1.3.14 peer
│ ├─┬ @storybook/core-client 6.5.13
│ │ └─┬ webpack 5.75.0 peer
│ │ └─┬ terser-webpack-plugin 5.3.6
│ │ └── @swc/core 1.3.14 peer
│ ├─┬ @storybook/core-server 6.5.13
│ │ ├─┬ @storybook/builder-webpack5 6.5.13 peer
│ │ │ ├─┬ babel-loader 8.3.0
│ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ │ └── @swc/core 1.3.14 peer
│ │ │ ├─┬ css-loader 5.2.7
│ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ │ └── @swc/core 1.3.14 peer
│ │ │ ├─┬ fork-ts-checker-webpack-plugin 6.5.2
│ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ │ └── @swc/core 1.3.14 peer
│ │ │ ├─┬ html-webpack-plugin 5.5.0
│ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ │ └── @swc/core 1.3.14 peer
│ │ │ ├─┬ style-loader 2.0.0
│ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ │ └── @swc/core 1.3.14 peer
│ │ │ ├─┬ terser-webpack-plugin 5.3.6
│ │ │ │ └── @swc/core 1.3.14 peer
│ │ │ ├─┬ webpack 5.75.0
│ │ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ │ └── @swc/core 1.3.14 peer
│ │ │ └─┬ webpack-dev-middleware 4.3.0
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ └─┬ @storybook/manager-webpack5 6.5.13 peer
│ │ ├─┬ @storybook/core-client 6.5.13
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ babel-loader 8.3.0
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ css-loader 5.2.7
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ html-webpack-plugin 5.5.0
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ style-loader 2.0.0
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ webpack 5.75.0
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ └─┬ webpack-dev-middleware 4.3.0
│ │ └─┬ webpack 5.75.0 peer
│ │ └─┬ terser-webpack-plugin 5.3.6
│ │ └── @swc/core 1.3.14 peer
│ ├─┬ @storybook/manager-webpack5 6.5.13 peer
│ │ ├─┬ @storybook/core-client 6.5.13
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ babel-loader 8.3.0
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ css-loader 5.2.7
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ html-webpack-plugin 5.5.0
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ style-loader 2.0.0
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ webpack 5.75.0
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ └─┬ webpack-dev-middleware 4.3.0
│ │ └─┬ webpack 5.75.0 peer
│ │ └─┬ terser-webpack-plugin 5.3.6
│ │ └── @swc/core 1.3.14 peer
│ └─┬ webpack 5.75.0 peer
│ └─┬ terser-webpack-plugin 5.3.6
│ └── @swc/core 1.3.14 peer
├─┬ @storybook/manager-webpack5 6.5.13 peer
│ ├─┬ @storybook/core-client 6.5.13
│ │ └─┬ webpack 5.75.0 peer
│ │ └─┬ terser-webpack-plugin 5.3.6
│ │ └── @swc/core 1.3.14 peer
│ ├─┬ babel-loader 8.3.0
│ │ └─┬ webpack 5.75.0 peer
│ │ └─┬ terser-webpack-plugin 5.3.6
│ │ └── @swc/core 1.3.14 peer
│ ├─┬ css-loader 5.2.7
│ │ └─┬ webpack 5.75.0 peer
│ │ └─┬ terser-webpack-plugin 5.3.6
│ │ └── @swc/core 1.3.14 peer
│ ├─┬ html-webpack-plugin 5.5.0
│ │ └─┬ webpack 5.75.0 peer
│ │ └─┬ terser-webpack-plugin 5.3.6
│ │ └── @swc/core 1.3.14 peer
│ ├─┬ style-loader 2.0.0
│ │ └─┬ webpack 5.75.0 peer
│ │ └─┬ terser-webpack-plugin 5.3.6
│ │ └── @swc/core 1.3.14 peer
│ ├─┬ terser-webpack-plugin 5.3.6
│ │ └── @swc/core 1.3.14 peer
│ ├─┬ webpack 5.75.0
│ │ └─┬ terser-webpack-plugin 5.3.6
│ │ └── @swc/core 1.3.14 peer
│ └─┬ webpack-dev-middleware 4.3.0
│ └─┬ webpack 5.75.0 peer
│ └─┬ terser-webpack-plugin 5.3.6
│ └── @swc/core 1.3.14 peer
├─┬ @storybook/react-docgen-typescript-plugin 1.0.2-canary.6.9d540b91e815f8fc2f8829189deb00553559ff63.0
│ └─┬ webpack 5.75.0 peer
│ └─┬ terser-webpack-plugin 5.3.6
│ └── @swc/core 1.3.14 peer
└─┬ webpack 5.75.0
└─┬ terser-webpack-plugin 5.3.6
└── @swc/core 1.3.14 peer
babel-loader 9.1.0
└─┬ webpack 5.75.0 peer
└─┬ terser-webpack-plugin 5.3.6
└── @swc/core 1.3.14 peer
css-loader 6.7.1
└─┬ webpack 5.75.0 peer
└─┬ terser-webpack-plugin 5.3.6
└── @swc/core 1.3.14 peer
storybook-addon-mantine 1.2.0
├─┬ @storybook/addon-essentials 6.5.13 peer
│ ├─┬ @storybook/addon-docs 6.5.13
│ │ └─┬ babel-loader 8.3.0
│ │ └─┬ webpack 5.75.0 peer
│ │ └─┬ terser-webpack-plugin 5.3.6
│ │ └── @swc/core 1.3.14 peer
│ ├─┬ @storybook/builder-webpack5 6.5.13 peer
│ │ ├─┬ babel-loader 8.3.0
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ css-loader 5.2.7
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ fork-ts-checker-webpack-plugin 6.5.2
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ html-webpack-plugin 5.5.0
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ style-loader 2.0.0
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ webpack 5.75.0
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ └─┬ webpack-dev-middleware 4.3.0
│ │ └─┬ webpack 5.75.0 peer
│ │ └─┬ terser-webpack-plugin 5.3.6
│ │ └── @swc/core 1.3.14 peer
│ └─┬ webpack 5.75.0 peer
│ └─┬ terser-webpack-plugin 5.3.6
│ └── @swc/core 1.3.14 peer
├─┬ @storybook/react 6.5.13 peer
│ ├─┬ @pmmmwh/react-refresh-webpack-plugin 0.5.8
│ │ └─┬ webpack 5.75.0 peer
│ │ └─┬ terser-webpack-plugin 5.3.6
│ │ └── @swc/core 1.3.14 peer
│ ├─┬ @storybook/builder-webpack5 6.5.13 peer
│ │ ├─┬ babel-loader 8.3.0
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ css-loader 5.2.7
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ fork-ts-checker-webpack-plugin 6.5.2
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ html-webpack-plugin 5.5.0
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ style-loader 2.0.0
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ webpack 5.75.0
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ └─┬ webpack-dev-middleware 4.3.0
│ │ └─┬ webpack 5.75.0 peer
│ │ └─┬ terser-webpack-plugin 5.3.6
│ │ └── @swc/core 1.3.14 peer
│ ├─┬ @storybook/core 6.5.13
│ │ ├─┬ @storybook/builder-webpack5 6.5.13 peer
│ │ │ ├─┬ babel-loader 8.3.0
│ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ │ └── @swc/core 1.3.14 peer
│ │ │ ├─┬ css-loader 5.2.7
│ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ │ └── @swc/core 1.3.14 peer
│ │ │ ├─┬ fork-ts-checker-webpack-plugin 6.5.2
│ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ │ └── @swc/core 1.3.14 peer
│ │ │ ├─┬ html-webpack-plugin 5.5.0
│ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ │ └── @swc/core 1.3.14 peer
│ │ │ ├─┬ style-loader 2.0.0
│ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ │ └── @swc/core 1.3.14 peer
│ │ │ ├─┬ terser-webpack-plugin 5.3.6
│ │ │ │ └── @swc/core 1.3.14 peer
│ │ │ ├─┬ webpack 5.75.0
│ │ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ │ └── @swc/core 1.3.14 peer
│ │ │ └─┬ webpack-dev-middleware 4.3.0
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ @storybook/core-client 6.5.13
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ @storybook/core-server 6.5.13
│ │ │ ├─┬ @storybook/builder-webpack5 6.5.13 peer
│ │ │ │ ├─┬ babel-loader 8.3.0
│ │ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ │ │ └── @swc/core 1.3.14 peer
│ │ │ │ ├─┬ css-loader 5.2.7
│ │ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ │ │ └── @swc/core 1.3.14 peer
│ │ │ │ ├─┬ fork-ts-checker-webpack-plugin 6.5.2
│ │ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ │ │ └── @swc/core 1.3.14 peer
│ │ │ │ ├─┬ html-webpack-plugin 5.5.0
│ │ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ │ │ └── @swc/core 1.3.14 peer
│ │ │ │ ├─┬ style-loader 2.0.0
│ │ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ │ │ └── @swc/core 1.3.14 peer
│ │ │ │ ├─┬ terser-webpack-plugin 5.3.6
│ │ │ │ │ └── @swc/core 1.3.14 peer
│ │ │ │ ├─┬ webpack 5.75.0
│ │ │ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ │ │ └── @swc/core 1.3.14 peer
│ │ │ │ └─┬ webpack-dev-middleware 4.3.0
│ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ │ └── @swc/core 1.3.14 peer
│ │ │ └─┬ @storybook/manager-webpack5 6.5.13 peer
│ │ │ ├─┬ @storybook/core-client 6.5.13
│ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ │ └── @swc/core 1.3.14 peer
│ │ │ ├─┬ babel-loader 8.3.0
│ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ │ └── @swc/core 1.3.14 peer
│ │ │ ├─┬ css-loader 5.2.7
│ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ │ └── @swc/core 1.3.14 peer
│ │ │ ├─┬ html-webpack-plugin 5.5.0
│ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ │ └── @swc/core 1.3.14 peer
│ │ │ ├─┬ style-loader 2.0.0
│ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ │ └── @swc/core 1.3.14 peer
│ │ │ ├─┬ terser-webpack-plugin 5.3.6
│ │ │ │ └── @swc/core 1.3.14 peer
│ │ │ ├─┬ webpack 5.75.0
│ │ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ │ └── @swc/core 1.3.14 peer
│ │ │ └─┬ webpack-dev-middleware 4.3.0
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ @storybook/manager-webpack5 6.5.13 peer
│ │ │ ├─┬ @storybook/core-client 6.5.13
│ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ │ └── @swc/core 1.3.14 peer
│ │ │ ├─┬ babel-loader 8.3.0
│ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ │ └── @swc/core 1.3.14 peer
│ │ │ ├─┬ css-loader 5.2.7
│ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ │ └── @swc/core 1.3.14 peer
│ │ │ ├─┬ html-webpack-plugin 5.5.0
│ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ │ └── @swc/core 1.3.14 peer
│ │ │ ├─┬ style-loader 2.0.0
│ │ │ │ └─┬ webpack 5.75.0 peer
│ │ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ │ └── @swc/core 1.3.14 peer
│ │ │ ├─┬ terser-webpack-plugin 5.3.6
│ │ │ │ └── @swc/core 1.3.14 peer
│ │ │ ├─┬ webpack 5.75.0
│ │ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ │ └── @swc/core 1.3.14 peer
│ │ │ └─┬ webpack-dev-middleware 4.3.0
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ └─┬ webpack 5.75.0 peer
│ │ └─┬ terser-webpack-plugin 5.3.6
│ │ └── @swc/core 1.3.14 peer
│ ├─┬ @storybook/manager-webpack5 6.5.13 peer
│ │ ├─┬ @storybook/core-client 6.5.13
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ babel-loader 8.3.0
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ css-loader 5.2.7
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ html-webpack-plugin 5.5.0
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ style-loader 2.0.0
│ │ │ └─┬ webpack 5.75.0 peer
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ ├─┬ webpack 5.75.0
│ │ │ └─┬ terser-webpack-plugin 5.3.6
│ │ │ └── @swc/core 1.3.14 peer
│ │ └─┬ webpack-dev-middleware 4.3.0
│ │ └─┬ webpack 5.75.0 peer
│ │ └─┬ terser-webpack-plugin 5.3.6
│ │ └── @swc/core 1.3.14 peer
│ ├─┬ @storybook/react-docgen-typescript-plugin 1.0.2-canary.6.9d540b91e815f8fc2f8829189deb00553559ff63.0
│ │ └─┬ webpack 5.75.0 peer
│ │ └─┬ terser-webpack-plugin 5.3.6
│ │ └── @swc/core 1.3.14 peer
│ └─┬ webpack 5.75.0
│ └─┬ terser-webpack-plugin 5.3.6
│ └── @swc/core 1.3.14 peer
├─┬ babel-loader 9.1.0 peer
│ └─┬ webpack 5.75.0 peer
│ └─┬ terser-webpack-plugin 5.3.6
│ └── @swc/core 1.3.14 peer
└─┬ webpack 5.75.0 peer
└─┬ terser-webpack-plugin 5.3.6
└── @swc/core 1.3.14 peer
storybook-addon-swc 1.1.9
├── @swc/core 1.3.14
├─┬ swc-loader 0.1.16
│ ├── @swc/core 1.3.14 peer
│ └─┬ webpack 5.75.0 peer
│ └─┬ terser-webpack-plugin 5.3.6
│ └── @swc/core 1.3.14 peer
└─┬ webpack 5.75.0 peer
└─┬ terser-webpack-plugin 5.3.6
└── @swc/core 1.3.14 peer
storybook-addon-turbo-build 1.1.0
└─┬ esbuild-loader 2.20.0
└─┬ webpack 5.75.0 peer
└─┬ terser-webpack-plugin 5.3.6
└── @swc/core 1.3.14 peer
webpack 5.75.0
└─┬ terser-webpack-plugin 5.3.6
└── @swc/core 1.3.14 peer |
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: 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 |
Moving |
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 ? |
@erawk |
Here you go, @shuding . TLDR -- in versions 13.0.1
13.0.2 - exceeds threshold
13.0.3 - exceeds threshold
Each of the results above are from an uncached build. Now to track down why Thanks @belgattitude for the tip on |
@erawk Are you still using that post-build script that wipes |
@JoeKarow no, I've removed it. Though maybe the results were cached between builds. Let me re-run without a deploy cache. |
@JoeKarow 🤦 Yes, it was nuked thanks to the build cache. An uncached build exceed the threshold: 13.0.3 - uncached, exceeding threshold
|
Here's the output from `npm explain @swc/core`
|
In my case, including webpack throws this error when calling API
|
This happened to us too, after a recent storybook update, in our nx monorepo. @farreldarian's version of the workaround helped us out.
was enough |
I have the same problem, outputFileTracingExcludes fixed it for me but it seems like not a perfect solution |
To try to avoid some weird stuff getting into the bundle and exploding the lambda size limit vercel/next.js#42641
To try to avoid some weird stuff getting into the bundle and exploding the lambda size limit vercel/next.js#42641
This is happening to us too on Nextjs version log snippet
Are there any other workarounds or fixes yet? |
I had the similar problem. I changed it to make storybook work Vite. Workaround
|
I've tried the following with no success: experimental: {
serverActions: true,
outputFileTracingRoot: path.join(__dirname, '../../'),
outputFileTracingExcludes: {
"**/*": [
"../../node_modules/@swc/core-linux-x64-gnu",
"../../node_modules/@swc/core-linux-x64-musl",
"./node_modules/@swc/core-linux-x64-gnu",
"./node_modules/@swc/core-linux-x64-musl",
"/node_modules/@swc/core-linux-x64-gnu",
"/node_modules/@swc/core-linux-x64-musl",
"node_modules/@swc/core-linux-x64-gnu",
"node_modules/@swc/core-linux-x64-musl",
"**/node_modules/@swc/core-linux-x64-gnu",
"**/node_modules/@swc/core-linux-x64-musl",
"**/@swc/*",
],
},
},
full vercel log
I'm hoping this issue gets resolved quickly, but seeing as this issue has now been open for 9 months, it doesn't look very likely. |
It works with |
Hi folks Update: |
{
// rest of next.config.mjs
webpack: (config, { isServer, webpack }) => {
if (!isServer) {
config.plugins.push(new webpack.IgnorePlugin({ resourceRegExp: /prisma\/client/ }));
}
return config;
},
} ^This worked for me. Prisma client was being bundled in on the webpage. This also exposed the db schema which is not good. Confirmed this works with @next/bundle-analyzer on nextjs v14 |
I'm trying to remove dev deps from this bundle (using open-next, see opennextjs/opennextjs-aws#242): If I have outputFileTracingExcludes: {
"*": [
"node_modules/@esbuild*",
"node_modules/sass*",
]
} Then my build works okay. If I have outputFileTracingExcludes: {
"*": [
"node_modules/@esbuild*",
"node_modules/sass*",
"node_modules/webpack*",
]
} Then I get this error:
|
run cache verify solved this stubborn issue: |
Hi everyone— Due to the staleness of this issue and a variety of factors that could possibly cause this, I will be moving forward with closing this issue. If you are still experiencing a "large bundle size" issue, we encourage you to re-open via the bug report. This way, we can streamline triaging your issue with a wealth of information (e.g., One thing that can possibly be used is |
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
This is from a Vercel build. I've added the output below:
All serverless functions suffer this. Here's an example:
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):
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
andmusl
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
andmusl
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
musl
andgnu
includedNEXT-1356
The text was updated successfully, but these errors were encountered: