# Custom Plugin Error

**URL:** <https://discuss.elastic.co/t/custom-plugin-error/366589>\
**Category:** Kibana\
**Created:** [September 15, 2024, 3:24pm UTC](https://discuss.elastic.co/t/custom-plugin-error/366589 "2024-09-15T15:24:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![OAJ](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/oaj/32/137265_2.png) [@OAJ](https://discuss.elastic.co/u/OAJ)\
**Post date:** [September 15, 2024, 3:24pm UTC](https://discuss.elastic.co/t/custom-plugin-error/366589/1 "2024-09-15T15:24:36Z")

</div>

Hi all,

I developing a custom plugin to embed a simple webview into kibana dashboard. The build is successful but when i startup kibana i get these errors in console:

```auto
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'report-sample' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-Vf/5lhWIh6ub3ANk6a6rqRaf7x7HUixyrKDFs2axDL0='), or a nonce ('nonce-...') is required to enable inline execution.

Failed to load resource: the server responded with a status of 404 (Not Found)

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

```

I only ran yarn build in my plugin folder and then started kibana

Any ideas why?

---

<div class="post-metadata">

**Author:** ![rlueder](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rlueder/32/141403_2.png) [@rlueder](https://discuss.elastic.co/u/rlueder)\
**Post date:** [February 16, 2025, 2:06am UTC](https://discuss.elastic.co/t/custom-plugin-error/366589/2 "2025-02-16T02:06:43Z")

</div>

@OAJ a few months late but there's a PR up that fixes this issue so the auto generator script works as expected: [fix: add REACT\_18 env variable to kbn-plugin-helpers bazel config by rlueder · Pull Request #211121 · elastic/kibana · GitHub](https://github.com/elastic/kibana/pull/211121)
