# Kan de js in mijn component niet compileren SyntaxError: Private field moet worden gebruikt in een omringende klasse

**URL:** https://meta.discourse.org/t/cannot-get-the-js-in-my-component-to-compile-syntaxerror-private-field-must-be-used-in-an-enclosing-class/327492
**Category:** Development
**Created:** [21 september 2024 om 04:52 UTC](https://meta.discourse.org/t/cannot-get-the-js-in-my-component-to-compile-syntaxerror-private-field-must-be-used-in-an-enclosing-class/327492 "2024-09-21T04:52:21Z")
**Posts on this page:** 1
**Showing post:** 14

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [21 september 2024 om 17:05 UTC](https://meta.discourse.org/t/cannot-get-the-js-in-my-component-to-compile-syntaxerror-private-field-must-be-used-in-an-enclosing-class/327492/14 "2024-09-21T17:05:22Z")

</div>

Cool so you will have a good idea of their strengths and weaknesses.

I wrote the first AI Bot for Discourse called [Chatbot](https://meta.discourse.org/t/discourse-chatbot/256652), so I have some insight too.

---

_[View the full topic](https://meta.discourse.org/t/cannot-get-the-js-in-my-component-to-compile-syntaxerror-private-field-must-be-used-in-an-enclosing-class/327492)._
