WaspW
Wasp2y ago
Gwaggli

tsconfig update for v0.13.1

Hey Guys, in your migration guide you state, that one should add two new lines to the
tsconfig.json
file.
When I do so, my typings for Server-Operations don't work anymore.
.js
import { GetMyOperation } from 'wasp/server/operations'

type functionType = GetMyOperation<ArgsType, ReturnType>
type params = Parameters<functionType>
type returnn = ReturnType<functionType>


This was working just fine before and still is with v0.13.1 but not anymore after adding this tsconfig.
Then the type import cannot be resolved and thus params is unknown and returnn is any.

Any idea on what i am doing wrong here?

If i add only "target": "esnext" to the config it already fails. And i can not add moduleResolution on its own.

@sodic You suggested this change in an other thread, so maybe you are the right person to ask? (sorry to bother you)
image.png
Was this page helpful?