# JavaScript exception "Hurt me plenty"

**URL:** <https://forums.realmacsoftware.com/t/javascript-exception-hurt-me-plenty/52893>\
**Category:** Elements\
**Created:** [December 1, 2025, 11:33am UTC](https://forums.realmacsoftware.com/t/javascript-exception-hurt-me-plenty/52893 "2025-12-01T11:33:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![chevas](https://avatars.discourse-cdn.com/v4/letter/c/b4bc9f/32.png) [@chevas](https://forums.realmacsoftware.com/u/chevas)\
**Post date:** [December 1, 2025, 11:33am UTC](https://forums.realmacsoftware.com/t/javascript-exception-hurt-me-plenty/52893/1 "2025-12-01T11:33:34Z")

</div>

Hi there.

MBPro M2, MacOS 13.2.1, Elements 1.5.5 (23954)

Just upgraded to Elements and installed and activated it. Not sure if the Elements Cloud account has been created/activated.

Elements launches fine, but choosing any of the templates from New Project invokes a fatal error that freezes the app, requiring a Force-Quit. The same thing happened on opening a Classic project.

I’ll try and post the text of the error separately as the forum software baulked at its inclusion in this post.

---

<div class="post-metadata">

**Author:** ![chevas](https://avatars.discourse-cdn.com/v4/letter/c/b4bc9f/32.png) [@chevas](https://forums.realmacsoftware.com/u/chevas)\
**Post date:** [December 1, 2025, 11:43am UTC](https://forums.realmacsoftware.com/t/javascript-exception-hurt-me-plenty/52893/2 "2025-12-01T11:43:49Z")

</div>

Sorry, but as a new user I can’t upload the text file containing the error text and I can’t copy-paste the text either (even as a quote). Here is the start of the first line of the error:

> Something went wrong while evaluating A JavaScript exception occurred

---

<div class="post-metadata">

**Author:** ![chevas](https://avatars.discourse-cdn.com/v4/letter/c/b4bc9f/32.png) [@chevas](https://forums.realmacsoftware.com/u/chevas)\
**Post date:** [December 1, 2025, 11:45am UTC](https://forums.realmacsoftware.com/t/javascript-exception-hurt-me-plenty/52893/3 "2025-12-01T11:45:13Z")

</div>

Here is the rest of that line:

> : (function() {// Register a new languagemonaco.languages.register({ id: ‘elementsHTML’ })

---

<div class="post-metadata">

**Author:** ![pumpkin](https://avatars.discourse-cdn.com/v4/letter/p/ccd318/32.png) [@pumpkin](https://forums.realmacsoftware.com/u/pumpkin)\
**Post date:** [December 1, 2025, 11:45am UTC](https://forums.realmacsoftware.com/t/javascript-exception-hurt-me-plenty/52893/4 "2025-12-01T11:45:27Z")

</div>

Not sure if it might have to do with using Mac OSX Ventura? @dan?

---

<div class="post-metadata">

**Author:** ![chevas](https://avatars.discourse-cdn.com/v4/letter/c/b4bc9f/32.png) [@chevas](https://forums.realmacsoftware.com/u/chevas)\
**Post date:** [December 1, 2025, 11:48am UTC](https://forums.realmacsoftware.com/t/javascript-exception-hurt-me-plenty/52893/5 "2025-12-01T11:48:56Z")

</div>

Thanks, pumpkin. Ventura is listed as compatible, though.

Here is the next snippet with the New Order-esque “Hurt me plenty” invocation:

> // Register a tokens provider for the languagemonaco.languages.setMonarchTokensProvider(‘elementsHTML’, (function() {// Difficulty: “Hurt me plenty”// Language definition for HTML// This definition uses states extensively to// - match up tags.// - and to embed scripts dynamically// See also the documentation for an explanation of these techniquesreturn

---

<div class="post-metadata">

**Author:** ![tpbradley](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/tpbradley/32/25503_2.png) [@tpbradley](https://forums.realmacsoftware.com/u/tpbradley)\
**Post date:** [December 1, 2025, 1:59pm UTC](https://forums.realmacsoftware.com/t/javascript-exception-hurt-me-plenty/52893/6 "2025-12-01T13:59:12Z")

</div>

@chevas Sorry you’re having issues with this!

Would it be possible for you to update your Mac to the latest minor version (13.7.8)?

You don’t need to jump to a whole new major OS, just installing the newest point release can make a difference. We’ve tested Elements on macOS 13.7.8, and things run smoothly here, so updating might help rule out any system-level quirks.

Cheers

---

<div class="post-metadata">

**Author:** ![chevas](https://avatars.discourse-cdn.com/v4/letter/c/b4bc9f/32.png) [@chevas](https://forums.realmacsoftware.com/u/chevas)\
**Post date:** [December 2, 2025, 1:42pm UTC](https://forums.realmacsoftware.com/t/javascript-exception-hurt-me-plenty/52893/7 "2025-12-02T13:42:48Z")

</div>

Nice one, Tom.

Updating to 13.7.8 did the trick. Also updated to Elements 1.5.6, to boot.

Being slack on the updating on my part induced a bit of a pain, but not the hurt of plenty envisaged by the coder who crafted that witty aside, thanks to the support.

Cheers
