Using kibana "discover" in an iframe

There is an example how to embed Kibana on external webpage: Embed dashboard or visualization on an external web page with specified filters - #2 by tsullivan

Error: Definition of plugin "licensing" should be a function (/bundles/plugin/licensing.bundle.js).

Did you build Kibana locally?