When I create and run plugins, the following error occurs.
Refused to execute script from 'http://localhost:5601/mvk/9007199254740991/bundles/plugin/helloKibana/1.0.0/helloKibana.plugin.js'
because its MIME type ('application/json') is not executable, and strict MIME type checking is enabled.
It's the same problem as the previous topic, but there was no solution.
Is ms_sql the id of your plugin?
And can you also check if u already have a plugin that id?
Or have tried installing or creating another plugin with same id before, but later might have deleted it? If yes, then delete kibana cache and run again.
As you told me, I solved the error about ms_sql, but I keep getting MIME type errors.
I'm not good at React, so I don't know where to specify the type exactly.
Moreover, mime type errors can come up if you have specified any incorrect file path in your plugin code.
And also, when you inspect your kibana page (right click -> choose inspect)
=> go to Network tab
=> there in the Name column, you will find <plugin_id>.chunk.js -> select it
=> You will find the General details, request and response headers for that request
=> Check the content-type in Response headers.... it should be application/javascript;
Moreover... I had encountered this error when I had shifted to 8.6after installing my custom plugin in another instance , few weeks after they released the version.
I then shifted back to the previous stable release, 8.5.3.... then there were no problems.
I'll try installing 8.6 and doing the same again.... so we can confirm whether it's an issue with the 8.6 version.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.