todo list: server crashes
Tried replicating the todo list project and at first it ran and then it is crashing, is it some npm error because it is quite frequently happening.
Please help me understand the error!:wasplang:
10 Replies
Hi @S A H I L. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
I'm sorry to hear that you're experiencing issues with your Todo list project in Wasp. Based on the information you've provided, it's hard to pinpoint the exact cause of the server crashes. However, I can provide some general advice based on similar issues reported in the past.
1. NPM Dependency Issues: There was an instance where a user faced an issue due to a bad deploy of
nodemon
, an NPM dependency used by Wasp. The issue was resolved by updating nodemon
to its latest version. You might want to check if all your NPM dependencies are up-to-date. You can do this by running npm update
in your project directory. Source (https://github.com/wasp-lang/wasp/issues/646)
2. Server Setup Function: If you've defined a serverSetup
function in your project, make sure it's defined with the correct arguments. A user reported a server crash when they defined the serverSetup
function without any arguments. The issue was resolved by adding a context
argument to the function. Source (https://github.com/wasp-lang/wasp/issues/1035)
3. Missing Module Errors: There have been instances where users faced server crashes due to missing modules. This usually happens if there's an issue with the way modules are imported in your project. Make sure all your imports are correct and all the required modules are installed. Source (https://github.com/wasp-lang/wasp/issues/159)
If none of the above solutions work, it would be helpful if you could provide more details about the error message you're seeing when the server crashes. This would help in diagnosing the issue more accurately.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @S A H I L, 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?So you are trying to do our tutorial if I understood correctly? https://wasp-lang.dev/docs/tutorial/create
Some extra questions:
- You are running Wasp in WSL2, right?
- Which Wasp version are you running, 0.14.0?
- Which
node
version are you running?
- Have you tried doing wasp clean
and then wasp start
?1. Creating a New Project | Wasp
You'll need to have the latest version of Wasp installed locally to follow this tutorial. If you haven't installed it yet, check out the QuickStart guide!
hm and do you know what fs-monkey package is? might be permissions issue. but
wasp clean
ight helpOkay thanks I guess it's some npm issue, so cleared the npm cache and waiting for wasp to install all the dependencies again
Yeah everything is running on the latest version.
The installation process takes time on my pc.
Thanks for the message.
Awesome! Any idea what helped? You upgraded Wasp version + cleaned npm cache?
Yeah thanks for the advice.
There was an npm error for Arctic package that I guess wasp uses for other social media authentic like Google and GitHub, so that is not working as of now if I enable that in the todo project.
Wohooo @S A H I L, you just became a Waspeteer level 1!
@S A H I L can you please share the error message? ANy suggestions on how can we replicate that?
Including @miho
Could you please answer these questions so we have more info 🙂
I'm outside, I will share it later.