Skip to content

前端无法正常启动 #1

Description

@LRZX36

本身components目录下就没有任何log字段有关的文件夹或文件

21:06:48 [vite] Internal server error: Failed to resolve import "./components/logs" from "src/App.tsx". Does the file exist?
  Plugin: vite:import-analysis
  File: C:/MyClaw/frontend/src/App.tsx:18:9
  19 |  const LogsPage = lazy(_c11 = () => import("./components/logs").then((module) => ({ default: module.LogsPage })));
  20 |  _c12 = LogsPage;
  21 |  const HistoryLogsPage = lazy(_c13 = () => import("./components/logs").then((module) => ({ default: module.HistoryLogs...
     |                                                   ^
  22 |  _c14 = HistoryLogsPage;
  23 |  const ToolsPage = lazy(_c15 = () => import("./components/tools/ToolsPage"));
      at TransformPluginContext._formatLog (file:///C:/MyClaw/frontend/node_modules/vite/dist/node/chunks/node.js:30259:39)
      at TransformPluginContext.error (file:///C:/MyClaw/frontend/node_modules/vite/dist/node/chunks/node.js:30256:14)
      at normalizeUrl (file:///C:/MyClaw/frontend/node_modules/vite/dist/node/chunks/node.js:27544:18)
      at async file:///C:/MyClaw/frontend/node_modules/vite/dist/node/chunks/node.js:27607:30
      at async Promise.all (index 13)
      at async TransformPluginContext.transform (file:///C:/MyClaw/frontend/node_modules/vite/dist/node/chunks/node.js:27575:4)
      at async EnvironmentPluginContainer.transform (file:///C:/MyClaw/frontend/node_modules/vite/dist/node/chunks/node.js:30048:14)
      at async loadAndTransform (file:///C:/MyClaw/frontend/node_modules/vite/dist/node/chunks/node.js:24177:26)
21:06:48 [vite] (client) Pre-transform error: Failed to resolve import "./components/logs" from "src/App.tsx". Does the file exist?
  Plugin: vite:import-analysis
  File: C:/MyClaw/frontend/src/App.tsx:18:9
  19 |  const LogsPage = lazy(_c11 = () => import("./components/logs").then((module) => ({ default: module.LogsPage })));
  20 |  _c12 = LogsPage;
  21 |  const HistoryLogsPage = lazy(_c13 = () => import("./components/logs").then((module) => ({ default: module.HistoryLogs...
     |                                                   ^
  22 |  _c14 = HistoryLogsPage;
  23 |  const ToolsPage = lazy(_c15 = () => import("./components/tools/ToolsPage"));
21:06:48 [vite] (client) Pre-transform error: Failed to resolve import "./components/logs" from "src/App.tsx". Does the file exist?
  Plugin: vite:import-analysis
  File: C:/MyClaw/frontend/src/App.tsx:18:9
  19 |  const LogsPage = lazy(_c11 = () => import("./components/logs").then((module) => ({ default: module.LogsPage })));
  20 |  _c12 = LogsPage;
  21 |  const HistoryLogsPage = lazy(_c13 = () => import("./components/logs").then((module) => ({ default: module.HistoryLogs...
     |                                                   ^
  22 |  _c14 = HistoryLogsPage;
  23 |  const ToolsPage = lazy(_c15 = () => import("./components/tools/ToolsPage")); (x2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions