#SyntaxError: Unexpected token '??='

1 messages · Page 1 of 1 (latest)

restive pulsar
#

i know that error means i should update my nodejs version, but if there's any way to build without syntax like that?

neat nacelle
#

could also just do

let thing: undefined;
if(typeof thing === "undefined"){
  thing = "This is undefined";
}
#

or if you don't want to check for undefined specifically

let thing: undefined | null;
if(!thing){
  thing = "This is falsy";
}
#

also did you update your bun types?