Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

前端开发异常 #7896

Open
4 tasks done
wutea7 opened this issue Jan 29, 2025 · 1 comment
Open
4 tasks done

前端开发异常 #7896

wutea7 opened this issue Jan 29, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@wutea7
Copy link

wutea7 commented Jan 29, 2025

Please make sure of the following things

  • I have read the documentation.
    我已经阅读了文档

  • I'm sure there are no duplicate issues or discussions.
    我确定没有重复的issue或讨论。

  • I'm sure it's due to AList and not something else(such as Network ,Dependencies or Operational).
    我确定是AList的问题,而不是其他原因(例如网络依赖操作)。

  • I'm sure this issue is not fixed in the latest version.
    我确定这个问题在最新版本中没有被修复。

AList Version / AList 版本

v3.41.0

Driver used / 使用的存储驱动

Describe the bug / 问题描述

全新拉取的代码,使用 pnpm dev 进行开发

前端页面报错 Failed fetching settings: home.undefined

似乎是下面这个方法返回了一个 null 的 e

(async () => {
  handleRespWithoutAuthAndNotify(
    (await r.get("/public/archive_extensions")) as Resp<string[]>,
    setArchiveExtensions,
    (e) => setErr(err().concat(e)),
  )
})

以下只是我的临时解决方案

(e) => {
  if (e != null) {
    setErr(err().concat(e));
  }
},

另外,在 alist 的配置文件 config.json 中指定 "dist_dir": "data/dist" 使用本地前端文件也报错,应该是同一个问题

Reproduction / 复现链接

Config / 配置

Logs / 日志

No response

@wutea7 wutea7 added the bug Something isn't working label Jan 29, 2025
@li-peifeng
Copy link

我现在提示 System error: TypeError: undefined is not an object (evaluating 'obj[path]') 头都大了,解决一个问题另一个又出现

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants