Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

231
Views
Uncaught TypeError: Class constructor Controller cannot be invoked without 'new'

I migrated from "stimulus": "^2.0.0" to "@hotwired/stimulus": "^3.0.0"

I got an error Uncaught TypeError: Class constructor Controller cannot be invoked without 'new' at new _default (message_list_controller.js:1)

I'm not sure what's wrong with message_list_controller.js I just changed from import { Controller } from "stimulus" to import { Controller } from "@hotwired/stimulus"

import { Controller } from "@hotwired/stimulus"

export default class extends Controller {
    connect() {
        this.scrollToBottom()
    }

    scrollToBottom() {
        this.element.scrollTop = this.element.scrollHeight
    }
}

Can anyone advise how can I fix this

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!