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

73
Views
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 answers
Answer question

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 Report
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!