-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tsconfig.json(2,14): error TS6053: File '@tsconfig/node18/tsconfig.json' not found #2085
Comments
Edit: see how to solve this here: #2085 (comment) @sammo this seems quite weird! It could help if you could provide following info: your OS, wasp version, node version, how did you start the project (I guess from open-saas? Doing In the meantime, pls try running |
@Martinsos thanks for the quick reply.
I started the project by running these commands:
I'll |
@Martinsos I just ran Thank you for the help. |
Great @sammo ! I am still curious what caused the initial issue, do you have any idea? How did you create the project first time? EDIT: Sorry, I missed the message above, I see now how you started the project! Would you mind trying creating project with |
@Martinsos I found out from my .zsh_history this error was raised by That's how I replicated it
And I got this error
|
Awesome thanks! Just to confirm, this are not logs from the first time, you actually managed to replicate this again? I wonder if this has something to do with node 18 hm, we will be looking into it. |
One more user reported the same issue: wasp-lang/open-saas#173 . @aliammari1, it could help if you could provide following info: your OS, wasp version, node version, how did you start the project (open saas? specific template? Mage?). In the meantime, pls try running |
And here is the third report: #2091 ! Super short info from it:
Interesting data so far is:
I this this is very likely connected to node 18, not sure how yet or why it started happening now. Ubuntu is probably not the cause, but probably the "delivery method", in the sense that the users are using a version of Ubuntu that comes with node 18 by default. |
@grsh50 , could you please try switching to node 20 (e.g. using @aliammari1 which node version are you using? If you are using 18, could you also try switching to 20 and tell us if that helps? |
|
Ok so it also happens with node |
Note for devs: we currently always go with |
Note for devs: I tried replicating this on my machine but failed, all works so far. Specifically, I reinstalled latest version of Wasp and ran |
thank you sir, the problem was my node version. I updated it from 18 to 20 and it worked |
Thanks for letting me know! This does make things even more complex though hah, because one user got it fixed by installing another template, while one user fixed it with using another node version, and finally none of these helped third user! Hm. Almost sounds like it is getting fixed randomly. |
Thank you for your support! :) I ran This time, compiling the Wasp project took longer, but the SDK build was almost instant. Could the issue be related to the Node version used to create the new project? Update: |
Oh that's an interesting hypothesis indeed! AHa, wait, now even the older app runs? Ok, now we have no idea again what is causing this :D. Is there any way you can replicate the initial problem again? For example going to node 18 again, and trying to run that Mage app, or maybe new app based on @sammo above managed to replicate it doing |
wasp db migrate-dev
throws an error
One more report: https://discord.com/channels/686873244791210014/1250815248395669504/1250815248395669504 . User was using node 18, but new data point is that they managed to fix it by adding
to their package.json. What also worked was switching to node 20, then that dev dependency was not needed, same like other users. |
I ran some test builds with Update:
|
Ah come on :)! I am kidding, thanks a lot, but am still surprised by inconsistency of this bug. Still, we will figure it out, one way or another! |
This is the only similar issue I found while searching around the internet: TypeStrong/ts-node#2076 It seems to be related to |
It being triggered by changes in TS version makes sense, as it started happened suddenly, that is very likely the cause! We need to pin down that TS version tighter. I would still like to better understand the exact thing that happens, but I think we have a good bet what is the cause now. |
That's not it (at least I think it isn't). @infomiho What made you think we were using Regardless, I tried installing I'll now try reproducing it with different versions of TypeScript. |
Next time this happens, we should ask our users for a zip of their projects (or at least their |
@sodic it is not any kind of special projects though, they say above they merely had it happen on creating a new Wasp project from the template. So maybe package-lock.json files would offer something unique for their installation, but the rest, including package.json, shouldn't be anything unique. Notice that even if they share their package-lock.json, it still won't capture what was installed for the purposes of the framework code (or will it?). |
Some quick analysis of information we have so far:
It seems that there is a situation, when using |
Ideas:
Other thoughts:
One problem I noticed:
|
For users running into this: Please zip the entire project that exhibits this behavior and send it to us :) |
Hi P.S: Sorry for the large file size, I just included everything for better diagnosis. |
@Moamethic Hey, thank you for the info. Could you share the error message you see? |
Sure.
|
And also, which Node version and Wasp version are you using? Thank you for reporting this 👍 Until we find out the root cause, did you maybe try using Node 20 + running |
At first I was using node 18, then I installed nvm and tried with node 20 using |
@Moamethic Hey, I'm looking at your code now. Can you maybe share the NPM version you used when you hit the bug (if you remember)? |
Unfortunately I don't remember. |
I also ran into the issue on Node 18, and switching to Node 20 fixed it |
@santolucito Please tell me you remember your NPM version when it was broken 🙏 |
I have no idea. I had spun up a Digital Ocean server and went through the install steps normally. I can redo this quickly if you want and check things. Just let me know what you want to know. |
@santolucito If you could reproduce the bug in a Digital Ocean setup, tell me the versions of:
And zip your project code - I'd be eternally grateful! I just hope you'll be able to reproduce it. This bug's pretty hard to catch. |
@sodic I sent you an email to the email listed on your profile. |
Thanks @santolucito, you're a life-saver! The bug happens only with NPM versions older To fix the problem, update your NPM version to In a regular setup: npm install -g npm@latest If you're using nvm install-latest-npm After that, run Since the bug only happens with NPM versions older than 2.5 years, and we know how to fix it, I'm closing the issue. |
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. ----------------------------------------------
🐝 --- 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 '.../mySaasApp/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: -------------------------------
❌ --- [Error] Compilation of wasp project failed: --------------------------------
1 errors found
The text was updated successfully, but these errors were encountered: