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

187
Views
Uncaught (in promise) TypeError: callback is not a function at eval (index.js?74ed:313:1)

I don't know what is wrong with the callback in the last line in vue2. The webpage runs well but has red error showing "Uncaught (in promise) TypeError: callback is not a function at eval (index.js?74ed:313:1)"

const login = (force, callback) => {
  var token = localStorage.getItem('token')
  if (!token) {
    return
  }
  if (!force) {
    force = 0
  }
  let browser = Global.config.browser === 'qt' ? 10 : 11
  app.post('/active', {
    'domain': domain,
  })
    .then(response => {
      if (response.data.error === 0) {
        
        var back = 0
        callback(back)
      } else {
        back = 1
        callback(back)
      }
    })
    .catch(error => {
      if (error.response) {
        var back = 3
      } else {
        back = 2
      }
      callback(back)
    })
}
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!