-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Description
💻 系统环境
Ubuntu
📦 部署环境
Other
🌐 浏览器
Chrome
🐛 问题描述
3月28号及之前是正常的,Github 上打开了自动更新,某个版本之后就一直部署失败了,目前部署版本停留在 v0.142.8


10:25:10 AM: Netlify Build
10:25:10 AM: ────────────────────────────────────────────────────────────────
10:25:10 AM:
10:25:10 AM: ❯ Version
10:25:10 AM: @netlify/build 29.39.0
10:25:10 AM:
10:25:10 AM: ❯ Flags
10:25:10 AM: baseRelDir: true
10:25:10 AM: buildId: 661202df772551000835812f
10:25:10 AM: deployId: 661202df7725510008358131
10:25:10 AM:
10:25:10 AM: ❯ Current directory
10:25:10 AM: /opt/build/repo
10:25:10 AM:
10:25:10 AM: ❯ Config file
10:25:10 AM: /opt/build/repo/netlify.toml
10:25:10 AM:
10:25:10 AM: ❯ Context
10:25:10 AM: production
10:25:10 AM:
10:25:10 AM: ❯ Installing plugins
10:25:10 AM: - @netlify/plugin-nextjs@5.0.0
10:25:11 AM:
10:25:11 AM: ❯ Using Next.js Runtime - v5.0.0
10:25:12 AM:
10:25:12 AM: @netlify/plugin-nextjs (onPreBuild event)
10:25:12 AM: ────────────────────────────────────────────────────────────────
10:25:12 AM:
10:25:13 AM: Next.js cache restored
10:25:13 AM:
10:25:13 AM: (@netlify/plugin-nextjs onPreBuild completed in 706ms)
10:25:13 AM:
10:25:13 AM: build.command from netlify.toml
10:25:13 AM: ────────────────────────────────────────────────────────────────
10:25:13 AM:
10:25:13 AM: $ npm run build
10:25:13 AM: > @lobehub/chat@0.145.13 build
10:25:13 AM: > next build
10:25:15 AM: ▲ Next.js 14.1.4
10:25:15 AM: Creating an optimized production build ...
10:25:15 AM: ⚠ Found lockfile missing swc dependencies, run next locally to automatically patch
10:25:15 AM: ✓ (pwa) Compiling for server...
10:25:15 AM: ✓ (pwa) Compiling for server...
10:25:15 AM: ✓ (pwa) Compiling for client (static)...
10:25:15 AM: ○ (pwa) Service worker: /opt/build/repo/public/sw.js
10:25:15 AM: ○ (pwa) URL: /sw.js
10:25:15 AM: ○ (pwa) Scope: /
10:27:09 AM: ⚠ Compiled with warnings
10:27:09 AM: ./src/app/settings/llm/TogetherAI/index.tsx
10:27:09 AM: Attempted import error: "Together" is not exported from "@lobehub/icons" (imported as "Together").
10:27:09 AM: Import trace for requested module:
10:27:09 AM: ./src/app/settings/llm/TogetherAI/index.tsx
10:27:09 AM: ./src/app/settings/llm/index.tsx
10:27:09 AM: ./src/app/settings/llm/TogetherAI/index.tsx
10:27:09 AM: Attempted import error: "Together" is not exported from "@lobehub/icons" (imported as "Together").
10:27:09 AM: Import trace for requested module:
10:27:09 AM: ./src/app/settings/llm/TogetherAI/index.tsx
10:27:09 AM: ./src/app/settings/llm/index.tsx
10:27:09 AM: ./src/components/ModelProviderIcon/index.tsx
10:27:09 AM: Attempted import error: "Together" is not exported from "@lobehub/icons" (imported as "Together").
10:27:09 AM: Import trace for requested module:
10:27:09 AM: ./src/components/ModelProviderIcon/index.tsx
10:27:09 AM: ./src/components/ModelSelect/index.tsx
10:27:09 AM: ./src/features/ModelSwitchPanel/index.tsx
10:27:09 AM: ./src/app/chat/(desktop)/features/ChatHeader/Tags.tsx
10:27:09 AM: ./src/app/chat/(desktop)/features/ChatHeader/Main.tsx
10:27:09 AM: ./src/app/chat/(desktop)/features/ChatHeader/index.tsx
10:27:09 AM: ./src/app/chat/(desktop)/index.tsx
10:27:09 AM: ./src/features/Conversation/Error/APIKeyForm/TogetherAI.tsx
10:27:09 AM: Attempted import error: "Together" is not exported from "@lobehub/icons" (imported as "Together").
10:27:09 AM: Import trace for requested module:
10:27:09 AM: ./src/features/Conversation/Error/APIKeyForm/TogetherAI.tsx
10:27:09 AM: ./src/features/Conversation/Error/APIKeyForm/index.tsx
10:27:09 AM: ./src/features/Conversation/Error/InvalidAPIKey.tsx
10:27:09 AM: ./src/features/Conversation/Error/index.tsx
10:27:09 AM: ./src/features/Conversation/components/ChatItem/index.tsx
10:27:09 AM: ./src/features/Conversation/components/VirtualizedList/index.tsx
10:27:09 AM: ./src/features/Conversation/index.tsx
10:27:09 AM: ./src/app/chat/(mobile)/mobile/page.tsx
10:27:09 AM: ./src/app/settings/llm/TogetherAI/index.tsx
10:27:09 AM: Attempted import error: "Together" is not exported from "@lobehub/icons" (imported as "Together").
10:27:09 AM: Import trace for requested module:
10:27:09 AM: ./src/app/settings/llm/TogetherAI/index.tsx
10:27:09 AM: ./src/app/settings/llm/index.tsx
10:27:09 AM: ./src/app/settings/llm/TogetherAI/index.tsx
10:27:09 AM: Attempted import error: "Together" is not exported from "@lobehub/icons" (imported as "Together").
10:27:09 AM: Import trace for requested module:
10:27:09 AM: ./src/app/settings/llm/TogetherAI/index.tsx
10:27:09 AM: ./src/app/settings/llm/index.tsx
10:27:09 AM: ./src/components/ModelProviderIcon/index.tsx
10:27:09 AM: Attempted import error: "Together" is not exported from "@lobehub/icons" (imported as "Together").
10:27:09 AM: Import trace for requested module:
10:27:09 AM: ./src/components/ModelProviderIcon/index.tsx
10:27:09 AM: ./src/components/ModelSelect/index.tsx
10:27:09 AM: ./src/features/AgentSetting/AgentConfig/ModelSelect.tsx
10:27:09 AM: ./src/features/AgentSetting/AgentConfig/index.tsx
10:27:09 AM: ./src/features/AgentSetting/index.tsx
10:27:09 AM: ./src/app/settings/agent/Agent.tsx
10:27:09 AM: ./src/app/settings/agent/page.tsx
10:27:09 AM: ./src/features/Conversation/Error/APIKeyForm/TogetherAI.tsx
10:27:09 AM: Attempted import error: "Together" is not exported from "@lobehub/icons" (imported as "Together").
10:27:09 AM: Import trace for requested module:
10:27:09 AM: ./src/features/Conversation/Error/APIKeyForm/TogetherAI.tsx
10:27:09 AM: ./src/features/Conversation/Error/APIKeyForm/index.tsx
10:27:09 AM: ./src/features/Conversation/Error/InvalidAPIKey.tsx
10:27:09 AM: ./src/features/Conversation/Error/index.tsx
10:27:09 AM: ./src/features/Conversation/components/ChatItem/index.tsx
10:27:09 AM: ./src/features/Conversation/components/VirtualizedList/index.tsx
10:27:09 AM: ./src/features/Conversation/index.tsx
10:27:09 AM: ./src/app/chat/(mobile)/mobile/page.tsx
10:27:09 AM: Linting and checking validity of types ...
10:27:24 AM: ./src/app/chat/(desktop)/features/ChatInput/Footer/index.tsx
10:27:24 AM: 59:36 Warning: "expand" is defined but never used. Allowed unused args must match /^/u. unused-imports/no-unused-vars
10:27:24 AM: ./src/app/chat/(desktop)/features/ChatInput/TextArea.tsx
10:27:24 AM: 34:39 Warning: "expand" is defined but never used. Allowed unused args must match /^/u. unused-imports/no-unused-vars
10:27:24 AM: ./src/store/chat/slices/plugin/action.ts
10:27:24 AM: 90:13 Warning: Empty block statement. no-empty
10:27:24 AM: info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
10:27:28 AM: Failed to compile.
10:27:28 AM:
10:27:28 AM: ./src/app/settings/llm/TogetherAI/index.tsx:1:10
10:27:28 AM: Type error: Module ""@lobehub/icons"" has no exported member "Together".
10:27:28 AM: > 1 | import { Together } from "@lobehub/icons";
10:27:28 AM: | ^
10:27:28 AM: 2 | import { useTheme } from "antd-style";
10:27:28 AM: 3 | import { memo } from "react";
10:27:28 AM: 4 |
10:27:29 AM: Failed during stage "building site": Build script returned non-zero exit code: 2
10:27:29 AM:
10:27:29 AM: @netlify/plugin-nextjs (onEnd event)
10:27:29 AM: ────────────────────────────────────────────────────────────────
10:27:29 AM:
10:27:29 AM:
10:27:29 AM: (@netlify/plugin-nextjs onEnd completed in 7ms)
10:27:29 AM:
10:27:29 AM: "build.command" failed
10:27:29 AM: ────────────────────────────────────────────────────────────────
10:27:29 AM:
10:27:29 AM: Error message
10:27:29 AM: Command failed with exit code 1: npm run build (https://ntl.fyi/exit-code-1)
10:27:29 AM:
10:27:29 AM: Error location
10:27:29 AM: In build.command from netlify.toml:
10:27:29 AM: npm run build
10:27:29 AM:
10:27:29 AM: Resolved config
10:27:29 AM: build:
10:27:29 AM: command: npm run build
10:27:29 AM: commandOrigin: config
10:27:29 AM: environment:
10:27:29 AM: - ACCESS_CODE
10:27:29 AM: - CUSTOM_MODELS
10:27:29 AM: - DEFAULT_AGENT_CONFIG
10:27:29 AM: - OPENAI_API_KEY
10:27:29 AM: - OPENAI_PROXY_URL
10:27:29 AM: publish: /opt/build/repo/.next
10:27:29 AM: publishOrigin: config
10:27:29 AM: plugins:
10:27:29 AM: - inputs: {}
10:27:29 AM: origin: ui
10:27:29 AM: package: "@netlify/plugin-nextjs"
10:27:29 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
10:27:29 AM: Failing build: Failed to build site
10:27:29 AM: Finished processing build request in 3m6.175s
🚦 期望结果
部署成功
📷 复现步骤
Netlify 上重新部署
📝 补充信息
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status