Error when creating plugin in Kibana 8.6 - Refused to execute script from 'url/bundles/plugin/dataDemo/1.0.0/dataDemo.plugin.js' because its MIME type ('application/json') is not executable, and strict MIME type checking is enabled

Hi,

I just started Kibana in development mode . It works.

I then created a plugin using plugin generator. When running kibana after that, it gives an error in the browser

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

Thanks

Hello there @Sheereen

What version are you working with?

Also, may I see a screenshot of the error?