const messages = new Drupal.Message(); messages.add('test message');
I get the following error on the console log:
drupal.js?v=8.8.5:13 Uncaught TypeError: Drupal.Message is not a constructor.
How can I include this API?
2- As I can see in message.es6.js, there is an option to set message type: error, warning and status. How to pass these params once I get the function working?
Reference Documentation: https://www.drupal.org/node/2930536