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

148
Vistas
Defining window events - firefox & other browsers

I'm trying to pass a TouchEvent to a method using angular. When I define the event as TouchEvent, everything works in Chrome, but Firefox will throw a ReferenceError, "TouchEvent is not defined". When I define the event as window.TouchEvent, the event works with webpack-dev-server even though my editor highlights "window" as an error with, "Cannot find namespace 'window'". The major issue with this is that the window error prevents me from compiling my app using webpack.

My fix has been to pass in the TouchEvent as event:any, but if there's a better fix, I'd like to know. I'd also appreciate an understanding of why this is happening if someone knows. I'm using webpack2 and angular4. Thanks in advance.

over 4 years ago · Santiago Trujillo
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