Meta - unable to create default meta
Trying to follow https://trpc.io/docs/server/metadata#default-meta-chaining-and-shallow-merging
I set the type of the meta add it to the builder and want to set default but seems there is no typing for the meta in the create to set the default. Am I missing something ?
11 Replies
Have you reloaded your language server since upgrading?
the defaultMeta key should be there whether you set
.meta<>()
or not, so this is a weird one unless you just need to reloadYeah, I've restarted TS, Invalidated all cache and restarted IDE. Doesn't seem to pick it up
I can't even find any definition in source code about
defaultMeta
In the source code in node modules, what’s the package.json version?
10.16.0
And yeah if I even define it it seems not working meta is undefined
Oh you know what
I don’t think we released that yet
Aaaa I seee 😄
Let me ping Alex
sure no worries
Thanks for flagging it, I think there was an internal issue after the release last week so probably this got forgotten
Looks like 10.17 is out now 🙂
Sweet. Will chceck in a moment
Nice. Working as expected now. Thanks !