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

构建前端报错 #4821

Closed
4 tasks done
Greyisttot opened this issue Jul 21, 2023 · 6 comments
Closed
4 tasks done

构建前端报错 #4821

Greyisttot opened this issue Jul 21, 2023 · 6 comments
Labels
bug Something isn't working invalid This doesn't seem right

Comments

@Greyisttot
Copy link

Please make sure of the following things

  • I have read the documentation.
  • I'm sure there are no duplicate issues or discussions.
  • I'm sure it's due to alist and not something else(such as Dependencies or Operational).
  • I'm sure I'm using the latest version

Alist Version / Alist 版本

dd5c0e560d116e91f13e552fe36880b6ff511af1

Driver used / 使用的存储驱动

CentOS Stream 9, node-20.4.0, npm-9.7.2, pnpm-8.6.9

Describe the bug / 问题描述

[vite:load-fallback] Could not load /alist/alist-web/solid-router/src (imported by src/main.tsx): ENOENT: no such file or directory, open '/alist/alist-web/solid-router/src'
error during build:
Error: Could not load /alist/alist-web/solid-router/src (imported by src/main.tsx): ENOENT: no such file or directory, open '/alist/alist-web/solid-router/src'
 ELIFECYCLE  Command failed with exit code 1.

Reproduction / 复现链接

yum update && yum upgrade

wget https://mirrors.aliyun.com/nodejs-release/v20.4.0/node-v20.4.0-linux-x64.tar.gz -O /usr/local/node-v20.4.0-linux-x64.tar.gz

tar -zxvf /usr/local/node-v20.4.0-linux-x64.tar.gz -C /usr/local

mv /usr/local/node-v20.4.0-linux-x64 /usr/local/node-v20.4.0

echo 'export NODE_HOME=/usr/local/node-v20.4.0' >> /etc/profile

echo 'export PATH=$PATH:$NODE_HOME/bin' >> /etc/profile

source /etc/profile

npm config set registry "https://registry.npm.taobao.org"

npm config get registry

node -v

npm -v

npm install -g pnpm

pnpm -v

cd /

yum install -y git

mkdir alist

cd alist

git clone https://github.com/alist-org/alist.git

git clone https://github.com/alist-org/alist-web.git

cd alist-web

wget https://crowdin.com/backend/download/project/alist/zh-CN.zip

unzip zh-CN.zip

node ./scripts/i18n.mjs

rm zh-CN.zip

pnpm install && pnpm run build

Logs / 日志

No response

@Greyisttot Greyisttot added the bug Something isn't working label Jul 21, 2023
@github-actions
Copy link

@xhofe xhofe added the invalid This doesn't seem right label Jul 21, 2023
@github-actions
Copy link

Hello @Greyisttot, your issue is invalid and will be closed.
你好 @Greyisttot,你的issue无效,将被关闭。

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 21, 2023
@Greyisttot
Copy link
Author

#1763

@Greyisttot
Copy link
Author

AlistGo/alist-web#5

@Greyisttot
Copy link
Author

这样克隆才行
git clone --recurse-submodules https://github.com/alist-org/alist-web.git

@anwen-anyi
Copy link
Contributor

anwen-anyi commented Jul 21, 2023

这样克隆才行 git clone --recurse-submodules https://github.com/alist-org/alist-web.git

https://anwen-anyi.github.io/index/build/linux.html
你可以参考一下这个教程,你也没说有什么错误信息~

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

No branches or pull requests

3 participants