ai-shifu / ai-shifu/ChatALL

[BUG]import "material-design-icons/iconfont/material-icons.css"; ERROR

Open
#587 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
16.5k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug / 描述问题

启动失败,import "material-design-icons/iconfont/material-icons.css";找不到iconfont/material-icons.css;
下面两个包都安装了

"material-design-icons": "^3.0.1",
"material-design-icons-iconfont": "^6.7.0",

### To Reproduce / 复现步骤

1. npm install
2. npm run electron:serve
3. 报错:ERROR Failed to compile with 1 error 4:30:58 PM

error in ./src/main.js

Module not found: Error: Can't resolve 'material-design-icons/iconfont/material-icons.css' in '/home/aigc/best_tools/ChatALL/src'

ERROR in ./src/main.js 7:0-59
Module not found: Error: Can't resolve 'material-design-icons/iconfont/material-icons.css' in '/home/aigc/best_tools/ChatALL/src'

webpack compiled with 1 error
4. ll node_modules/material-design-icons/
total 36
drwxr-xr-x 12 root root 4096 Oct 16 14:56 alert
drwxr-xr-x 3 root root 4096 Oct 16 14:56 av
-rwxr-xr-x 1 root root 3899 Oct 16 14:56 gulpfile.babel.js
-rw-r--r-- 1 root root 48 Oct 16 14:56 index.js
-rw-r--r-- 1 root root 11357 Oct 16 14:56 LICENSE
-rw-r--r-- 1 root root 872 Oct 16 14:56 package.json
-rw-r--r-- 1 root root 1995 Oct 16 14:56 README.md
没有上面的目录

### Expected behavior / 期望行为

可以直接安装成功

### Screenshots / 截图

_No response_

### Devtools Info / 开发者工具信息

### OS and version / 操作系统版本

Centos7.9

### ChatALL version / ChatALL 版本

main

### Network / 网络

VPN

### Additional context / 其它相关信息

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.