# Plugin generator generates a plugin that causes an error

**URL:** <https://discuss.elastic.co/t/plugin-generator-generates-a-plugin-that-causes-an-error/325492>\
**Category:** Kibana\
**Tags:** kibana-plugin-development\
**Created:** [February 14, 2023, 3:21pm UTC](https://discuss.elastic.co/t/plugin-generator-generates-a-plugin-that-causes-an-error/325492 "2023-02-14T15:21:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![przemek\_ironcode](https://avatars.discourse-cdn.com/v4/letter/p/ea5d25/32.png) [@przemek\_ironcode](https://discuss.elastic.co/u/przemek_ironcode)\
**Post date:** [February 14, 2023, 3:21pm UTC](https://discuss.elastic.co/t/plugin-generator-generates-a-plugin-that-causes-an-error/325492/1 "2023-02-14T15:21:19Z")

</div>

Hi,

I am trying to create a plugin for the latest version of Kibana [8.6]. I have used the plugin [generator](https://www.elastic.co/guide/en/kibana/current/plugin-tooling.html) for this purpose. Unfortunately, after generating the plug-in and starting the server, I see this error:

> Elastic did not load properly. Check the server output for more information.

In the Chrome console, I see only this error:

> Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXi3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.

Has anyone encountered a similar error? How do you fix it?

Thanks,  
Przemek

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 14, 2023, 3:21pm UTC](https://discuss.elastic.co/t/plugin-generator-generates-a-plugin-that-causes-an-error/325492/2 "2023-03-14T15:21:48Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![tiagocosta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tiagocosta/32/40045_2.png) [@tiagocosta](https://discuss.elastic.co/u/tiagocosta)\
**Post date:** [March 24, 2023, 8:01pm UTC](https://discuss.elastic.co/t/plugin-generator-generates-a-plugin-that-causes-an-error/325492/3 "2023-03-24T20:01:36Z")

</div>

This problem will be solved once the following PR gets merged [fix(NA): external plugins development flow with the new modern package plugins in place by mistic · Pull Request #153562 · elastic/kibana · GitHub](https://github.com/elastic/kibana/pull/153562)

Thanks for reporting it.
