sunner / ChatALL

Concurrently chat with ChatGPT, Bing Chat, Bard, Alpaca, Vicuna, Claude, ChatGLM, MOSS, 讯飞星火, 文心一言 and more, discover the best answers
http://chatall.ai
Apache License 2.0
14.33k stars 1.55k forks source link

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

Open sigezhao opened 7 months ago

sigezhao commented 7 months ago

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

  1. 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

sunner commented 7 months ago

你的 npm 是哪个版本?