Do I need to do something for the hot reload to work?
I've been trying to use the open saas template, but the hot reload isn't working for me. What do I need to do to make it work properly?
6 Replies
Hi @ReStart. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Hot reloading should work out of the box with Wasp. However, there are some known issues with hot reloading when using Wasp on Windows with WSL (Windows Subsystem for Linux). If your project is on the Windows file system, hot reloading might not work. This is due to an issue with WSL2 and not Wasp itself.
To resolve this, you should move your project into the Linux file system root directory. This will enable WSL to detect changes in your project and trigger hot reloads. You can still use your Windows-based editor to edit your files, as Linux is interoperable with Windows.
If you're still having issues, check your terminal for any errors when you run
wasp start
. Also, check your browser's developer console for any errors and share them if possible. This could help identify if there's a specific issue with your setup.
For more information, you can refer to this Github issue (https://github.com/wasp-lang/wasp/issues/603) where this problem was discussed.
If you're using Gitpod, you might need to open the 3001 port and set the WASP_WEB_CLIENT_URL
environment variable in .env.server
to match your client URL. You also probably need to set the REACT_APP_API_URL
to your server URL on Gitpod. You can refer to this Discord thread (https://discord.com/channels/686873244791210014/1217758453326680095) for more details.
If none of these solutions work, please provide more details about your setup and any error messages you're seeing so we can help you troubleshoot further.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @ReStart, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist:
Perhaps try again in 15mins?Hey
Yoo
did you finally found a solution to this?
You having hot reload issues with saas template or with any wasp apps?
@ReStart @Killshot which OS are you using? We have a known issue on Windows where your project should be in the Linux file system and not the Windows file system for the hot reload to work.
From our docs:
If you are using WSL2, make sure that your Wasp project is not on the Windows file system, but instead on the Linux file system. Otherwise, Wasp won't be able to detect file changes, due to the issue in WSL2.
I was just trying to help the guy.
I am not having any issues.
I am on windows.
Oooh, sorry I misunderstood 🙂 Thank you for your help!