Issue with Custom Plugin Causing "Elastic did not load properly"

Hi @Antim_K,

Can you check your Chrome DevTools console to see what errors are there? That would give you more of a clue.

Are you building a UI plugin or server plugin? Looking at the steps you've specified one step I see missing is running the plugin itself. If you see a 404 error similar to the below that could be the reason:

GET http://localhost:5601/XXXXXXXXXXXX/bundles/plugin/kibanaExamplePlugin/1.0.0/kibanaExamplePlugin.plugin.js 404 (Not Found)

kibanaExamplePlugin:1 Refused to execute script from 'http://localhost:5601/XXXXXXXXXXXX/bundles/plugin/kibanaExamplePlugin/1.0.0/kibanaExamplePlugin.plugin.js' because its MIME type ('application/json') is not executable, and strict MIME type checking is enabled.

If that's not the issue please share the Chrome DevTools console error. That would be the best way to identify what is wrong with your plugin.

Hope that helps!

1 Like