Type T[P] does not satisfy constraint Option<any>

When building my project on my ubuntu server, with tsc, I get those errors, its more a TS issue than djs but I'm clueless, cause it works on my local windows machine.
No description
3 Replies
chillihero
chillihero2y ago
I have the feeling that it could be related to the env but this is just a wild guess
Favna
Favna2y ago
TS is never env specific this is purely exclusively related to your node_modules i.e. your Node version, using the same package manager and version of that, installing with immutable/frozen lockfile, etc And this people is why everyone should use Docker for production, so the entire environment is fully reproducible lol
chillihero
chillihero2y ago
yeaa I am not familiar with docker unfortunately
Want results from more Discord servers?
Add your server