W
Wasp-lang5mo ago
Robby

rollup causing initiating error

I am getting this error upon attempting to wasp start a fresh project:
[ Wasp ] tsconfig.json(2,14): error TS6053: File '@tsconfig/node18/tsconfig.json' not found. [ 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/hildrobby/MyApp/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'. I have tried setting the module Resolution to node16, nodenext, and bundler but none of them have worked. I have also found the parseAst.d.ts file from the roll up repo and manually put it in the folder, but that is not working either.
3 Replies
kapa.ai
kapa.ai5mo ago
Hi @Robby. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Hmm, I don't know enough to give you a confident answer yet. The knowledge sources provided do not contain information about the specific error you're encountering with rollup/parseAst and tsconfig.json. However, there are some general steps you can take when encountering issues with Wasp: 1. Ensure that your environment meets the requirements for Wasp (https://wasp-lang.dev/docs/#requirements). 2. Try to update your Wasp to the latest version. 3. If the problem persists, consider opening an issue on the Wasp Github (https://github.com/wasp-lang/wasp/issues) detailing the problem you're encountering. Remember to include as much information as possible, such as your operating system, Wasp version, and the exact steps you took that led to the error. This will help the Wasp team diagnose and potentially fix the issue. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Robby, 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?
martinsos
martinsos5mo ago
It's a relatively new bug we haven't fixed yet (but will soon!): in the meantime pls try switching your node version to 20, that should do it.
martinsos
martinsos5mo ago
Btw we are tracking the issue here so check it out for more details: https://github.com/wasp-lang/wasp/issues/2085 . Also, if you can write a comment there with details of your setup that might help us with fixing it! Thanks
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