gpt4 book ai didi

Hot Module Replacement not working with default svelte project on wsl2(热模块更换不适用于WSL2上的默认Svelte项目)

转载 作者:bug小助手 更新时间:2023-10-24 20:34:41 27 4
gpt4 key购买 nike



Following the instructions on the docs

按照文档上的说明进行操作


npm create svelte@latest my-app
cd my-app
npm install
npm run dev

I created and ran a svelte project on wsl2. The project was created and the server ran properly but, HMR was not working.

我在WSL2上创建并运行了一个精巧的项目。项目已创建,服务器运行正常,但HMR不工作。


更多回答
优秀答案推荐

After a long time spent bashing my head on the keyboard I found out that vite is unable to detect file changes in wsl2

在花了很长时间敲击键盘后,我发现VTE无法检测WSL2中的文件更改


So I just installed node on windows and created then ran the project through cmd and every thing was fine

所以我只需在Windows上安装节点并创建,然后通过cmd运行项目,一切都很好


更多回答

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com