# Discourse-jitsi component not working

**URL:** <https://meta.discourse.org/t/discourse-jitsi-component-not-working/290861>\
**Category:** Bug\
**Tags:** jitsi-video\
**Created:** [January 8, 2024, 1:03pm UTC](https://meta.discourse.org/t/discourse-jitsi-component-not-working/290861 "2024-01-08T13:03:08Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)\
**Post date:** [January 8, 2024, 1:46pm UTC](https://meta.discourse.org/t/discourse-jitsi-component-not-working/290861/3 "2024-01-08T13:46:43Z")

</div>

There is an error:

> [THEME 81 ‘Discourse Jitsi’] Compile error: SyntaxError: “/discourse/theme-81/discourse/components/modal/insert-jitsi: Identifier ‘themePrefix’ has already been declared. (11:7)\n\n 9 | import DModal from "discourse/components/d-modal";\n 10 | import TextField from "discourse/components/text-field";\n\> 11 | import themePrefix from "discourse/helpers/theme-prefix";\n | ^\n 12 | import i18n from "discourse-common/helpers/i18n";\n 13 | export default class InsertJitsi extends Component {\n 14 | @tracked” (discourse/components/modal/insert-jitsi.gjs)

[`themePrefix`](https://github.com/discourse/discourse/blob/main/lib/theme_javascript_compiler.rb#L261) function is already available in a component context, and the error happens because the import tries to overwrite that. This is related to the latest [PR #20](https://github.com/discourse/discourse-jitsi/pull/20).

> <https://github.com/discourse/discourse-jitsi/blob/main/javascripts/discourse/components/modal/insert-jitsi.gjs#L8>

EDIT: made a PR 👍

[https://github.com/discourse/discourse-jitsi/pull/21](https://github.com/discourse/discourse-jitsi/pull/21)

---

_[View the full topic](https://meta.discourse.org/t/discourse-jitsi-component-not-working/290861)._
