Closed afresh closed 2 months ago
通过F12调试,发现控制台报错:Failed to load resource: net::ERR_FILE_NOT_FOUND,分别是index-6c1d9fb8.js和index-c3fc1fbc.css文件找不到。
Failed to load resource: net::ERR_FILE_NOT_FOUND
index-6c1d9fb8.js
index-c3fc1fbc.css
排查生成的out/renderer/index.html文件,发现路径../../../../../git/kad-tool-deskt/assets/index-6c1d9fb8.js不对,正确的应该是../../../../../git/kad-tool-desktop/assets/index-6c1d9fb8.js,不知道为什么路径会被截断?
out/renderer/index.html
../../../../../git/kad-tool-deskt/assets/index-6c1d9fb8.js
../../../../../git/kad-tool-desktop/assets/index-6c1d9fb8.js
1.0.27
25.6.0
4.4.9
code: https://github.com/afresh/kad-tool-desktop
没找到原因,重新创建项目,再迁移代码就没问题了。
Describe the bug
通过F12调试,发现控制台报错:
Failed to load resource: net::ERR_FILE_NOT_FOUND
,分别是index-6c1d9fb8.js
和index-c3fc1fbc.css
文件找不到。排查生成的
out/renderer/index.html
文件,发现路径../../../../../git/kad-tool-deskt/assets/index-6c1d9fb8.js
不对,正确的应该是../../../../../git/kad-tool-desktop/assets/index-6c1d9fb8.js
,不知道为什么路径会被截断?Electron-Vite Version
1.0.27
Electron Version
25.6.0
Vite Version
4.4.9
Validations