Skip to content

前端构建失败了 #2063

@dylanxu90

Description

@dylanxu90

分支:v0.2.6

日志如下:
~/develop/workspace/ai/coze_studio/frontend/apps/coze-studio » npm run dev
xuxiaohuan@xuxiaohuandeMacBook-Pro

@coze-studio/app@0.0.1 dev
IS_OPEN_SOURCE=true CUSTOM_VERSION=release rsbuild dev

Rsbuild v1.1.13

➜ Local: http://localhost:8080/
➜ Network: http://10.11.75.40:8080/
➜ press h + enter to show shortcuts

[HPM] Proxy created: /api -> http://localhost:8888/
[HPM] Proxy created: /v1 -> http://localhost:8888/
start Building...
Got 211 contents for tailwind
error Compile error:
Failed to compile, check the errors for troubleshooting.
File: /Users/xuxiaohuan/develop/workspace/ai/coze_studio/frontend/packages/workflow/playground/src/components/test-run/execute-status-bar-v2/content.tsx:1:1
× Module not found: Can't resolve '@coze-workflow/test-run/log' in '/Users/xuxiaohuan/develop/workspace/ai/coze_studio/frontend/packages/workflow/playground/src/components/test-run/execute-status-bar-v2'
╭─[20:30]
18 │ import classNames from 'classnames';
19 │ import { useNodeRender } from '@flowgram-adapter/free-layout-editor';
20 │ import { NodeStatusBar } from '@coze-workflow/test-run/log';
· ─────────────────────────────
21 │ import { NodeExeStatus } from '@coze-workflow/base/api';
22 │ import { CONVERSATION_NODES, StandardNodeType } from '@coze-workflow/base';
╰────

@ ../../packages/workflow/playground/src/components/test-run/execute-status-bar-v2/index.tsx
@ ../../packages/workflow/playground/src/components/node-render/node-render-new/index.tsx
@ ../../packages/workflow/playground/src/components/node-render/index.tsx
@ ../../packages/workflow/playground/src/container/workflow-page-contribution.ts
@ ../../packages/workflow/playground/src/container/workflow-page-container-module.ts
@ ../../packages/workflow/playground/src/workflow-playground.tsx
@ ../../packages/workflow/adapter/playground/src/page.tsx
@ ../../packages/workflow/adapter/playground/src/index.tsx
@ ./src/routes/async-components.tsx
@ ./src/routes/index.tsx
@ ./src/app.tsx
@ ./src/index.tsx

File: /Users/xuxiaohuan/develop/workspace/ai/coze_studio/frontend/packages/workflow/test-run/src/components/log-detail/log-detail.tsx:1:1
× Module not found: Can't resolve '../../features/log' in '/Users/xuxiaohuan/develop/workspace/ai/coze_studio/frontend/packages/workflow/test-run/src/components/log-detail'
╭─[18:33]
16 │ var _s = $RefreshSig$();
17 │ import React, { useLayoutEffect, useMemo, useState } from 'react';
18 │ import { useMarkdownModal } from '../../features/log';
· ────────────────────
19 │ import { LogDetailPagination } from './pagination';
20 │ import { LogFields } from './log-fields';
╰────

@ ../../packages/workflow/test-run/src/components/log-detail/index.ts
@ ../../packages/workflow/test-run/src/components/index.ts
@ ../../packages/workflow/test-run/src/index.ts
@ ../../packages/workflow/playground/src/hooks/use-workflow-preset.tsx
@ ../../packages/workflow/playground/src/hooks/index.ts
@ ../../packages/workflow/playground/src/index.tsx
@ ../../packages/project-ide/biz-workflow/src/index.tsx
@ ../../packages/project-ide/main/src/index.tsx
@ ./src/routes/async-components.tsx
@ ./src/routes/index.tsx
@ ./src/app.tsx
@ ./src/index.tsx

