compareVersion failure

I have developed and tested an app in RStudio. However, when deploying it to Docker using the rocker/shiny base image, I encounter the following error:
'''
Warning in utils::compareVersion(ver, .shinyServerMinVersion) :

NAs introduced by coercion

Error in if (a[k] > b[k]) return(1) else if (a[k] < b[k]) return(-1L) :

missing value where TRUE/FALSE needed
'''
Could this error be related to a Shiny version issue? I have been troubleshooting for a while but have not found a solution. My computer is M2 chip.

Thanks.

Yes, I think this is possibly an interaction where you'd either need an older R version, or a newer package version for whichever package the error is coming from.