Add wp-editor as a dependency of the compiled block script
Add wp-editor as a dependency of the compiled block script

Before adding this, there was an error in the JS console:
index.js?baf2:7 Uncaught TypeError: Cannot read property 'PlainText' of undefined
In this case, wp.editor is undefined.
This might not be the best solution,

But it prevents this error and the AMP block scripts run.

ampproject/amp-toolbox-php,ampproject/amp-toolbox-php