I got this error with this code:

// restart after 5 seconds
delay(this.serviceOptions.heartbeatRetryInterval)

The interval could not be null, but still i got this strict error. Therefore i fixed this using the non-null assertion operation:

// restart after 5 seconds
delay(this.serviceOptions.heartbeatRetryInterval!)

 

Comments