W
Wasp-langβ€’4mo ago
Don Bugito

Actions.ts doesn't have hot reload?

My actions file isn't reloading. The frontend stuff reloads but my actions file doesn't when I make a change, and I have to manually restart server.
9 Replies
kapa.ai
kapa.aiβ€’4mo ago
Hi @Don Bugito. 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 with Wasp, including for the actions.ts file. However, there are a few things that could potentially cause issues: 1. If you're using WSL2 and your project is on the Windows file system, hot reloading won't work due to an issue with WSL2. The recommended solution is to move your project to the Linux file system. source (https://github.com/wasp-lang/wasp/issues/603) 2. Make sure you're running wasp start in your project directory. If you're not seeing any output about new changes in the terminal where you ran wasp start, or if the webpage isn't updating, there might be an issue. source (https://discord.com/channels/686873244791210014/1213985542480597022) 3. If you're still having issues, it might be helpful to check for any errors in your terminal or in your browser's developer console. source (https://discord.com/channels/686873244791210014/1213985542480597022) If none of these solutions work, it might be helpful to provide more information about your setup and the exact steps you're taking so we can better assist you. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Don Bugito, 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?
miho
mihoβ€’4mo ago
Did anything Kapa mentioned help? 😊
Don Bugito
Don Bugitoβ€’4mo ago
no
miho
mihoβ€’4mo ago
You'll need to give a bit more info so we can help you πŸ™ƒ what is your OS? What did you try?
martinsos
martinsosβ€’4mo ago
Are you on WSL on Windows? If so then your files must be on Linux fielsystem, not windows, that is a WSL bug. Other than that, do you see any errors in the terminal?
neogeofun
neogeofunβ€’4mo ago
I had a similar issue. Close the IDE, and do a wasp clean. That seems to fix it. I think it is some nodemon or node cache issue.
miho
mihoβ€’4mo ago
Do you see any errors in the terminal before do your fix?
neogeofun
neogeofunβ€’4mo ago
No, it just was showing an older version of the code persistently. On the terminal output I mean, my vscode was updated to my latest changes (obviously) but the terminal output was showing the older output with the older code.
miho
mihoβ€’4mo ago
Ok, next time it happens, please copy the terminal output here and we'll see what is going on πŸ™‚
Want results from more Discord servers?
Add your server