Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] 本地yarn dev可以运行,yarn build报错 #5943

Open
2936401755 opened this issue Dec 17, 2024 · 3 comments
Open

[Bug] 本地yarn dev可以运行,yarn build报错 #5943

2936401755 opened this issue Dec 17, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@2936401755
Copy link

📦 部署方式

官方安装包

📌 软件版本

2.15.8

💻 系统环境

Windows

📌 系统版本

Win10

🌐 浏览器

Edge

📌 浏览器版本

最新

🐛 问题描述

本地运行yarn dev时可以运行,运行yarn build就报错了,日志如下:
G:\code\ChatGPT-Next-Web>yarn build
yarn run v1.22.19
$ yarn mask && cross-env BUILD_MODE=standalone next build
$ npx tsx app/masks/build.ts
npm notice
npm notice New major version of npm available! 10.8.2 -> 11.0.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.0.0
npm notice To update run: npm install -g [email protected]
npm notice
[Next] build mode standalone
[Next] build with chunk: true
▲ Next.js 14.2.20

  • Environments: .env
  • Experiments (use with caution):
    · forceSwcTransforms

Creating an optimized production build ...
[webpack.cache.PackFileCacheStrategy] Skipped not serializable cache item 'Compilation/modules|javascript/auto|G:\code\ChatGPT-Next-Web\node_modules\next\dist\build\webpack\loaders\next-flight-css-loader.js??ruleSet[1].rules[14].oneOf[9].use[0]!G:\code\ChatGPT-Next-Web\node_modules\next\dist\build\webpack\loaders\css-loader\src\index.js??ruleSet[1].rules[14].oneOf[9].use[1]!G:\code\ChatGPT-Next-Web\node_modules\next\dist\build\webpack\loaders\postcss-loader\src\index.js??ruleSet[1].rules[14].oneOf[9].use[2]!G:\code\ChatGPT-Next-Web\node_modules\next\dist\build\webpack\loaders\resolve-url-loader\index.js??ruleSet[1].rules[14].oneOf[9].use[3]!G:\code\ChatGPT-Next-Web\node_modules\next\dist\compiled\sass-loader\cjs.js??ruleSet[1].rules[14].oneOf[9].use[4]!G:\code\ChatGPT-Next-Web\app\components\chat.module.scss|ssr': No serializer registered for Warning
while serializing webpack/lib/cache/PackFileCacheStrategy.PackContentItems -> webpack/lib/NormalModule -> Array { 1 items } -> webpack/lib/ModuleWarning -> Warning
⚠ Compiled with warnings

./node_modules/rt-client/dist/esm/index.js
Module not found: Can't resolve 'bufferutil' in 'G:\code\ChatGPT-Next-Web\node_modules\rt-client\dist\esm'

Import trace for requested module:
./node_modules/rt-client/dist/esm/index.js
./app/components/realtime-chat/realtime-chat.tsx
./app/components/realtime-chat/index.ts
./app/components/chat.tsx
./app/components/home.tsx

./node_modules/rt-client/dist/esm/index.js
Module not found: Can't resolve 'utf-8-validate' in 'G:\code\ChatGPT-Next-Web\node_modules\rt-client\dist\esm'

Import trace for requested module:
./node_modules/rt-client/dist/esm/index.js
./app/components/realtime-chat/realtime-chat.tsx
./app/components/realtime-chat/index.ts
./app/components/chat.tsx
./app/components/home.tsx

./app/components/chat.module.scss
Warning

(1:6647) autoprefixer: end value has mixed support, consider using flex-end instead

Import trace for requested module:
./app/components/chat.module.scss
./app/components/mask.tsx
./app/components/home.tsx

Failed to compile.

./app/components/chat.tsx
556:6 Warning: React Hook useEffect has a missing dependency: 'props'. Either include it or remove the dependency array. However, 'props' will change when any prop changes, so the preferred fix is to destructure the 'props' object outside of the useEffect call and refer to those specific props inside useEffect. react-hooks/exhaustive-deps
944:21 Error: React Hook "useChatStore" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
946:18 Error: React Hook "useAppConfig" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
950:39 Error: React Hook "useState" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
952:20 Error: React Hook "useRef" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
953:37 Error: React Hook "useState" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
954:37 Error: React Hook "useState" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
955:39 Error: React Hook "useSubmitHandler" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
956:21 Error: React Hook "useRef" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
963:27 Error: React Hook "useMemo" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
972:6 Warning: React Hook useMemo has an unnecessary dependency: 'scrollRef.current.scrollHeight'. Either exclude it or remove the dependency array. react-hooks/exhaustive-deps
978:48 Error: React Hook "useScrollToBottom" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
982:37 Error: React Hook "useState" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
983:26 Error: React Hook "useMobileScreen" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
984:20 Error: React Hook "useNavigate" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
985:43 Error: React Hook "useState" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
986:37 Error: React Hook "useState" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
989:23 Error: React Hook "usePromptStore" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
990:41 Error: React Hook "useState" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
991:20 Error: React Hook "useDebouncedCallback" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
1001:37 Error: React Hook "useState" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
1002:19 Error: React Hook "useDebouncedCallback" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
1019:3 Error: React Hook "useEffect" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
1022:24 Error: React Hook "useChatCommand" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
1099:3 Error: React Hook "useEffect" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
1237:23 Error: React Hook "useAccessStore" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
1238:43 Error: React Hook "useState" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
1239:45 Error: React Hook "useState" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
1283:36 Error: React Hook "useMemo" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
1299:26 Error: React Hook "useMemo" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
1336:48 Error: React Hook "useState" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
1345:20 Error: React Hook "useMemo" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
1385:49 Error: React Hook "useState" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
1387:24 Error: React Hook "useMemo" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
1392:3 Error: React Hook "useCommand" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
1441:51 Error: React Hook "useState" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
1444:3 Error: React Hook "useEffect" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
1460:23 Error: React Hook "useCallback" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
1549:59 Error: React Hook "useState" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
1551:3 Error: React Hook "useEffect" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
1612:53 Error: React Hook "useState" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
1913:29 Warning: Using <img> could result in slower LCP and higher bandwidth. Consider using <Image /> from next/image to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element @next/next/no-img-element
1931:35 Warning: Using <img> could result in slower LCP and higher bandwidth. Consider using <Image /> from next/image to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element @next/next/no-img-element

./app/components/markdown.tsx
131:6 Warning: React Hook useEffect has a missing dependency: 'renderArtifacts'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
271:26 Error: React Hook "useMemo" is called in function "_MarkDownContent" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks

./app/components/realtime-chat/realtime-chat.tsx
285:6 Warning: React Hook useEffect has missing dependencies: 'handleConnect', 'isRecording', and 'toggleRecording'. Either include them or remove the dependency array. react-hooks/exhaustive-deps

./app/components/sd/sd.tsx
104:6 Warning: React Hook useEffect has a missing dependency: 'sdStore.draw'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
165:25 Warning: Using <img> could result in slower LCP and higher bandwidth. Consider using <Image /> from next/image to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element @next/next/no-img-element

./app/components/search-chat.tsx
68:6 Warning: React Hook useCallback has a missing dependency: 'sessions'. Either include it or remove the dependency array. react-hooks/exhaustive-deps

info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

📷 复现步骤

No response

🚦 期望结果

No response

📝 补充信息

No response

@2936401755 2936401755 added the bug Something isn't working label Dec 17, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: [Bug] Local yarn dev can run, but yarn build reports an error

@gpulost
Copy link

gpulost commented Jan 7, 2025

me too,the same problem, build docker directly

logs as

[+] Building 66.7s (17/21)                                                                                                                         docker:default
 => [internal] load build definition from Dockerfile                                                                                                         0.0s
 => => transferring dockerfile: 1.56kB                                                                                                                       0.0s
 => WARN: SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ENV "OPENAI_API_KEY") (line 18)                                      0.0s
 => WARN: SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ENV "GOOGLE_API_KEY") (line 19)                                      0.0s
 => WARN: SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ENV "OPENAI_API_KEY") (line 34)                                      0.0s
 => WARN: SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ENV "GOOGLE_API_KEY") (line 35)                                      0.0s
 => WARN: JSONArgsRecommended: JSON arguments recommended for CMD to prevent unintended behavior related to OS signals (line 45)                             0.0s
 => [internal] load metadata for docker.io/library/node:18-alpine                                                                                            0.0s
 => [internal] load .dockerignore                                                                                                                            0.0s
 => => transferring context: 1.18kB                                                                                                                          0.0s
 => [internal] load build context                                                                                                                            0.0s
 => => transferring context: 17.18kB                                                                                                                         0.0s
 => [base 1/1] FROM docker.io/library/node:18-alpine                                                                                                         0.0s
 => CACHED [runner 1/6] WORKDIR /app                                                                                                                         0.0s
 => CACHED [runner 2/6] RUN apk add proxychains-ng                                                                                                           0.0s
 => CACHED [builder 1/5] RUN apk update && apk add --no-cache git                                                                                            0.0s
 => CACHED [builder 2/5] WORKDIR /app                                                                                                                        0.0s
 => CACHED [deps 1/5] RUN apk add --no-cache libc6-compat                                                                                                    0.0s
 => CACHED [deps 2/5] WORKDIR /app                                                                                                                           0.0s
 => CACHED [deps 3/5] COPY package.json yarn.lock ./                                                                                                         0.0s
 => CACHED [deps 4/5] RUN yarn config set registry 'https://registry.npmmirror.com/'                                                                         0.0s
 => CACHED [deps 5/5] RUN yarn install --verbose                                                                                                             0.0s
 => CACHED [builder 3/5] COPY --from=deps /app/node_modules ./node_modules                                                                                   0.0s
 => CACHED [builder 4/5] COPY . .                                                                                                                            0.0s
 => ERROR [builder 5/5] RUN yarn build                                                                                                                      66.6s
------
 > [builder 5/5] RUN yarn build:
0.457 yarn run v1.22.22
0.489 $ yarn mask && cross-env BUILD_MODE=standalone next build
0.851 $ npx tsx app/masks/build.ts
2.743 [Next] build mode standalone
2.744 [Next] build with chunk:  true
2.771 Attention: Next.js now collects completely anonymous telemetry regarding usage.
2.771 This information is used to shape Next.js' roadmap and prioritize features.
2.771 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:
2.771 https://nextjs.org/telemetry
2.771
2.857   ▲ Next.js 14.2.22
2.857   - Experiments (use with caution):
2.857     · forceSwcTransforms
2.857
2.947    Creating an optimized production build ...
8.780  ⚠ For production Image Optimization with Next.js, the optional 'sharp' package is strongly recommended. Run 'npm i sharp', and Next.js will use it automatically for Image Optimization.
8.780 Read more: https://nextjs.org/docs/messages/sharp-missing-in-production
21.16 <w> [webpack.cache.PackFileCacheStrategy] Skipped not serializable cache item 'Compilation/modules|javascript/auto|/app/node_modules/next/dist/build/webpack/loaders/next-flight-css-loader.js??ruleSet[1].rules[14].oneOf[9].use[0]!/app/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[9].use[1]!/app/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[9].use[2]!/app/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/index.js??ruleSet[1].rules[14].oneOf[9].use[3]!/app/node_modules/next/dist/compiled/sass-loader/cjs.js??ruleSet[1].rules[14].oneOf[9].use[4]!/app/app/components/chat.module.scss|ssr': No serializer registered for Warning
21.16 <w> while serializing webpack/lib/cache/PackFileCacheStrategy.PackContentItems -> webpack/lib/NormalModule -> Array { 1 items } -> webpack/lib/ModuleWarning -> Warning
43.32 <w> [webpack.cache.PackFileCacheStrategy] Skipped not serializable cache item 'Compilation/modules|/app/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[9].use[2]!/app/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[9].use[3]!/app/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/index.js??ruleSet[1].rules[14].oneOf[9].use[4]!/app/node_modules/next/dist/compiled/sass-loader/cjs.js??ruleSet[1].rules[14].oneOf[9].use[5]!/app/app/components/chat.module.scss': No serializer registered for Warning
43.32 <w> while serializing webpack/lib/cache/PackFileCacheStrategy.PackContentItems -> webpack/lib/NormalModule -> Array { 1 items } -> webpack/lib/ModuleWarning -> Warning
44.50  ⚠ Compiled with warnings
44.50
44.50 ./app/components/chat.module.scss.webpack[javascript/auto]!=!./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[9].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[9].use[3]!./node_modules/next/dist/build/webpack/loaders/resolve-url-loader/index.js??ruleSet[1].rules[14].oneOf[9].use[4]!./node_modules/next/dist/compiled/sass-loader/cjs.js??ruleSet[1].rules[14].oneOf[9].use[5]!./app/components/chat.module.scss
44.50 Warning
44.50
44.50 (1:6647) autoprefixer: end value has mixed support, consider using flex-end instead
44.50
44.50 Import trace for requested module:
44.50 ./app/components/chat.module.scss.webpack[javascript/auto]!=!./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[9].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[9].use[3]!./node_modules/next/dist/build/webpack/loaders/resolve-url-loader/index.js??ruleSet[1].rules[14].oneOf[9].use[4]!./node_modules/next/dist/compiled/sass-loader/cjs.js??ruleSet[1].rules[14].oneOf[9].use[5]!./app/components/chat.module.scss
44.50 ./app/components/chat.module.scss
44.50 ./app/components/mask.tsx
44.50 ./app/components/home.tsx
44.50
44.50 ./node_modules/rt-client/dist/esm/index.js
44.50 Module not found: Can't resolve 'bufferutil' in '/app/node_modules/rt-client/dist/esm'
44.50
44.50 Import trace for requested module:
44.50 ./node_modules/rt-client/dist/esm/index.js
44.50 ./app/components/realtime-chat/realtime-chat.tsx
44.50 ./app/components/realtime-chat/index.ts
44.50 ./app/components/chat.tsx
44.50 ./app/components/home.tsx
44.50
44.50 ./node_modules/rt-client/dist/esm/index.js
44.50 Module not found: Can't resolve 'utf-8-validate' in '/app/node_modules/rt-client/dist/esm'
44.50
44.50 Import trace for requested module:
44.50 ./node_modules/rt-client/dist/esm/index.js
44.50 ./app/components/realtime-chat/realtime-chat.tsx
44.50 ./app/components/realtime-chat/index.ts
44.50 ./app/components/chat.tsx
44.50 ./app/components/home.tsx
44.50
44.50 ./app/components/chat.module.scss
44.50 Warning
44.50
44.50 (1:6647) autoprefixer: end value has mixed support, consider using flex-end instead
44.50
44.50 Import trace for requested module:
44.50 ./app/components/chat.module.scss
44.50 ./app/components/mask.tsx
44.50 ./app/components/home.tsx
44.50
44.50    Linting and checking validity of types ...
65.07
65.07 Failed to compile.
65.07
65.07 ./app/components/chat.tsx
65.07 14:8  Warning: 'RenameIcon' is defined but never used.  unused-imports/no-unused-imports
65.07 22:8  Warning: 'PromptIcon' is defined but never used.  unused-imports/no-unused-imports
65.07 23:8  Warning: 'MaskIcon' is defined but never used.  unused-imports/no-unused-imports
65.07 27:8  Warning: 'BreakIcon' is defined but never used.  unused-imports/no-unused-imports
65.07 28:8  Warning: 'SettingsIcon' is defined but never used.  unused-imports/no-unused-imports
65.07 37:8  Warning: 'LightIcon' is defined but never used.  unused-imports/no-unused-imports
65.07 38:8  Warning: 'DarkIcon' is defined but never used.  unused-imports/no-unused-imports
65.07 39:8  Warning: 'AutoIcon' is defined but never used.  unused-imports/no-unused-imports
65.07 40:8  Warning: 'BottomIcon' is defined but never used.  unused-imports/no-unused-imports
65.07 42:8  Warning: 'RobotIcon' is defined but never used.  unused-imports/no-unused-imports
65.07 47:8  Warning: 'ShortcutkeyIcon' is defined but never used.  unused-imports/no-unused-imports
65.07 560:6  Warning: React Hook useEffect has a missing dependency: 'props'. Either include it or remove the dependency array. However, 'props' will change when *any* prop changes, so the preferred fix is to destructure the 'props' object outside of the useEffect call and refer to those specific props inside useEffect.  react-hooks/exhaustive-deps
65.07 956:21  Error: React Hook "useChatStore" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".  react-hooks/rules-of-hooks
65.07 958:18  Error: React Hook "useAppConfig" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".  react-hooks/rules-of-hooks
65.07 962:39  Error: React Hook "useState" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".  react-hooks/rules-of-hooks
65.07 964:20  Error: React Hook "useRef" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".  react-hooks/rules-of-hooks
65.07 965:37  Error: React Hook "useState" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".  react-hooks/rules-of-hooks
65.07 966:37  Error: React Hook "useState" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".  react-hooks/rules-of-hooks
65.07 967:39  Error: React Hook "useSubmitHandler" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".  react-hooks/rules-of-hooks
65.07 968:21  Error: React Hook "useRef" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".  react-hooks/rules-of-hooks
65.07 975:27  Error: React Hook "useMemo" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".  react-hooks/rules-of-hooks
65.07 984:6  Warning: React Hook useMemo has an unnecessary dependency: 'scrollRef.current.scrollHeight'. Either exclude it or remove the dependency array.  react-hooks/exhaustive-deps
65.07 990:48  Error: React Hook "useScrollToBottom" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".  react-hooks/rules-of-hooks
65.07 994:37  Error: React Hook "useState" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".  react-hooks/rules-of-hooks
65.07 995:26  Error: React Hook "useMobileScreen" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".  react-hooks/rules-of-hooks
65.07 996:20  Error: React Hook "useNavigate" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".  react-hooks/rules-of-hooks
65.07 997:43  Error: React Hook "useState" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".  react-hooks/rules-of-hooks
65.07 998:37  Error: React Hook "useState" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".  react-hooks/rules-of-hooks
65.07 1001:23  Error: React Hook "usePromptStore" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".  react-hooks/rules-of-hooks
65.07 1002:41  Error: React Hook "useState" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".  react-hooks/rules-of-hooks
65.07 1003:20  Error: React Hook "useDebouncedCallback" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".  react-hooks/rules-of-hooks
65.07 1013:37  Error: React Hook "useState" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".  react-hooks/rules-of-hooks
65.07 1014:19  Error: React Hook "useDebouncedCallback" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".  react-hooks/rules-of-hooks
65.07 1031:3  Error: React Hook "useEffect" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".  react-hooks/rules-of-hooks
65.07 1034:24  Error: React Hook "useChatCommand" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".  react-hooks/rules-of-hooks
65.07 1111:3  Error: React Hook "useEffect" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".  react-hooks/rules-of-hooks
65.07 1249:23  Error: React Hook "useAccessStore" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".  react-hooks/rules-of-hooks
65.07 1250:43  Error: React Hook "useState" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".  react-hooks/rules-of-hooks
65.07 1251:45  Error: React Hook "useState" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".  react-hooks/rules-of-hooks
65.07 1295:36  Error: React Hook "useMemo" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".  react-hooks/rules-of-hooks
65.07 1311:26  Error: React Hook "useMemo" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".  react-hooks/rules-of-hooks
65.07 1348:48  Error: React Hook "useState" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".  react-hooks/rules-of-hooks
65.07 1357:20  Error: React Hook "useMemo" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".  react-hooks/rules-of-hooks
65.07 1397:49  Error: React Hook "useState" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".  react-hooks/rules-of-hooks
65.07 1399:24  Error: React Hook "useMemo" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".  react-hooks/rules-of-hooks
65.07 1404:3  Error: React Hook "useCommand" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".  react-hooks/rules-of-hooks
65.07 1453:51  Error: React Hook "useState" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".  react-hooks/rules-of-hooks
65.07 1456:3  Error: React Hook "useEffect" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".  react-hooks/rules-of-hooks
65.07 1472:23  Error: React Hook "useCallback" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".  react-hooks/rules-of-hooks
65.07 1561:59  Error: React Hook "useState" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".  react-hooks/rules-of-hooks
65.07 1563:3  Error: React Hook "useEffect" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".  react-hooks/rules-of-hooks
65.07 1640:53  Error: React Hook "useState" is called in function "_Chat" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".  react-hooks/rules-of-hooks
65.07 1941:29  Warning: Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element  @next/next/no-img-element
65.07 1959:35  Warning: Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element  @next/next/no-img-element
65.07
65.07 ./app/components/markdown.tsx
65.07 131:6  Warning: React Hook useEffect has a missing dependency: 'renderArtifacts'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
65.07 271:26  Error: React Hook "useMemo" is called in function "_MarkDownContent" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".  react-hooks/rules-of-hooks
65.07
65.07 ./app/components/realtime-chat/realtime-chat.tsx
65.07 285:6  Warning: React Hook useEffect has missing dependencies: 'handleConnect', 'isRecording', and 'toggleRecording'. Either include them or remove the dependency array.  react-hooks/exhaustive-deps
65.07
65.07 ./app/components/sd/sd.tsx
65.07 104:6  Warning: React Hook useEffect has a missing dependency: 'sdStore.draw'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
65.07 165:25  Warning: Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element  @next/next/no-img-element
65.07
65.07 ./app/components/search-chat.tsx
65.07 68:6  Warning: React Hook useCallback has a missing dependency: 'sessions'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
65.07
65.07 ./app/components/sidebar.tsx
65.07 6:8  Warning: 'SettingsIcon' is defined but never used.  unused-imports/no-unused-imports
65.07 7:8  Warning: 'GithubIcon' is defined but never used.  unused-imports/no-unused-imports
65.07 11:8  Warning: 'MaskIcon' is defined but never used.  unused-imports/no-unused-imports
65.07 13:8  Warning: 'DiscoveryIcon' is defined but never used.  unused-imports/no-unused-imports
65.07 25:3  Warning: 'REPO_URL' is defined but never used.  unused-imports/no-unused-imports
65.07 28:10  Warning: 'Link' is defined but never used.  unused-imports/no-unused-imports
65.07
65.07 info  - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
65.21 error Command failed with exit code 1.
65.21 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
------
Dockerfile:26
--------------------
  24 |     COPY . .
  25 |
  26 | >>> RUN yarn build
  27 |
  28 |     FROM base AS runner
--------------------
ERROR: failed to solve: process "/bin/sh -c yarn build" did not complete successfully: exit code: 1

@gpulost
Copy link

gpulost commented Jan 7, 2025

resolved by disable rules:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants