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

191
Views
¿Cómo necesito un archivo json con requirejs y lo guardo como una lista?

Lo intenté

 const some_variable = require(['C:/Users/Admin/some_folder/something.json']); const the_list_i_want_to_save_in = JSON.parse(some_variable);

Y obtuve el error

 Unexpected token u in JSON at position 1 at JSON.parse (<anonymous>) at <anonymous>:1:6

Busqué aquí preguntas similares y noté que la u es porque some_variable es "indefinida". Entonces, ¿cómo cargo correctamente el archivo json y por qué no está definido en este caso? Nunca usé requirejs antes, así que no sé cómo funciona.

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!