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

1.6K
Views
Migración de TypeOrm - Error: no se puede encontrar el módulo

Estoy intentando ejecutar npm typeorm migration: ejecutar en mi proyecto y muestra el siguiente error.

Error durante la ejecución de la migración: Error: no se puede encontrar el módulo 'src/permission/permission.entity'

Error durante la ejecución de la migración: no se puede encontrar el "permiso" del módulo

ormconfig.js

 module.exports = { type: 'mysql', host: 'localhost', port: 33066, username: 'root', password: '123456', database: 'admin', synchronize: false, entities: ['./src/**/*.entity.ts'], migrations: ['./src/migrations/*.ts'], cli: { entitiesDir: './ts/', migrationsDir: './src/migrations', }, };

¿Qué estoy haciendo mal? Este es mi repositorio de git: https://github.com/wesoz/udemy-nest-admin/tree/td/seed

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Debe utilizar una ruta de importación relativa.

 import { Permission } from '../permission/permission.entity';
over 4 years ago · Santiago Trujillo Report

0

Debe agregar el decorador @entity () a la clase de entidad

over 4 years ago · Santiago Trujillo 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!