Red_Demon
WWasp
•Created by Red_Demon on 2/11/2025 in #đŸ™‹questions
Migration from 0.15 to 0.16 - Invalid value for the "compilerOptions.outDir" field in tsconfig.js
Yes, it's been there in all my tries. I pasted my tsconfig on my first message, in case you want to take a look.
I also just copy-pasted it directly from the template repo (all the fields were the same, just different order) and still the same errors. I really don't understand how this can be happening.
36 replies
WWasp
•Created by Red_Demon on 2/11/2025 in #đŸ™‹questions
Migration from 0.15 to 0.16 - Invalid value for the "compilerOptions.outDir" field in tsconfig.js
Hi @Filip . I would prefer not to, at this moment, sorry.
I even added this:
"exclude": [
"node_modules/openai"
]
but no luck. Baically, Wasp is ignoring the file... Would it be useful if I share the Wasp generated tsconfig files?
36 replies
WWasp
•Created by Red_Demon on 2/11/2025 in #đŸ™‹questions
Migration from 0.15 to 0.16 - Invalid value for the "compilerOptions.outDir" field in tsconfig.js
small reminder đŸ™‚
36 replies
WWasp
•Created by Red_Demon on 2/11/2025 in #đŸ™‹questions
Migration from 0.15 to 0.16 - Invalid value for the "compilerOptions.outDir" field in tsconfig.js
I merged the new version of the template with my app and I'm still getting the same (I don't see how this should affect, but hey)
36 replies
WWasp
•Created by Red_Demon on 2/11/2025 in #đŸ™‹questions
Migration from 0.15 to 0.16 - Invalid value for the "compilerOptions.outDir" field in tsconfig.js
I didn't solve it, no. No rush, thank you sodic.
36 replies
WWasp
•Created by Red_Demon on 2/11/2025 in #đŸ™‹questions
Migration from 0.15 to 0.16 - Invalid value for the "compilerOptions.outDir" field in tsconfig.js
Thanks Vinny, I also tried that. That's why I was saying that I don't understand how it is done in OpenSaaS đŸ˜¦
36 replies
WWasp
•Created by Red_Demon on 2/11/2025 in #đŸ™‹questions
Migration from 0.15 to 0.16 - Invalid value for the "compilerOptions.outDir" field in tsconfig.js
Hi,
What I don't understand is that the OpenSaaS template also uses the openai library and the same tsconfig.js as me, but I don't think @ts-nocheck is used anywhere, so how is it done there in order to not get those errors?
I tried the same version of the openai library as the template, but same problem. @kapa.ai
36 replies
WWasp
•Created by Red_Demon on 2/11/2025 in #đŸ™‹questions
Migration from 0.15 to 0.16 - Invalid value for the "compilerOptions.outDir" field in tsconfig.js
I'm trying to use "openai": "^4.24.7" now, I'll report back. Thanks!
36 replies
WWasp
•Created by Red_Demon on 2/11/2025 in #đŸ™‹questions
Migration from 0.15 to 0.16 - Invalid value for the "compilerOptions.outDir" field in tsconfig.js
Sorry for wasting your time đŸ™‚ What happened is that I tried to upgrade, I saw a bunch of errors, I rolled back and I continued implementing other stuff. Now I tried again and since I remembered I got errors I took for granted it was this one, without realizing I hadn't upgraded Wasp again.
Anyways the actual errors I was getting were related to the openai libraries. I know this is not directly related to Wasp, but since OpenSaaS uses them, I wonder how you solve them there? @kapa.ai
[ Wasp ] ../../../../node_modules/openai/src/_vendor/partial-json-parser/parser.ts(182,18): error TS2345: Argument of type 'any' is not assignable to parameter of type 'never'.
[ Wasp ] ../../../../node_modules/openai/src/core.ts(1181,11): error TS18047: 'modifiedArg' is possibly 'null'.
[ Wasp ] ../../../../node_modules/openai/src/internal/qs/utils.ts(10,16): error TS2345: Argument of type 'string' is not assignable to parameter of type 'never'.
[ Wasp ] ../../../../node_modules/openai/src/internal/qs/utils.ts(179,9): error TS2322: Type 'any' is not assignable to type 'never'.
[ Wasp ] ../../../../node_modules/openai/src/internal/qs/utils.ts(189,9): error TS2322: Type 'number' is not assignable to type 'never'.
[ Wasp ] ../../../../node_modules/openai/src/internal/qs/utils.ts(194,9): error TS2322: Type 'number' is not assignable to type 'never'.
[ Wasp ] ../../../../node_modules/openai/src/internal/qs/utils.ts(202,7): error TS2322: Type 'number' is not assignable to type 'never'.
[ Wasp ] ../../../../node_modules/openai/src/internal/qs/utils.ts(228,67): error TS2345: Argument of type 'any' is not assignable to parameter of type 'never'.
[ Wasp ] ../../../../node_modules/openai/src/internal/qs/utils.ts(230,19): error TS2345: Argument of type 'any' is not assignable to parameter of type 'never'.
[ Wasp ] ../../../../node_modules/openai/src/internal/qs/utils.ts(260,19): error TS2345: Argument of type 'T' is not assignable to parameter of type 'never'.
36 replies