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

amis相关资源404 #5

Open
yanshuanghua opened this issue Jul 9, 2024 · 1 comment
Open

amis相关资源404 #5

yanshuanghua opened this issue Jul 9, 2024 · 1 comment

Comments

@yanshuanghua
Copy link

yanshuanghua commented Jul 9, 2024

环境

node v22.3.0

操作步骤

  1. clone项目
  2. npm install --force
  3. npm run serve

结果

项目中没有生成amis/sdk文件夹
image
image

控制台信息
> npm run serve

> [email protected] serve
> vite


  VITE v4.5.3  ready in 749 ms

  ➜  Local:   http://localhost:5173/
  ➜  Network: http://192.168.88.62:5173/
  ➜  Network: http://192.168.73.1:5173/
  ➜  Network: http://192.168.17.1:5173/
  ➜  press h to show help
[vite-plugin-static-copy] No items found.
@python-lau
Copy link

解决(自己尝试的方法):
https://github.com/baidu/amis/releases的Assets中下载:jssdk.tar.gz
例如:https://github.com/baidu/amis/releases/download/6.8.0/jssdk.tar.gz
下载后放到src同级目录的amis/sdk中
此时sdk.css在amis/sdk/sdk.css
相关页面可以正常显示了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants