Sapphire - Imagine a framework
Sapphire - Imagine a framework

discordjs-support

Root Question Message

Chillihero
Chillihero2/18/2023
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.
Chillihero
Chillihero2/18/2023
I have the feeling that it could be related to the env but this is just a wild guess
Favna
Favna2/18/2023
TS is never env specific
Favna
Favna2/18/2023
this is purely exclusively related to your node_modules
Favna
Favna2/18/2023
i.e. your Node version, using the same package manager and version of that, installing with immutable/frozen lockfile, etc
Favna
Favna2/18/2023
And this people is why everyone should use Docker for production, so the entire environment is fully reproducible lol
Chillihero
Chillihero2/18/2023
yeaa I am not familiar with docker unfortunately
ContactFrequently Asked QuestionsJoin The DiscordBugs & Feature RequestsTerms & Privacy