ChatGPTNextWeb / ChatGPTNextWeb/NextChat

[Bug]

Open
#6,191 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
88.8k
Forks
59.1k
PR merge metrics
No merged PRs in 30d

Description

### 📦 Deployment Method

Other

### 📌 Version

在构建EXE客户端的时候报错

### 💻 Operating System

Windows

### 📌 System Version

在构建EXE客户端的时候报错

### 🌐 Browser

Other

### 📌 Browser Version

2.15.8

### 🐛 Bug Description

cargo-tauri build构建最新版EXE客户端的时候报错 Error beforeBuildCommand `yarn export` failed with exit code 1

E:\ithoughts目录\AI项目源码与搭建\2025新版\NextChat>cargo-tauri build
Running beforeBuildCommand `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 ...
⚠ 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.
Read more: https://nextjs.org/docs/messages/sharp-missing-in-production
[webpack.cache.PackFileCacheStrategy] Skipped not serializable cache item 'Compilation/modules|javascript/auto|E:\ithoughts目录\AI项目源码与搭建\2025新版\NextChat\node_modules\next\dist\build\webpack\loaders\next-flight-css-loader.js??ruleSet[1].rules[12].oneOf[9].use[0]!E:\ithoughts目录\AI项目源码与搭建\2025新版\NextChat\node_modules\next\dist\build\webpack\loaders\css-loader\src\index.js??ruleSet[1].rules[12].oneOf[9].use[1]!E:\ithoughts目录\AI项目源码与搭建\2025新版\NextChat\node_modules\next\dist\build\webpack\loaders\postcss-loader\src\index.js??ruleSet[1].rules[12].oneOf[9].use[2]!E:\ithoughts目录\AI项目源码与搭建\2025新版\NextChat\node_modules\next\dist\build\webpack\loaders\resolve-url-loader\index.js??ruleSet[1].rules[12].oneOf[9].use[3]!E:\ithoughts目录\AI项目源码与搭建\2025新版\NextChat\node_modules\next\dist\compiled\sass-loader\cjs.js??ruleSet[1].rules[12].oneOf[9].use[4]!E:\ithoughts目录\AI项目源码与搭建\2025新版\NextChat\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
[webpack.cache.PackFileCacheStrategy] Skipped not serializable cache item 'Compilation/modules|E:\ithoughts目录\AI项目源码与搭建\2025新版\NextChat\node_modules\next\dist\build\webpack\loaders\css-loader\src\index.js??ruleSet[1].rules[11].oneOf[9].use[2]!E:\ithoughts目录\AI项目源码与搭建\2025新版\NextChat\node_modules\next\dist\build\webpack\loaders\postcss-loader\src\index.js??ruleSet[1].rules[11].oneOf[9].use[3]!E:\ithoughts目录\AI项目源码与搭建\2025新版\NextChat\node_modules\next\dist\build\webpack\loaders\resolve-url-loader\index.js??ruleSet[1].rules[11].oneOf[9].use[4]!E:\ithoughts目录\AI项目源码与搭建\2025新版\NextChat\node_modules\next\dist\compiled\sass-loader\cjs.js??ruleSet[1].rules[11].oneOf[9].use[5]!E:\ithoughts目录\AI项目源码与搭建\2025新版\NextChat\app\components\chat.module.scss': 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

./app/components/chat.module.scss.webpack[javascript/auto]!=!./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[11].oneOf[9].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[11].oneOf[9].use[3]!./node_modules/next/dist/build/webpack/loaders/resolve-url-loader/index.js??ruleSet[1].rules[11].oneOf[9].use[4]!./node_modules/next/dist/compiled/sass-loader/cjs.js??ruleSet[1].rules[11].oneOf[9].use[5]!./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.webpack[javascript/auto]!=!./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[11].oneOf[9].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[11].oneOf[9].use[3]!./node_modules/next/dist/build/webpack/loaders/resolve-url-loader/index.js??ruleSet[1].rules[11].oneOf[9].use[4]!./node_modules/next/dist/compiled/sass-loader/cjs.js??ruleSet[1].rules[11].oneOf[9].use[5]!./app/components/chat.module.scss
./app/components/chat.module.scss
./app/components/mask.tsx
./app/components/home.tsx

./node_modules/rt-client/dist/esm/index.js
Module not found: Can't resolve 'bufferutil' in 'E:\ithoughts目录\AI项目源码与搭建\2025新版\NextChat\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 'E:\ithoughts目录\AI项目源码与搭建\2025新版\NextChat\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 `` could result in slower LCP and higher bandwidth. Consider using `` 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 `` could result in slower LCP and higher bandwidth. Consider using `` 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 `` could result in slower LCP and higher bandwidth. Consider using `` 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.
Error beforeBuildCommand `yarn export` failed with exit code 1

E:\ithoughts目录\AI项目源码与搭建\2025新版\NextChat>cargo-tauri build

### 📷 Recurrence Steps

_No response_

### 🚦 Expected Behavior

_No response_

### 📝 Additional Information

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.