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

167
Views
Why is my backend console errors giving me errors regarding my front end

Console Error image

Getting an error saying i cant use import regarding my front end code when im trying to run node index.... i havent had this issue till now when i just got back to this project.

I already have type": "module", insde my pacakage.json for my backend folder. im just a little confused why its giving me a syntax error in my backend console for code thats in my front end client folder I tried "type": "module", in my front ends package.json but then that causes issues with my front end code and wont run things.

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

0

Since react is written with JSX, you need to transpile the JSX into javascript. Trying to run a JSX file with node is going to result in an error because node will only run plain javascript. It may be a bit difficult to set up a transpiler like babel, so it is recommended that you use the create-react-app command in the terminal.

npx create-react-app nameofmy-app

and then to run the app:

npm start

This will start the build process, which will transpile your JSX into javascript, and then run a server that you can access in the browser.

After creating this new react app you will have to import your react files from your previous project directory.

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!