Anybody know what this MiniRacer::RuntimeError (TypeError: moment.tz is not a function) error is?

I’ve been getting this error frequently now and it’s beginning to become a large annoyance. Running ./launcher restart app temporarily resolves the issue, but after a bit it will return.

I get this error when I edit posts especially, I’ve had a history in the past where if a Date/Time stamp is inserted such as this → 2024-11-11T05:00:00Z, then it would result in the error.

Can someone please examine this error and figure out where the source is, or if anyone has encountered this before know a better workaround? Thanks.

MiniRacer::RuntimeError (TypeError: moment.tz is not a function) lib/pretty_text.rb:239:in `block in markdown' lib/pretty_text.rb:686:in `block in protect' lib/pretty_text.rb:686:in `synchronize' lib/
mini_racer (0.14.1) lib/mini_racer.rb:237:in `eval_unsafe'
mini_racer (0.14.1) lib/mini_racer.rb:237:in `block (2 levels) in eval'
mini_racer (0.14.1) lib/mini_racer.rb:378:in `timeout'
mini_racer (0.14.1) lib/mini_racer.rb:236:in `block in eval'
mini_racer (0.14.1) lib/mini_racer.rb:234:in `synchronize'
mini_racer (0.14.1) lib/mini_racer.rb:234:in `eval'
lib/pretty_text.rb:239:in `block in markdown'
lib/pretty_text.rb:686:in `block in protect'
lib/pretty_text.rb:686:in `synchronize'
lib/pretty_text.rb:686:in `protect'
lib/pretty_text.rb:176:in `markdown'
lib/pretty_text.rb:302:in `cook'
plugins/automation/lib/discourse_automation/scripts/append_last_checked_by.rb:31:in `block (2 levels) in <main>'
plugins/automation/app/models/discourse_automation/automation.rb:146:in `trigger!'
plugins/automation/lib/discourse_automation/event_handlers.rb:296:in `block in handle_after_post_cook'
activerecord (7.1.5) lib/active_record/relation/batches.rb:82:in `each'
activerecord (7.1.5) lib/active_record/relation/batches.rb:82:in `block in find_each'
activerecord (7.1.5) lib/active_record/relation/batches.rb:158:in `block in find_in_batches'
activerecord (7.1.5) lib/active_record/relation/batches.rb:396:in `block in batch_on_unloaded_relation'
<internal:kernel>:187:in `loop'
activerecord (7.1.5) lib/active_record/relation/batches.rb:372:in `batch_on_unloaded_relation'
activerecord (7.1.5) lib/active_record/relation/batches.rb:269:in `in_batches'
activerecord (7.1.5) lib/active_record/relation/batches.rb:157:in `find_in_batches'
activerecord (7.1.5) lib/active_record/relation/batches.rb:81:in `find_each'
plugins/automation/lib/discourse_automation/event_handlers.rb:271:in `handle_after_post_cook'
plugins/automation/plugin.rb:213:in `block (2 levels) in activate!'
lib/plugin/filter_manager.rb:17:in `block in apply'
lib/plugin/filter_manager.rb:17:in `each'
lib/plugin/filter_manager.rb:17:in `apply'
lib/plugin/filter.rb:15:in `apply'
app/models/post.rb:350:in `cook'
app/models/post.rb:871:in `block in <class:Post>'
activesupport (7.1.5) lib/active_support/callbacks.rb:448:in `instance_exec'
activesupport (7.1.5) lib/active_support/callbacks.rb:448:in `block in make_lambda'
activesupport (7.1.5) lib/active_support/callbacks.rb:202:in `block (2 levels) in halting'
activesupport (7.1.5) lib/active_support/callbacks.rb:707:in `block (2 levels) in default_terminator'
activesupport (7.1.5) lib/active_support/callbacks.rb:706:in `catch'
activesupport (7.1.5) lib/active_support/callbacks.rb:706:in `block in default_terminator'
activesupport (7.1.5) lib/active_support/callbacks.rb:203:in `block in halting'
activesupport (7.1.5) lib/active_support/callbacks.rb:598:in `block in invoke_before'
activesupport (7.1.5) lib/active_support/callbacks.rb:598:in `each'
activesupport (7.1.5) lib/active_support/callbacks.rb:598:in `invoke_before'
activesupport (7.1.5) lib/active_support/callbacks.rb:119:in `block in run_callbacks'
activesupport (7.1.5) lib/active_support/callbacks.rb:141:in `run_callbacks'
activesupport (7.1.5) lib/active_support/callbacks.rb:952:in `_run_save_callbacks'
activerecord (7.1.5) lib/active_record/callbacks.rb:441:in `create_or_update'
activerecord (7.1.5) lib/active_record/timestamp.rb:127:in `create_or_update'
activerecord (7.1.5) lib/active_record/persistence.rb:718:in `save'
activerecord (7.1.5) lib/active_record/validations.rb:49:in `save'
activerecord (7.1.5) lib/active_record/transactions.rb:309:in `block in save'
activerecord (7.1.5) lib/active_record/transactions.rb:365:in `block in with_transaction_returning_status'
activerecord (7.1.5) lib/active_record/connection_adapters/abstract/database_statements.rb:342:in `transaction'
activerecord (7.1.5) lib/active_record/transactions.rb:361:in `with_transaction_returning_status'
activerecord (7.1.5) lib/active_record/transactions.rb:309:in `save'
activerecord (7.1.5) lib/active_record/suppressor.rb:52:in `save'
lib/post_revisor.rb:499:in `update_post'
lib/post_revisor.rb:460:in `revise'
lib/post_revisor.rb:454:in `revise_and_create_new_version'
lib/post_revisor.rb:357:in `revise_post'
lib/post_revisor.rb:279:in `block in revise!'
activerecord (7.1.5) lib/active_record/connection_adapters/abstract/transaction.rb:535:in `block in within_new_transaction'
activesupport (7.1.5) lib/active_support/concurrency/null_lock.rb:9:in `synchronize'
activerecord (7.1.5) lib/active_record/connection_adapters/abstract/transaction.rb:532:in `within_new_transaction'
activerecord (7.1.5) lib/active_record/connection_adapters/abstract/database_statements.rb:344:in `transaction'
activerecord (7.1.5) lib/active_record/transactions.rb:212:in `transaction'
lib/post_revisor.rb:278:in `revise!'
app/controllers/posts_controller.rb:273:in `update'
actionpack (7.1.5) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
actionpack (7.1.5) lib/abstract_controller/base.rb:224:in `process_action'
actionpack (7.1.5) lib/action_controller/metal/rendering.rb:165:in `process_action'
actionpack (7.1.5) lib/abstract_controller/callbacks.rb:259:in `block in process_action'
activesupport (7.1.5) lib/active_support/callbacks.rb:121:in `block in run_callbacks'
app/controllers/application_controller.rb:424:in `block in with_resolved_locale'
i18n (1.14.6) lib/i18n.rb:353:in `with_locale'
app/controllers/application_controller.rb:424:in `with_resolved_locale'
activesupport (7.1.5) lib/active_support/callbacks.rb:130:in `block in run_callbacks'
activesupport (7.1.5) lib/active_support/callbacks.rb:141:in `run_callbacks'
actionpack (7.1.5) lib/abstract_controller/callbacks.rb:258:in `process_action'
actionpack (7.1.5) lib/action_controller/metal/rescue.rb:25:in `process_action'
actionpack (7.1.5) lib/action_controller/metal/instrumentation.rb:74:in `block in process_action'
activesupport (7.1.5) lib/active_support/notifications.rb:206:in `block in instrument'
activesupport (7.1.5) lib/active_support/notifications/instrumenter.rb:58:in `instrument'
activesupport (7.1.5) lib/active_support/notifications.rb:206:in `instrument'
actionpack (7.1.5) lib/action_controller/metal/instrumentation.rb:73:in `process_action'
actionpack (7.1.5) lib/action_controller/metal/params_wrapper.rb:261:in `process_action'
activerecord (7.1.5) lib/active_record/railties/controller_runtime.rb:32:in `process_action'
actionpack (7.1.5) lib/abstract_controller/base.rb:160:in `process'
actionview (7.1.5) lib/action_view/rendering.rb:40:in `process'
rack-mini-profiler (3.3.1) lib/mini_profiler/profiling_methods.rb:115:in `block in profile_method' 
actionpack (7.1.5) lib/action_controller/metal.rb:227:in `dispatch'
actionpack (7.1.5) lib/action_controller/metal.rb:309:in `dispatch'
actionpack (7.1.5) lib/action_dispatch/routing/route_set.rb:49:in `dispatch'
actionpack (7.1.5) lib/action_dispatch/routing/route_set.rb:32:in `serve'
actionpack (7.1.5) lib/action_dispatch/journey/router.rb:51:in `block in serve'
actionpack (7.1.5) lib/action_dispatch/journey/router.rb:131:in `block in find_routes'
actionpack (7.1.5) lib/action_dispatch/journey/router.rb:124:in `each'
actionpack (7.1.5) lib/action_dispatch/journey/router.rb:124:in `find_routes'
actionpack (7.1.5) lib/action_dispatch/journey/router.rb:32:in `serve'
actionpack (7.1.5) lib/action_dispatch/routing/route_set.rb:882:in `call'
lib/middleware/omniauth_bypass_middleware.rb:64:in `call'
rack (2.2.10) lib/rack/tempfile_reaper.rb:15:in `call'
rack (2.2.10) lib/rack/conditional_get.rb:40:in `call'
rack (2.2.10) lib/rack/head.rb:12:in `call'
actionpack (7.1.5) lib/action_dispatch/http/permissions_policy.rb:36:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:399:in `call'
lib/middleware/csp_script_nonce_injector.rb:12:in `call'
config/initializers/008-rack-cors.rb:14:in `call'
rack (2.2.10) lib/rack/session/abstract/id.rb:266:in `context'
rack (2.2.10) lib/rack/session/abstract/id.rb:260:in `call'
actionpack (7.1.5) lib/action_dispatch/middleware/c