File: /Users/xuxiaohuan/develop/workspace/ai/coze_studio/frontend/packages/workflow/test-run/src/components/log-detail/log-fields/index.tsx:1:1
× Module not found: Can't resolve '../../../features/log' in '/Users/xuxiaohuan/develop/workspace/ai/coze_studio/frontend/packages/workflow/test-run/src/components/log-detail/log-fields'
╭─[18:28]
16 │ var _s = $RefreshSig$();
17 │ import React, { useMemo } from 'react';
18 │ import { generateLog } from '../../../features/log';
· ───────────────────────
19 │ import { LogField } from './log-field';
20 │ import { EmptyFiled } from './empty';
╰────

@ ../../packages/workflow/test-run/src/components/log-detail/log-detail.tsx
@ ../../packages/workflow/test-run/src/components/log-detail/index.ts
@ ../../packages/workflow/test-run/src/components/index.ts
@ ../../packages/workflow/test-run/src/index.ts
@ ../../packages/workflow/playground/src/hooks/use-workflow-preset.tsx
@ ../../packages/workflow/playground/src/hooks/index.ts
@ ../../packages/workflow/playground/src/index.tsx
@ ../../packages/project-ide/biz-workflow/src/index.tsx
@ ../../packages/project-ide/main/src/index.tsx
@ ./src/routes/async-components.tsx
@ ./src/routes/index.tsx
@ ./src/app.tsx
@ ./src/index.tsx

