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

75
Vistas
Problem with using Bootstrap datetimepicker in clojurescript

I am trying to use Bootstrap datetimepicker in my clojurescript project as below :

(.datetimepicker (js/$ "#dateid")

but am ending up with Uncaught TypeError for datetimepicker function.

Error: Uncaught TypeError: $(...).Bk is not a function

On some analysis I found a reason for this may be the optimization done by google closure compiler. A possible resolution for this is by creating extern.js file and adding function names so that the names are not optimized in the closure compiler .

I tried to modify my extern.js but it doesnt help My extern.js looks like this .

 var $ = function (arg1, arg2) {};
    $.prototype.val = function(arg1) {};
    var selectpicker = function() {};
    $.datetimepicker = function(arg1) {};
    var datetimepicker = function() {};
                      

I am still getting the same error .

I need to know whats wrong with my extern.js so that i can avoid the bootstrap-datetimepicker functions not getting optimized which causes Unknown Type exception

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

The google closure compiles the clojurescript's js files to an optimized file. But this also causes problems when we try to use js libraries and do not use extern to map the names . so the function name Bk is an optimised name , but it should have got mapped using the extern.js file . I am not sure how to do that exactly .

about 4 years ago · Juan Pablo Isaza Denunciar
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