Vercel Deployment Fails With the Latest Update
Closed this issue · 1 comments
seriaati commented
Describe the bug
[14:00:28.750] Running build in Washington, D.C., USA (East) – iad1
[14:00:28.865] Cloning github.com/seriaati/Shiro (Branch: main, Commit: 5e5261d)
[14:00:29.565] Cloning completed: 699.154ms
[14:00:47.754] Restored build cache
[14:00:47.842] Running "vercel build"
[14:00:49.163] Vercel CLI 33.7.1
[14:00:50.662] Warning: Detected "engines": { "node": ">=18" } in your `package.json` that will automatically upgrade when a new major Node.js Version is released. Learn More: http://vercel.link/node-version
[14:00:50.690] Detected `pnpm-lock.yaml` version 6 generated by pnpm 8
[14:00:50.711] Installing dependencies...
[14:00:51.643] Lockfile is up to date, resolution step is skipped
[14:00:55.439] Progress: resolved 1, reused 0, downloaded 0, added 0
[14:00:55.591] Packages: +195 -203
[14:00:55.591] +++++++++++++++++++++++++++++++++++++++-----------------------------------------
[14:00:56.442] Progress: resolved 195, reused 0, downloaded 5, added 0
[14:00:57.443] Progress: resolved 195, reused 0, downloaded 10, added 0
[14:00:58.443] Progress: resolved 195, reused 0, downloaded 12, added 0
[14:00:59.444] Progress: resolved 195, reused 0, downloaded 15, added 0
[14:01:00.444] Progress: resolved 195, reused 0, downloaded 48, added 39
[14:01:01.451] Progress: resolved 195, reused 0, downloaded 62, added 48
[14:01:02.446] Progress: resolved 195, reused 0, downloaded 111, added 97
[14:01:03.446] Progress: resolved 195, reused 0, downloaded 130, added 113
[14:01:04.448] Progress: resolved 195, reused 0, downloaded 184, added 182
[14:01:04.956] Progress: resolved 195, reused 0, downloaded 195, added 195, done
[14:01:05.553] .../node_modules/simple-git-hooks postinstall$ node ./postinstall.js
[14:01:05.573] .../node_modules/bufferutil install$ node-gyp-build
[14:01:05.589] .../node_modules/utf-8-validate install$ node-gyp-build
[14:01:05.621] .../node_modules/simple-git-hooks postinstall: [INFO] Successfully set the pre-commit with command: pnpm exec lint-staged
[14:01:05.632] .../node_modules/simple-git-hooks postinstall: Done
[14:01:05.701] .../node_modules/bufferutil install: Done
[14:01:05.702] .../node_modules/utf-8-validate install: Done
[14:01:05.935]
[14:01:05.935] dependencies:
[14:01:05.935] - @aws-sdk/client-s3 3.537.0
[14:01:05.935] + @aws-sdk/client-s3 3.552.0
[14:01:05.935] - @clerk/nextjs 4.29.9
[14:01:05.935] + @clerk/nextjs 4.29.12
[14:01:05.935] - @excalidraw/excalidraw 0.17.3
[14:01:05.935] + @excalidraw/excalidraw 0.17.5
[14:01:05.935] - @milkdown/core 7.3.5
[14:01:05.935] + @milkdown/core 7.3.6
[14:01:05.935] - @milkdown/ctx 7.3.5
[14:01:05.935] + @milkdown/ctx 7.3.6
[14:01:05.936] - @milkdown/plugin-clipboard 7.3.5
[14:01:05.936] + @milkdown/plugin-clipboard 7.3.6
[14:01:05.936] - @milkdown/plugin-diagram 7.3.5
[14:01:05.936] + @milkdown/plugin-diagram 7.3.6
[14:01:05.936] - @milkdown/plugin-history 7.3.5
[14:01:05.936] + @milkdown/plugin-history 7.3.6
[14:01:05.936] - @milkdown/plugin-indent 7.3.5
[14:01:05.936] + @milkdown/plugin-indent 7.3.6
[14:01:05.936] - @milkdown/plugin-listener 7.3.5
[14:01:05.936] + @milkdown/plugin-listener 7.3.6
[14:01:05.936] - @milkdown/preset-commonmark 7.3.5
[14:01:05.936] + @milkdown/preset-commonmark 7.3.6
[14:01:05.936] - @milkdown/preset-gfm 7.3.5
[14:01:05.936] + @milkdown/preset-gfm 7.3.6
[14:01:05.936] - @milkdown/prose 7.3.5
[14:01:05.936] + @milkdown/prose 7.3.6
[14:01:05.937] - @milkdown/react 7.3.5
[14:01:05.937] + @milkdown/react 7.3.6
[14:01:05.937] - @milkdown/transformer 7.3.5
[14:01:05.937] + @milkdown/transformer 7.3.6
[14:01:05.937] - @milkdown/utils 7.3.5
[14:01:05.937] + @milkdown/utils 7.3.6
[14:01:05.937] - @mx-space/api-client 1.8.0-beta.1
[14:01:05.937] + @mx-space/api-client 1.11.0
[14:01:05.937] - @shikijs/transformers 1.2.0
[14:01:05.938] + @shikijs/transformers 1.3.0
[14:01:05.938] - @tanstack/query-async-storage-persister 5.28.6
[14:01:05.938] + @tanstack/query-async-storage-persister 5.29.1
[14:01:05.938] - @tanstack/react-query 5.28.6
[14:01:05.938] + @tanstack/react-query 5.29.2
[14:01:05.938] - @tanstack/react-query-devtools 5.28.6
[14:01:05.938] + @tanstack/react-query-devtools 5.29.2
[14:01:05.938] - @tanstack/react-query-persist-client 5.28.6
[14:01:05.938] + @tanstack/react-query-persist-client 5.29.2
[14:01:05.938] - @upstash/redis 1.28.4
[14:01:05.938] + @upstash/redis 1.29.0
[14:01:05.938] - @vercel/postgres 0.7.2
[14:01:05.938] + @vercel/postgres 0.8.0
[14:01:05.938] - axios 1.6.8
[14:01:05.939] + chroma-js 2.4.2
[14:01:05.939] - daisyui 4.7.3
[14:01:05.939] + daisyui 4.10.1
[14:01:05.939] - jotai 2.7.1
[14:01:05.939] + jotai 2.8.0
[14:01:05.939] - markdown-to-jsx 7.2.1-beta.4
[14:01:05.939] + markdown-to-jsx <- @innei/markdown-to-jsx 7.2.1-beta.6
[14:01:05.939] - nanoid 5.0.6
[14:01:05.940] + nanoid 5.0.7
[14:01:05.940] - next 14.1.4
[14:01:05.940] + next 14.2.1
[14:01:05.940] + next-runtime-env 3.2.1
[14:01:05.940] - next-themes 0.2.1
[14:01:05.940] + next-themes 0.3.0
[14:01:05.941] + ofetch 1.3.4
[14:01:05.941] - openai 4.29.2
[14:01:05.941] + openai 4.33.1
[14:01:05.941] - react-intersection-observer 9.8.1
[14:01:05.941] + react-intersection-observer 9.8.2
[14:01:05.941] - react-tweet 3.2.0
[14:01:05.941] + react-tweet 3.2.1
[14:01:05.941] - react-wrap-balancer 1.1.0
[14:01:05.941]
[14:01:05.941] devDependencies:
[14:01:05.941] - @iconify-json/material-symbols 1.1.75
[14:01:05.941] + @iconify-json/material-symbols 1.1.78
[14:01:05.941] - @iconify-json/mingcute 1.1.16
[14:01:05.941] + @iconify-json/mingcute 1.1.17
[14:01:05.942] - @tailwindcss/typography 0.5.10
[14:01:05.942] + @tailwindcss/typography 0.5.12
[14:01:05.942] + @types/chroma-js 2.4.4
[14:01:05.942] - @types/node 20.11.30
[14:01:05.942] + @types/node 20.12.7
[14:01:05.942] - @types/react 18.2.67
[14:01:05.942] + @types/react 18.2.78
[14:01:05.942] - @types/react-dom 18.2.22
[14:01:05.942] + @types/react-dom 18.2.25
[14:01:05.942] + postcss-js 4.0.1
[14:01:05.942] - postcss-preset-env 9.5.2
[14:01:05.942] + postcss-preset-env 9.5.5
[14:01:05.942] - shiki 1.2.0
[14:01:05.942] + shiki 1.3.0
[14:01:05.942] - simple-git-hooks 2.11.0
[14:01:05.942] + simple-git-hooks 2.11.1
[14:01:05.942] - tailwindcss 3.4.1
[14:01:05.942] + tailwindcss 3.4.3
[14:01:05.942] + tailwindcss-animated 1.0.1
[14:01:05.942] - typescript 5.4.3
[14:01:05.942] + typescript 5.4.5
[14:01:05.942] - zx 7.2.3
[14:01:05.942] + zx 8.0.1
[14:01:05.942]
[14:01:05.984]
[14:01:05.984] > Shiro@1.1.0 prepare /vercel/path0
[14:01:05.984] > pnpm exec simple-git-hooks && test -f .env || cp .env.template .env
[14:01:05.984]
[14:01:06.559] [INFO] Successfully set the pre-commit with command: pnpm exec lint-staged
[14:01:06.560] [INFO] Successfully set all git hooks
[14:01:06.578] Done in 15.8s
[14:01:06.631] Detected Next.js version: 14.2.1
[14:01:06.678] Running "pnpm run build"
[14:01:07.191]
[14:01:07.191] > Shiro@1.1.0 build /vercel/path0
[14:01:07.191] > cross-env NODE_ENV=production NODE_OPTIONS=--max_old_space_size=4096 next build
[14:01:07.191]
[14:01:10.064] VERCEL_GIT_PROVIDER github Shiro seriaati
[14:01:10.084] (node:328) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
[14:01:10.084] (Use `node --trace-warnings ...` to show where the warning was created)
[14:01:10.169] ▲ Next.js 14.2.1
[14:01:10.169] - Environments: .env
[14:01:10.169] - Experiments (use with caution):
[14:01:10.169] · webpackBuildWorker
[14:01:10.169]
[14:01:10.250] Creating an optimized production build ...
[14:01:10.804] (node:348) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
[14:01:10.804] (Use `node --trace-warnings ...` to show where the warning was created)
[14:01:10.809] VERCEL_GIT_PROVIDER github Shiro seriaati
[14:01:59.033] (node:554) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
[14:01:59.033] (Use `node --trace-warnings ...` to show where the warning was created)
[14:01:59.038] VERCEL_GIT_PROVIDER github Shiro seriaati
[14:02:04.570] (node:593) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
[14:02:04.570] (Use `node --trace-warnings ...` to show where the warning was created)
[14:02:04.575] VERCEL_GIT_PROVIDER github Shiro seriaati
[14:02:47.910] ⚠ Compiled with warnings
[14:02:47.910]
[14:02:47.910] ./src/components/ui/code-highlighter/shiki/Shiki.tsx
[14:02:47.910] The generated code contains 'async/await' because this module is using "topLevelAwait".
[14:02:47.910] However, your target environment does not appear to support 'async/await'.
[14:02:47.910] As a result, the code may not run as expected or may cause runtime errors.
[14:02:47.910]
[14:02:47.910] Import trace for requested module:
[14:02:47.910] ./src/components/ui/code-highlighter/shiki/Shiki.tsx
[14:02:47.910] ./src/components/modules/shared/CodeBlock.tsx
[14:02:47.910] ./src/components/ui/markdown/Markdown.tsx
[14:02:47.910] ./src/components/ui/markdown/index.ts
[14:02:47.910] ./src/app/(app)/thinking/page.tsx
[14:02:47.910]
[14:02:48.225] ✓ Compiled successfully
[14:02:48.227] Linting and checking validity of types ...
[14:02:50.274]
[14:02:50.274] ⚠ The Next.js plugin was not detected in your ESLint configuration. See https://nextjs.org/docs/basic-features/eslint#migrating-existing-config
[14:02:50.349] Warning: React version not specified in eslint-plugin-react settings. See https://github.com/jsx-eslint/eslint-plugin-react#configuration .
[14:03:20.324]
[14:03:20.324] Failed to compile.
[14:03:20.324]
[14:03:20.324] ./src/app/(app)/(home)/components/ActivityPostList.tsx
[14:03:20.325] 61:27 Warning: 'i' is defined but never used. Allowed unused args must match /^_/u. unused-imports/no-unused-vars
[14:03:20.325]
[14:03:20.325] ./src/app/(app)/(page-detail)/[slug]/pageExtra.tsx
[14:03:20.325] 92:6 Warning: React Hook useEffect has a missing dependency: 'setHeaderMetaInfo'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.325]
[14:03:20.325] ./src/app/(app)/error.tsx
[14:03:20.325] 11:26 Warning: 'reset' is defined but never used. Allowed unused args must match /^_/u. unused-imports/no-unused-vars
[14:03:20.325]
[14:03:20.325] ./src/app/(app)/friends/layout.tsx
[14:03:20.325] 9:16 Warning: Component definition is missing display name react/display-name
[14:03:20.325]
[14:03:20.325] ./src/app/(app)/notes/[id]/pageExtra.tsx
[14:03:20.325] 134:6 Warning: React Hook useEffect has a missing dependency: 'setHeaderMetaInfo'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.325]
[14:03:20.325] ./src/app/(app)/notes/layout.tsx
[14:03:20.325] 7:16 Warning: Component definition is missing display name react/display-name
[14:03:20.325]
[14:03:20.325] ./src/app/(app)/notes/redirect.tsx
[14:03:20.325] 18:6 Warning: React Hook useLayoutEffect has a missing dependency: 'router'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.325]
[14:03:20.325] ./src/app/(app)/posts/(post-detail)/[category]/[slug]/pageExtra.tsx
[14:03:20.325] 74:6 Warning: React Hook useEffect has a missing dependency: 'setHeaderMetaInfo'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.325]
[14:03:20.325] ./src/app/(app)/posts/(post-detail)/layout.tsx
[14:03:20.325] 5:16 Warning: Component definition is missing display name react/display-name
[14:03:20.325]
[14:03:20.325] ./src/app/(app)/posts/page.tsx
[14:03:20.325] 42:11 Warning: 'currentPage' is assigned a value but never used. Allowed unused vars must match /^_/u. unused-imports/no-unused-vars
[14:03:20.325]
[14:03:20.325] ./src/app/(app)/projects/[id]/page.tsx
[14:03:20.325] 27:6 Warning: React Hook useEffect has a missing dependency: 'router'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.325]
[14:03:20.325] ./src/app/(app)/thinking/page.tsx
[14:03:20.325] 186:6 Warning: React Hook useEffect has missing dependencies: 'animate' and 'getPrevData'. Either include them or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.325]
[14:03:20.325] ./src/app/(app)/timeline/layout.tsx
[14:03:20.325] 18:16 Warning: Component definition is missing display name react/display-name
[14:03:20.325]
[14:03:20.325] ./src/app/(app)/timeline/page.tsx
[14:03:20.325] 105:6 Warning: React Hook useEffect has a missing dependency: 'refetch'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.325]
[14:03:20.325] ./src/app/(dashboard)/dashboard/comments/page.tsx
[14:03:20.325] 108:6 Warning: React Hook useEffect has a missing dependency: 'setSelectionKeys'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.326]
[14:03:20.326] ./src/app/(dashboard)/routes.tsx
[14:03:20.326] 127:5 Warning: 'k' is defined but never used. Allowed unused args must match /^_/u. unused-imports/no-unused-vars
[14:03:20.326]
[14:03:20.326] ./src/app/global-error.tsx
[14:03:20.326] 13:3 Warning: 'reset' is defined but never used. Allowed unused args must match /^_/u. unused-imports/no-unused-vars
[14:03:20.326]
[14:03:20.326] ./src/atoms/hooks/viewport.ts
[14:03:20.326] 16:55 Warning: React Hook useCallback has a missing dependency: 'selector'. Either include it or remove the dependency array. If 'selector' changes too often, find the parent component that defines it and wrap that definition in useCallback. react-hooks/exhaustive-deps
[14:03:20.326]
[14:03:20.326] ./src/components/common/SyncServerTime.tsx
[14:03:20.326] 84:6 Warning: React Hook useEffect has a missing dependency: 'setServerTime'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.326]
[14:03:20.326] ./src/components/layout/dashboard/Header.tsx
[14:03:20.326] 138:6 Warning: React Hook useCallback has a missing dependency: 'setHeaderDrawer'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.326]
[14:03:20.326] ./src/components/layout/dashboard/Kbar.tsx
[14:03:20.326] 145:17 Warning: Classname 'bg-opacity-10' should be replaced by an opacity suffix (eg. '/10') tailwindcss/migration-from-tailwind-2
[14:03:20.327]
[14:03:20.327] ./src/components/layout/footer/FooterInfo.tsx
[14:03:20.327] 6:10 Error: 'SubscribeTextButton' is defined but never used. unused-imports/no-unused-imports
[14:03:20.327]
[14:03:20.327] ./src/components/layout/header/hooks.ts
[14:03:20.327] 17:6 Warning: React Hook useEffect has a missing dependency: 'setter'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.327]
[14:03:20.327] ./src/components/modules/activity/Presence.tsx
[14:03:20.327] 85:18 Warning: React Hook useCallback received a function whose dependencies are unknown. Pass an inline function instead. react-hooks/exhaustive-deps
[14:03:20.327]
[14:03:20.327] ./src/components/modules/comment/CommentBox/UniversalTextArea.tsx
[14:03:20.327] 51:6 Warning: React Hook useCallback has a missing dependency: 'setter'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.327]
[14:03:20.327] ./src/components/modules/dashboard/writing/BaseWritingProvider.tsx
[14:03:20.327] 54:9 Warning: 'type' is defined but never used. Allowed unused args must match /^_/u. unused-imports/no-unused-vars
[14:03:20.327] 54:32 Warning: 'id' is defined but never used. Allowed unused args must match /^_/u. unused-imports/no-unused-vars
[14:03:20.327] 131:6 Warning: React Hook useEffect has missing dependencies: 'editingData' and 'setEditingData'. Either include them or remove the dependency array. If 'setEditingData' changes too often, find the parent component that defines it and wrap that definition in useCallback. react-hooks/exhaustive-deps
[14:03:20.328]
[14:03:20.328] ./src/components/modules/dashboard/writing/CardMasonry.tsx
[14:03:20.328] 53:49 Warning: 'children' is assigned a value but never used. Allowed unused vars must match /^_/u. unused-imports/no-unused-vars
[14:03:20.328] 72:22 Warning: Invalid Tailwind CSS classnames order tailwindcss/classnames-order
[14:03:20.328]
[14:03:20.328] ./src/components/modules/dashboard/writing/ImageDetailSection.tsx
[14:03:20.328] 106:6 Warning: React Hook useMemo has missing dependencies: 'fromText' and 'text'. Either include them or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.328] 106:44 Warning: React Hook useMemo has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked. react-hooks/exhaustive-deps
[14:03:20.328] 298:17 Warning: 'onChange' is defined but never used. Allowed unused args must match /^_/u. unused-imports/no-unused-vars
[14:03:20.328]
[14:03:20.328] ./src/components/modules/dashboard/writing/SidebarBase.tsx
[14:03:20.328] 13:18 Warning: Invalid Tailwind CSS classnames order tailwindcss/classnames-order
[14:03:20.328]
[14:03:20.328] ./src/components/modules/dashboard/writing/SidebarDateInputField.tsx
[14:03:20.328] 11:9 Warning: 'label' is defined but never used. Allowed unused args must match /^_/u. unused-imports/no-unused-vars
[14:03:20.328] 16:17 Warning: 'setReset' is assigned a value but never used. Allowed unused vars must match /^_/u. unused-imports/no-unused-vars
[14:03:20.328]
[14:03:20.328] ./src/components/modules/note/NoteMainContainer.tsx
[14:03:20.328] 28:6 Warning: React Hook useEffect has a missing dependency: 'setHeight'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.328]
[14:03:20.328] ./src/components/modules/peek/PeekModal.tsx
[14:03:20.328] 18:10 Warning: Invalid Tailwind CSS classnames order tailwindcss/classnames-order
[14:03:20.328]
[14:03:20.328] ./src/components/modules/post/fab/PostTagsFAB.tsx
[14:03:20.328] 49:6 Warning: React Hook useCallback has a missing dependency: 'present'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.328]
[14:03:20.328] ./src/components/modules/post/fab/PostsSortingFab.tsx
[14:03:20.328] 107:16 Warning: React Hook useCallback has missing dependencies: 'handleChange' and 'setSortBy'. Either include them or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.328] 125:16 Warning: React Hook useCallback has missing dependencies: 'handleChange' and 'setOrderBy'. Either include them or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.329]
[14:03:20.329] ./src/components/modules/shared/SearchFAB.tsx
[14:03:20.329] 167:8 Warning: React Hook useCallback has a missing dependency: 'setCurrentSelect'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.329] 210:5 Warning: React Hook useCallback has a missing dependency: 'setCurrentSelect'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.329]
[14:03:20.329] ./src/components/modules/subscribe/SubscribeModal.tsx
[14:03:20.329] 86:6 Warning: React Hook useEffect has missing dependencies: 'defaultTypes', 'dispatch', and 'stateRef'. Either include them or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.329]
[14:03:20.329] ./src/components/modules/timeline/TimelineProgress.tsx
[14:03:20.329] 45:6 Warning: React Hook useEffect has a missing dependency: 'updatePercent'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.329]
[14:03:20.329] ./src/components/modules/toc/TocAside.tsx
[14:03:20.329] 55:8 Warning: React Hook useEffect has a missing dependency: 'forceUpdate'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.329] 75:8 Warning: React Hook useMemo has an unnecessary dependency: 'updated'. Either exclude it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.329]
[14:03:20.329] ./src/components/modules/toc/TocFAB.tsx
[14:03:20.329] 45:6 Warning: React Hook useCallback has a missing dependency: 'present'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.329]
[14:03:20.329] ./src/components/modules/toc/TocItem.tsx
[14:03:20.329] 45:6 Warning: React Hook useEffect has a missing dependency: 'active'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.329]
[14:03:20.329] ./src/components/modules/toc/TocTree.tsx
[14:03:20.329] 50:6 Warning: React Hook useEffect has a missing dependency: 'setActiveId'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.329] 127:5 Warning: React Hook useCallback has missing dependencies: 'onItemClick', 'scrollInNextTick', 'setActiveId', and 'tocRef'. Either include them or remove the dependency array. If 'onItemClick' changes too often, find the parent component that defines it and wrap that definition in useCallback. react-hooks/exhaustive-deps
[14:03:20.329]
[14:03:20.329] ./src/components/ui/auto-completion/AutoCompletion.tsx
[14:03:20.330] 77:8 Warning: React Hook useEffect has a missing dependency: 'doFilter'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.330]
[14:03:20.330] ./src/components/ui/banner/Banner.tsx
[14:03:20.330] 54:18 Warning: Classname 'dark:bg-opacity-10' should be replaced by an opacity suffix (eg. '/10') tailwindcss/migration-from-tailwind-2
[14:03:20.330]
[14:03:20.330] ./src/components/ui/editor/Milkdown/plugins/Alert.tsx
[14:03:20.330] 147:11 Warning: 'contentRef' is assigned a value but never used. Allowed unused vars must match /^_/u. unused-imports/no-unused-vars
[14:03:20.330] 147:23 Warning: 'setAttrs' is assigned a value but never used. Allowed unused vars must match /^_/u. unused-imports/no-unused-vars
[14:03:20.330] 147:39 Warning: 'selected' is assigned a value but never used. Allowed unused vars must match /^_/u. unused-imports/no-unused-vars
[14:03:20.330]
[14:03:20.330] ./src/components/ui/editor/Milkdown/plugins/Excalidraw.tsx
[14:03:20.330] 187:6 Warning: React Hook useEffect has a missing dependency: 'forceUpdate'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.330]
[14:03:20.330] ./src/components/ui/editor/Milkdown/plugins/Image.tsx
[14:03:20.330] 186:6 Warning: React Hook useCallback has a missing dependency: 'setValue'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.330]
[14:03:20.330] ./src/components/ui/editor/Milkdown/plugins/Mermaid.tsx
[14:03:20.330] 85:6 Warning: React Hook useEffect has missing dependencies: 'autoOpen', 'handleEdit', and 'setAttrs'. Either include them or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.330]
[14:03:20.330] ./src/components/ui/excalidraw/Excalidraw.tsx
[14:03:20.330] 153:8 Warning: React Hook useMemo has a missing dependency: 'patchDiffDelta'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.330]
[14:03:20.330] ./src/components/ui/float-popover/FloatPopover.tsx
[14:03:20.330] 88:5 Warning: 'animate' is assigned a value but never used. Allowed unused vars must match /^_/u. unused-imports/no-unused-vars
[14:03:20.330] 207:6 Warning: React Hook useEffect has missing dependencies: 'refs.floating' and 'type'. Either include them or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.330] 215:6 Warning: React Hook useEffect has missing dependencies: 'onClose' and 'onOpen'. Either include them or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.330]
[14:03:20.330] ./src/components/ui/form/Form.tsx
[14:03:20.331] 125:5 Warning: React Hook useCallback has a missing dependency: 'fieldsAtom'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.331]
[14:03:20.331] ./src/components/ui/input/AdvancedInput.tsx
[14:03:20.331] 72:45 Warning: 'labelClassName' is assigned a value but never used. Allowed unused vars must match /^_/u. unused-imports/no-unused-vars
[14:03:20.331]
[14:03:20.331] ./src/components/ui/link/MLink.tsx
[14:03:20.331] 15:37 Warning: 'text' is defined but never used. Allowed unused args must match /^_/u. unused-imports/no-unused-vars
[14:03:20.331]
[14:03:20.331] ./src/components/ui/link-card/LinkCard.tsx
[14:03:20.331] 80:5 Warning: React Hook useCallback has a missing dependency: 'peek'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.331] 109:5 Warning: React Hook useMemo has a missing dependency: 'validTypeAndFetchFunction'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.331]
[14:03:20.331] ./src/components/ui/markdown/renderers/tabs.tsx
[14:03:20.331] 33:6 Warning: React Hook useEffect has missing dependencies: 'activeTab' and 'tabs'. Either include them or remove the dependency array. You can also replace multiple useState variables with useReducer if 'setActiveTab' needs the current value of 'tabs'. react-hooks/exhaustive-deps
[14:03:20.331]
[14:03:20.331] ./src/components/ui/masonry/Masonry.tsx
[14:03:20.331] 43:6 Warning: React Hook useEffect has a missing dependency: 'Component'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.331]
[14:03:20.331] ./src/components/ui/modal/stacked/helper.tsx
[14:03:20.331] 6:10 Warning: Component definition is missing display name react/display-name
[14:03:20.331]
[14:03:20.331] ./src/components/ui/modal/stacked/modal.tsx
[14:03:20.331] 109:6 Warning: React Hook useCallback has a missing dependency: 'isUnmounted'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.331]
[14:03:20.331] ./src/components/ui/modal/stacked/provider.tsx
[14:03:20.331] 48:7 Warning: React Hook useCallback has a missing dependency: 'wrapper'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.331]
[14:03:20.331] ./src/components/ui/number-transition/CountUp.tsx
[14:03:20.332] 22:6 Warning: React Hook useEffect has a missing dependency: 'initialNumberRef'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.332]
[14:03:20.332] ./src/components/ui/text/FlexText.tsx
[14:03:20.332] 31:6 Warning: React Hook useEffect has a missing dependency: 'props.text.length'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.332]
[14:03:20.332] ./src/components/ui/transition/IconTransition.tsx
[14:03:20.332] 31:6 Warning: React Hook useEffect has missing dependencies: 'controls' and 'map'. Either include them or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.332]
[14:03:20.332] ./src/components/ui/typography/AdjustableText.tsx
[14:03:20.332] 43:6 Warning: React Hook useEffect has missing dependencies: 'padding' and 'scale'. Either include them or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.332]
[14:03:20.332] ./src/components/ui/typography/EllipsisWithTooltip.tsx
[14:03:20.332] 35:6 Warning: React Hook useEffect has a missing dependency: 'judgment'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.332] 47:6 Warning: React Hook useEffect has a missing dependency: 'judgment'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.332]
[14:03:20.332] ./src/hooks/biz/use-ack-read-count.ts
[14:03:20.332] 14:6 Warning: React Hook useEffect has missing dependencies: 'id' and 'type'. Either include them or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.332]
[14:03:20.332] ./src/hooks/biz/use-query-pager.ts
[14:03:20.332] 44:13 Warning: Empty block statement. no-empty
[14:03:20.332] 49:6 Warning: React Hook useEffect has missing dependencies: 'pathname' and 'router'. Either include them or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.332]
[14:03:20.332] ./src/hooks/biz/use-save-confirm.ts
[14:03:20.332] 36:6 Warning: React Hook useEffect has missing dependencies: 'beforeUnloadHandler' and 'enable'. Either include them or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.332] 38:11 Warning: 'present' is assigned a value but never used. Allowed unused vars must match /^_/u. unused-imports/no-unused-vars
[14:03:20.332]
[14:03:20.332] ./src/hooks/common/use-before-unload.ts
[14:03:20.333] 123:6 Warning: React Hook useEffect has a missing dependency: 'router'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.333]
[14:03:20.333] ./src/hooks/common/use-single-double-click.ts
[14:03:20.333] 22:6 Warning: React Hook useEffect has a missing dependency: 'delay'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.333]
[14:03:20.333] ./src/hooks/common/use-uncontrolled-input.ts
[14:03:20.333] 14:6 Warning: React Hook useLayoutEffect has a missing dependency: 'initialValue'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.333]
[14:03:20.333] ./src/lib/cache.ts
[14:03:20.333] 82:11 Warning: Empty block statement. no-empty
[14:03:20.333]
[14:03:20.333] ./src/lib/define-metadata.ts
[14:03:20.333] 25:53 Warning: 'err' is defined but never used. Allowed unused args must match /^_/u. unused-imports/no-unused-vars
[14:03:20.333]
[14:03:20.333] ./src/middleware.ts
[14:03:20.333] 56:11 Warning: 'country' is assigned a value but never used. Allowed unused vars must match /^_/u. unused-imports/no-unused-vars
[14:03:20.333]
[14:03:20.333] ./src/providers/article/MarkdownImageRecordProvider.tsx
[14:03:20.333] 18:6 Warning: React Hook useEffect has a missing dependency: 'atomRef'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.333]
[14:03:20.333] ./src/providers/note/CurrentNoteIdProvider.tsx
[14:03:20.333] 24:6 Warning: React Hook useEffect has a missing dependency: 'setNoteId'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.334]
[14:03:20.334] ./src/providers/root/aggregation-data-provider.tsx
[14:03:20.334] 74:9 Warning: React Hook useCallback was passed a dependency list that is not an array literal. This means we can't statically verify whether you've passed the correct dependencies. react-hooks/exhaustive-deps
[14:03:20.334] 74:9 Warning: React Hook useCallback has a missing dependency: 'selector'. Either include it or remove the dependency array. If 'selector' changes too often, find the parent component that defines it and wrap that definition in useCallback. react-hooks/exhaustive-deps
[14:03:20.334] 89:9 Warning: React Hook useCallback was passed a dependency list that is not an array literal. This means we can't statically verify whether you've passed the correct dependencies. react-hooks/exhaustive-deps
[14:03:20.334] 89:9 Warning: React Hook useCallback has a missing dependency: 'selector'. Either include it or remove the dependency array. If 'selector' changes too often, find the parent component that defines it and wrap that definition in useCallback. react-hooks/exhaustive-deps
[14:03:20.334]
[14:03:20.334] ./src/providers/root/socket-provider.tsx
[14:03:20.334] 30:6 Warning: React Hook useEffect has a missing dependency: 'router'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.334]
[14:03:20.334] ./src/providers/shared/LayoutRightSideProvider.tsx
[14:03:20.335] 19:6 Warning: React Hook useLayoutEffect has a missing dependency: 'setElement'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.335]
[14:03:20.335] ./src/providers/shared/WrappedElementProvider.tsx
[14:03:20.335] 141:6 Warning: React Hook useEffect has missing dependencies: 'getDir' and 'setter'. Either include them or remove the dependency array. react-hooks/exhaustive-deps
[14:03:20.335]
[14:03:20.335] info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
[14:03:20.346] ELIFECYCLE Command failed with exit code 1.
[14:03:20.363] Error: Command "pnpm run build" exited with 1
[14:03:21.179]
Reproduction
I merged upstream/main into my fork and the deployment fails. I don't have sufficient knowledge in JS/TS to understand what caused the deployment to fail, but I will try my best to provide as much information as possible to help the debugging process.
System Info
Vercel is using Node.js version 18.x
Used Package Manager
pnpm
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- The provided reproduction is a minimal reproducible of the bug.
Innei commented
Fixed in the latest commit