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

290
Views
ReferenceError: Invalid left-hand side in assignment / syntax-error

My code for a website of forum (blog) as followed :

import { AUTH } from '../actionTypes/actionTypes';
import * as api from '../api';

export default signin (formData, history) = async (dispatch) => {
    try {
        const { data } = await api.signIn(formData);

        dispatch({ type: AUTH, data });

        history.push('/');
    } catch (error) {
        console.log(error);
    }
};

but I receive this error , line (4):

"ReferenceError: Invalid left-hand side in assignment"

How to fix it?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I changed default by const , and added the "=" after signin and it worked !! thank you all

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!