Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

232
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda