There seems to be a problem with termux-notification after the last update. If the new --on-delete (which is great by the way) isn't specified there is an error.
$ termux-notification -c "test"
/data/data/com.termux/files/usr/bin/termux-notification: line 98: OPT_ON_DELETE_ACTION: unbound variable
$ termux-notification -c "test" --on-delete "ls"