File: /Users/xuxiaohuan/develop/workspace/ai/coze_studio/frontend/packages/workflow/test-run/src/components/log-detail/log-fields/log-field.tsx:1:1
× Module not found: Can't resolve '../../../features/log' in '/Users/xuxiaohuan/develop/workspace/ai/coze_studio/frontend/packages/workflow/test-run/src/components/log-detail/log-fields'
╭─[16:179]
14 │ * limitations under the License.
15 │ */ import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
16 │ import { ConditionLogParser, OutputLogParser, NormalLogParser, isOutputLog, isConditionLog, FunctionCallLogParser, isFunctionCallLog, WorkflowLinkParser, isWorkflowLinkLog } from '../../../features/log';
· ───────────────────────
17 │ export var LogField = (param)=>{
18 │ var { log, node, nodeStatus, onPreview, onOpenWorkflowLink } = param;
╰────

@ ../../packages/workflow/test-run/src/components/log-detail/log-fields/index.tsx
@ ../../packages/workflow/test-run/src/components/log-detail/log-detail.tsx
@ ../../packages/workflow/test-run/src/components/log-detail/index.ts
@ ../../packages/workflow/test-run/src/components/index.ts
@ ../../packages/workflow/test-run/src/index.ts
@ ../../packages/workflow/playground/src/hooks/use-workflow-preset.tsx
@ ../../packages/workflow/playground/src/hooks/index.ts
@ ../../packages/workflow/playground/src/index.tsx
@ ../../packages/project-ide/biz-workflow/src/index.tsx
@ ../../packages/project-ide/main/src/index.tsx
@ ./src/routes/async-components.tsx
@ ./src/routes/index.tsx
@ ./src/app.tsx
@ ./src/index.tsx

File: /Users/xuxiaohuan/develop/workspace/ai/coze_studio/frontend/packages/workflow/test-run/src/index.ts:1:1
× Module not found: Can't resolve './features/log' in '/Users/xuxiaohuan/develop/workspace/ai/coze_studio/frontend/packages/workflow/test-run/src'
╭─[34:52]
32 │ // } from './features/trace';
33 │ /** problem panel / export { ProblemPanel } from './features/problem';
34 │ /
* log / export { NodeStatusBar, LogImages } from './features/log';
· ────────────────
35 │ /
*
36 │ * plugins
╰────

@ ../../packages/workflow/playground/src/hooks/use-workflow-preset.tsx
@ ../../packages/workflow/playground/src/hooks/index.ts
@ ../../packages/workflow/playground/src/index.tsx
@ ../../packages/project-ide/biz-workflow/src/index.tsx
@ ../../packages/project-ide/main/src/index.tsx
@ ./src/routes/async-components.tsx
@ ./src/routes/index.tsx
@ ./src/app.tsx
@ ./src/index.tsx

start Building...
error Compile error:
Failed to compile, check the errors for troubleshooting.
File: /Users/xuxiaohuan/develop/workspace/ai/coze_studio/frontend/packages/workflow/playground/src/components/test-run/execute-status-bar-v2/content.tsx:1:1
× Module not found: Can't resolve '@coze-workflow/test-run/log' in '/Users/xuxiaohuan/develop/workspace/ai/coze_studio/frontend/packages/workflow/playground/src/components/test-run/execute-status-bar-v2'
╭─[20:30]
18 │ import classNames from 'classnames';
19 │ import { useNodeRender } from '@flowgram-adapter/free-layout-editor';
20 │ import { NodeStatusBar } from '@coze-workflow/test-run/log';
· ─────────────────────────────
21 │ import { NodeExeStatus } from '@coze-workflow/base/api';
22 │ import { CONVERSATION_NODES, StandardNodeType } from '@coze-workflow/base';
╰────

@ ../../packages/workflow/playground/src/components/test-run/execute-status-bar-v2/index.tsx
@ ../../packages/workflow/playground/src/components/node-render/node-render-new/index.tsx
@ ../../packages/workflow/playground/src/components/node-render/index.tsx
@ ../../packages/workflow/playground/src/container/workflow-page-contribution.ts
@ ../../packages/workflow/playground/src/container/workflow-page-container-module.ts
@ ../../packages/workflow/playground/src/workflow-playground.tsx
@ ../../packages/workflow/adapter/playground/src/page.tsx
@ ../../packages/workflow/adapter/playground/src/index.tsx
@ ./src/routes/async-components.tsx
@ ./src/routes/index.tsx
@ ./src/app.tsx
@ ./src/index.tsx

File: /Users/xuxiaohuan/develop/workspace/ai/coze_studio/frontend/packages/workflow/test-run/src/components/log-detail/log-detail.tsx:1:1
× Module not found: Can't resolve '../../features/log' in '/Users/xuxiaohuan/develop/workspace/ai/coze_studio/frontend/packages/workflow/test-run/src/components/log-detail'
╭─[18:33]
16 │ var _s = $RefreshSig$();
17 │ import React, { useLayoutEffect, useMemo, useState } from 'react';
18 │ import { useMarkdownModal } from '../../features/log';
· ────────────────────
19 │ import { LogDetailPagination } from './pagination';
20 │ import { LogFields } from './log-fields';
╰────

@ ../../packages/workflow/test-run/src/components/log-detail/index.ts
@ ../../packages/workflow/test-run/src/components/index.ts
@ ../../packages/workflow/test-run/src/index.ts
@ ../../packages/workflow/playground/src/hooks/use-workflow-preset.tsx
@ ../../packages/workflow/playground/src/hooks/index.ts
@ ../../packages/workflow/playground/src/index.tsx
@ ../../packages/project-ide/biz-workflow/src/index.tsx
@ ../../packages/project-ide/main/src/index.tsx
@ ./src/routes/async-components.tsx
@ ./src/routes/index.tsx
@ ./src/app.tsx
@ ./src/index.tsx

File: /Users/xuxiaohuan/develop/workspace/ai/coze_studio/frontend/packages/workflow/test-run/src/components/log-detail/log-fields/index.tsx:1:1
× Module not found: Can't resolve '../../../features/log' in '/Users/xuxiaohuan/develop/workspace/ai/coze_studio/frontend/packages/workflow/test-run/src/components/log-detail/log-fields'
╭─[18:28]
16 │ var _s = $RefreshSig$();
17 │ import React, { useMemo } from 'react';
18 │ import { generateLog } from '../../../features/log';
· ───────────────────────
19 │ import { LogField } from './log-field';
20 │ import { EmptyFiled } from './empty';
╰────

@ ../../packages/workflow/test-run/src/components/log-detail/log-detail.tsx
@ ../../packages/workflow/test-run/src/components/log-detail/index.ts
@ ../../packages/workflow/test-run/src/components/index.ts
@ ../../packages/workflow/test-run/src/index.ts
@ ../../packages/workflow/playground/src/hooks/use-workflow-preset.tsx
@ ../../packages/workflow/playground/src/hooks/index.ts
@ ../../packages/workflow/playground/src/index.tsx
@ ../../packages/project-ide/biz-workflow/src/index.tsx
@ ../../packages/project-ide/main/src/index.tsx
@ ./src/routes/async-components.tsx
@ ./src/routes/index.tsx
@ ./src/app.tsx
@ ./src/index.tsx

File: /Users/xuxiaohuan/develop/workspace/ai/coze_studio/frontend/packages/workflow/test-run/src/components/log-detail/log-fields/log-field.tsx:1:1
× Module not found: Can't resolve '../../../features/log' in '/Users/xuxiaohuan/develop/workspace/ai/coze_studio/frontend/packages/workflow/test-run/src/components/log-detail/log-fields'
╭─[16:179]
14 │ * limitations under the License.
15 │ */ import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
16 │ import { ConditionLogParser, OutputLogParser, NormalLogParser, isOutputLog, isConditionLog, FunctionCallLogParser, isFunctionCallLog, WorkflowLinkParser, isWorkflowLinkLog } from '../../../features/log';
· ───────────────────────
17 │ export var LogField = (param)=>{
18 │ var { log, node, nodeStatus, onPreview, onOpenWorkflowLink } = param;
╰────

@ ../../packages/workflow/test-run/src/components/log-detail/log-fields/index.tsx
@ ../../packages/workflow/test-run/src/components/log-detail/log-detail.tsx
@ ../../packages/workflow/test-run/src/components/log-detail/index.ts
@ ../../packages/workflow/test-run/src/components/index.ts
@ ../../packages/workflow/test-run/src/index.ts
@ ../../packages/workflow/playground/src/hooks/use-workflow-preset.tsx
@ ../../packages/workflow/playground/src/hooks/index.ts
@ ../../packages/workflow/playground/src/index.tsx
@ ../../packages/project-ide/biz-workflow/src/index.tsx
@ ../../packages/project-ide/main/src/index.tsx
@ ./src/routes/async-components.tsx
@ ./src/routes/index.tsx
@ ./src/app.tsx
@ ./src/index.tsx

File: /Users/xuxiaohuan/develop/workspace/ai/coze_studio/frontend/packages/workflow/test-run/src/index.ts:1:1
× Module not found: Can't resolve './features/log' in '/Users/xuxiaohuan/develop/workspace/ai/coze_studio/frontend/packages/workflow/test-run/src'
╭─[34:52]
32 │ // } from './features/trace';
33 │ /** problem panel / export { ProblemPanel } from './features/problem';
34 │ /
* log / export { NodeStatusBar, LogImages } from './features/log';
· ────────────────
35 │ /
*
36 │ * plugins
╰────

@ ../../packages/workflow/playground/src/hooks/use-workflow-preset.tsx
@ ../../packages/workflow/playground/src/hooks/index.ts
@ ../../packages/workflow/playground/src/index.tsx
@ ../../packages/project-ide/biz-workflow/src/index.tsx
@ ../../packages/project-ide/main/src/index.tsx
@ ./src/routes/async-components.tsx
@ ./src/routes/index.tsx
@ ./src/app.tsx
@ ./src/index.ts

其他问题:
v0.2.6在rush install会提示还缺少debug-panel,从main分支拷过去后正常

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions