front / gutenberg-js

JavaScript only version of the WordPress Gutenberg editor (DEPRECATED)
GNU General Public License v2.0
390 stars 42 forks source link

Runtime error when running with angular buildoptimizations on #14

Closed arnvanhoutte closed 5 years ago

arnvanhoutte commented 5 years ago

How to reproduce:

1: clone https://github.com/arnvanhoutte/ng-gutenberg

2: run npm install

3: run ng serve --prod

4: go to localhost:4200 and look in console.

if you followed these steps you should see this in console:

"Super expression must either be null or a function, not undefined"

If you go to angular.json, and you turn off "optimization" on line 49 and build again, then everything does work correctly