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

227
Views
Las rutas jsconfig.json no funcionan al importar

Error: No se puede encontrar el paquete '@tables/db_question.js' importado de... `src\routes\question_route.js Este es mi directorio de archivos:

 root |── src | └── database | | └── tables | | └── db_question.js | |── routes | └── question_route.js |── node_modules

db_pregunta.js

 export function post() { }

pregunta_ruta.js

 import express from "express"; const questionRouter = express.Router(); // import * as questionDatabase from "../database/tables/db_question.js"; import * as questionDatabase from "@tables/db_question.js"; // this doesn't work // POST /question questionRouter.post('/', (req, res, next) => { res.send("works") }) export default questionRouter;

Así que estoy importando desde src/database/tables/db_question.js a src/routes/question_route.js No parece haber muchas respuestas de jsconfig.json en stackoverflow o en la web...

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!