Open guicaiyue opened 1 year ago
系统:windows11 使用了 astro 做的前端,除了自己的主题使用,还用了模板 theme-astro-starter 执行 pnpm build的时候都会重复路径前面字符,导致文件不存在 如文件路径:F:\theme-astro-starter-main\templates\index.html 报错路径:F:\F:\theme-astro-starter-main\templates\index.html
相关截图:
请问这个怎么解决?
我试了试,应该是我在windows上执行操作,astro 给的路径最前面带了个/ 例如 /C:/Users/29413/halo2-dev/themes/theme-shoka/templates/index.html 以至于后面报错
系统:windows11 使用了 astro 做的前端,除了自己的主题使用,还用了模板 theme-astro-starter 执行 pnpm build的时候都会重复路径前面字符,导致文件不存在 如文件路径:F:\theme-astro-starter-main\templates\index.html 报错路径:F:\F:\theme-astro-starter-main\templates\index.html
相关截图:![image](https://user-images.githubusercontent.com/43875377/236277263-f271de10-c46e-48f5-9b4a-ba17c6024dd1.png)
请问这个怎么解决?