Error launching a new wasp project
HI! I'm starting to explore Wasp, but I've already come across a problem: simply trying to create a new project and run it with wasp start, I get these errors: anyone have any ideas?
I use wasp on a WSL2
Wasp version 0.14.0
Node version v18.19.0
5 Replies
Hi @arghittu_thms. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
The error message you're seeing indicates that the Wasp project failed to compile due to an SDK build failure. This could be due to a variety of reasons, including incorrect Node.js version, issues with the project setup, or problems with the file system.
Here are a few things you could try:
1. Check your Node.js version: Wasp requires a specific Node.js version to run correctly. As per the Github Issue (https://github.com/wasp-lang/wasp/issues/1396), Wasp depends on the latest Node.js LTS version which is Node.js 18 at the moment. You can check your Node.js version by running
node -v
in your terminal. If you're not on the correct version, you might need to switch to it using a version manager like nvm
. You can switch to the correct version by running nvm use 18
.
2. Check your project setup: Make sure your Wasp project is set up correctly. According to the Wasp documentation (https://wasp-lang.dev/docs/tutorial/project-structure), a typical Wasp project has a specific file structure. Make sure your project adheres to this structure.
3. Check your file system: If you're 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 an issue in WSL2 (https://github.com/microsoft/WSL/issues/4739).
If none of these solutions work, you might want to reach out to the Wasp community on Discord (https://discord.gg/rzdnErX) for further assistance.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @arghittu_thms, 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?@sodic maybe you take this one
Ok, I've update my Node.js to v18.20.4, but nothing have change
I managed to solve the problem: all you need to do is install the correct version of NodeJS (18.20.4 LTS) and recreate the project from 0 (running
wasp start
again won't be enough)Hey @arghittu_thms ! We are working on fixing this bug at the moment, sorry about that, it has been a quite weird one. We are tracking it here https://github.com/wasp-lang/wasp/issues/2085 .
What helped most people was to go form node 18 to node 20, and also recreating the project or running
wasp clean
.
I am glad to hear you got it solved for you for now! We should have a proper fix soon.Hey, we've found a solution for this.
For anyone stumbling upon this thread, here it is: https://github.com/wasp-lang/wasp/issues/2085#issuecomment-2276137271
Sorry for the troubles π
GitHub
tsconfig.json(2,14): error TS6053: File '@tsconfig/node18/tsconfig....
Hi - I'm trying to start a new wasp project but running into this error on wasp db migrate-dev command. Do you know what the issue could be? β
--- Database successfully set up. ----------------...