Skip to content

[Bug]WebUI加载失败 #9297

Description

@FengLi2007

What happened / 发生了什么

windows11电脑使用uv命令下载并安装的astrbot的data目录下不存在dist,而且打开webUI显示为白屏,开发者工具里显示错误Expected a JavaScript-or-Wasm module script but the server responded with a MIME type of "text/plain". 按照其他issues提供的方法(如下载dist并解压到data)依旧报此错误。

Reproduce / 如何复现?

win11电脑在powershell里输入uv tool install astrbot --python 3.12后新开窗口输入astrbot init与astrbot run,然后在microsoft/联想浏览器里进入http://localhost:6185

AstrBot version, deployment method (e.g., Windows Docker Desktop deployment), provider used, and messaging platform used. / AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器

版本4.26.6 ,window uv一键部署。

OS

Windows

Logs / 报错日志

这是刚开始的data目录

Image

这是WEB的状态

Image Image

最后是终端的日志(应该不会有问题)

Image

Are you willing to submit a PR? / 你愿意提交 PR 吗?

  • Yes!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:webuiThe bug / feature is about webui(dashboard) of astrbot.bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions