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] not docker deploy error.yarn start & yarn export error. #6360

Open
lcp0578 opened this issue Mar 12, 2025 · 0 comments
Open

[Bug] not docker deploy error.yarn start & yarn export error. #6360

lcp0578 opened this issue Mar 12, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@lcp0578
Copy link

lcp0578 commented Mar 12, 2025

πŸ“¦ Deployment Method

Other

πŸ“Œ Version

main

πŸ’» Operating System

Ubuntu

πŸ“Œ System Version

22.0.4

🌐 Browser

Other

πŸ“Œ Browser Version

ζ— 

πŸ› Bug Description

yarn start

yarn run v1.22.22
$ next start
β–² Next.js 14.1.1

[Next] build mode standalone
[Next] build with chunk: true
Error: ENOENT: no such file or directory, open '/home/wwwroot/DeepSeek/NextChat_main/.next/BUILD_ID'
at async open (node:internal/fs/promises:639:25)
at async Object.readFile (node:internal/fs/promises:1246:14)
at async setupFsCheck (/home/wwwroot/DeepSeek/NextChat_main/node_modules/next/dist/server/lib/router-utils/filesystem.js:145:19)
at async initialize (/home/wwwroot/DeepSeek/NextChat_main/node_modules/next/dist/server/lib/router-server.js:58:23)
at async Server. (/home/wwwroot/DeepSeek/NextChat_main/node_modules/next/dist/server/lib/start-server.js:247:36) {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/home/wwwroot/DeepSeek/NextChat_main/.next/BUILD_ID'
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
root@jicheng245:/home/wwwroot/DeepSeek/NextChat_main# yarn export
yarn run v1.22.22
$ yarn mask && cross-env BUILD_MODE=export BUILD_APP=1 next build
$ npx tsx app/masks/build.ts
[Next] build mode export
[Next] build with chunk: false
β–² Next.js 14.1.1

  • Experiments (use at your own risk):
    Β· forceSwcTransforms

Creating an optimized production build ...
[webpack.cache.PackFileCacheStrategy] Skipped not serializable cache item 'Compilation/modules|javascript/auto|/home/wwwroot/DeepSeek/NextChat_main/node_modules/next/dist/build/webpack/loaders/next-flight-css-loader.js??ruleSet[1].rules[12].oneOf[9].use[0]!/home/wwwroot/DeepSeek/NextChat_main/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[12].oneOf[9].use[1]!/home/wwwroot/DeepSeek/NextChat_main/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[12].oneOf[9].use[2]!/home/wwwroot/DeepSeek/NextChat_main/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/index.js??ruleSet[1].rules[12].oneOf[9].use[3]!/home/wwwroot/DeepSeek/NextChat_main/node_modules/next/dist/compiled/sass-loader/cjs.js??ruleSet[1].rules[12].oneOf[9].use[4]!/home/wwwroot/DeepSeek/NextChat_main/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 '/home/wwwroot/DeepSeek/NextChat_main/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 '/home/wwwroot/DeepSeek/NextChat_main/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

./app/components/chat.tsx
597: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
1020:6 Warning: React Hook useMemo has an unnecessary dependency: 'scrollRef.current.scrollHeight'. Either exclude it or remove the dependency array. react-hooks/exhaustive-deps
1989:31 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
2008:39 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

./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
βœ“ Linting and checking validity of types
⚠ Using edge runtime on a page currently disables static generation for that page
βœ“ Collecting page data

Server Actions are not supported with static export.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

yarn dev is ok.

yarn dev

yarn run v1.22.22
$ concurrently -r "yarn run mask:watch" "next dev"
$ npx watch "yarn mask" app/masks

Watching app/masks
[Next] build mode standalone
[Next] build with chunk: true
$ npx tsx app/masks/build.ts
[Next] build mode standalone
[Next] build with chunk: true
β–² Next.js 14.1.1

βœ“ Ready in 3.2s
β—‹ Compiling / ...

πŸ“· Recurrence Steps

No response

🚦 Expected Behavior

No response

πŸ“ Additional Information

No response

@lcp0578 lcp0578 added the bug Something isn't working label Mar 12, 2025
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

1 participant