WordPress Gutenberg How to make TextControl Required?

This could possibly done using lockPostSaving

Some code example ➡ https://github.com/WordPress/gutenberg/pull/16713

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)