W
Waspβ€’6mo ago
arghittu_thms

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?
🐝 --- Starting compilation and setup phase. Hold tight... ------------------------


🐝 --- Compiling wasp project... --------------------------------------------------


βœ… --- Successfully completed npm install. ----------------------------------------


🐝 --- Setting up database... -----------------------------------------------------


βœ… --- Database successfully set up. ----------------------------------------------


🐝 --- Building SDK... ------------------------------------------------------------


[ Wasp ] tsconfig.json(2,14): error TS6053: File '@tsconfig/node18/tsconfig.json' not found.
[ Wasp ] ../../../../node_modules/@testing-library/jest-dom/types/jest.d.ts(1,23): error TS2688: Cannot find type definition file for 'jest'.
[ Wasp ] ../../../../node_modules/@testing-library/jest-dom/types/jest.d.ts(9,27): error TS2304: Cannot find name 'expect'.
[ Wasp ] ../../../../node_modules/vitest/node_modules/vite/dist/node/index.d.ts(5,41): error TS2307: Cannot find module 'rollup/parseAst' or its corresponding type declarations.
[ Wasp ] There are types at '/home/arghittu_thms/development/personal/todoapp-wasp/node_modules/vitest/node_modules/rollup/dist/parseAst.d.ts', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'.

❌ --- [Error] Your wasp project failed to compile: -------------------------------

- SDK build failed with exit code: 2


❌ --- [Error] Compilation of wasp project failed: --------------------------------

1 errors found
🐝 --- Starting compilation and setup phase. Hold tight... ------------------------


🐝 --- Compiling wasp project... --------------------------------------------------


βœ… --- Successfully completed npm install. ----------------------------------------


🐝 --- Setting up database... -----------------------------------------------------


βœ… --- Database successfully set up. ----------------------------------------------


🐝 --- Building SDK... ------------------------------------------------------------


[ Wasp ] tsconfig.json(2,14): error TS6053: File '@tsconfig/node18/tsconfig.json' not found.
[ Wasp ] ../../../../node_modules/@testing-library/jest-dom/types/jest.d.ts(1,23): error TS2688: Cannot find type definition file for 'jest'.
[ Wasp ] ../../../../node_modules/@testing-library/jest-dom/types/jest.d.ts(9,27): error TS2304: Cannot find name 'expect'.
[ Wasp ] ../../../../node_modules/vitest/node_modules/vite/dist/node/index.d.ts(5,41): error TS2307: Cannot find module 'rollup/parseAst' or its corresponding type declarations.
[ Wasp ] There are types at '/home/arghittu_thms/development/personal/todoapp-wasp/node_modules/vitest/node_modules/rollup/dist/parseAst.d.ts', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'.

❌ --- [Error] Your wasp project failed to compile: -------------------------------

- SDK build failed with exit code: 2


❌ --- [Error] Compilation of wasp project failed: --------------------------------

1 errors found
I use wasp on a WSL2 Wasp version 0.14.0 Node version v18.19.0
5 Replies
kapa.ai
kapa.aiβ€’6mo ago
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?
miho
mihoβ€’6mo ago
@sodic maybe you take this one
arghittu_thms
arghittu_thmsOPβ€’6mo ago
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)
martinsos
martinsosβ€’6mo ago
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.
Filip
Filipβ€’2mo ago
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. ----------------...
Want results from more Discord servers?
Add your server