-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
special casesProblems you may encounterProblems you may encounter
Description
运行环境:windows 11
node版本:22.14.0
问题描述:
1、拉取最新代码,pnpm i ,npm run dev;
2、系统正常运行,登录后,修改template和script标签任意地方,终端均会提示 “hmr update .....”,但页面没有任何变化,F5后页面更新。
临时解决方案:
方法一:注释installSvgIcon(app); 这行代码
方法二:vite.config中将port:3333修改为其他未被占用的端口如8099
以上两种方法均可让热更新生效。
结论:
引起热更新失效的原因为unplugin-svg-component 插件,该插件githup上的Issues能找到对应的描述,但问题未解决。
修复建议:
建议在文档内添加说明,修改端口号即可。
Metadata
Metadata
Assignees
Labels
special casesProblems you may encounterProblems you may encounter