yii2/bootstrap4/ActiveForm error

I’m having problem when I use the bootstrap4 activeform.
I am receiving this error

Undefined class constant ‘self::VALIDATION_STATE_ON_INPUT’

Kindly help guys. Thank you.

Would you please post versions of Yii 2 and Bootstrap4 package? Also a full stacktrace of the error would help.