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运行项目,一切都很好
更多回答
我是一名优秀的程序员,十分优秀!