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

414
Views
ERROR [ExceptionHandler] No repository for "Product" was found. Nest.js

I am trying to register and migrate a new entity (Nest.js) but it fails with the following error text:

ERROR [ExceptionHandler] No repository for "Product" was found. Looks like this entity is not registered in the current "default" connection?

product.entity.ts

import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";


@Entity()
export class Product {
  @PrimaryGeneratedColumn()
  id: number;

  @Column()
  title: string;

  @Column()
  image: string;
}

product.module.ts

import { Module } from '@nestjs/common';
import { ProductController } from './product.controller';
import { TypeOrmModule } from "@nestjs/typeorm";
import { Product } from "./product.entity";

@Module({
  imports: [
    TypeOrmModule.forFeature([Product])
  ],
  controllers: [ProductController]
})
export class ProductModule {}

Any ideas?

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

0

You could use the auto load entities feature to circumvent that. (like I said on discord)

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!