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

222
Views
what does this error mean this came while running a nestjs module created

this error came after running npm run start:dev I did not understand what it does mean?

import { Injectable } from "@nestjs/common";
import { User } from "./users.model";



@Injectable
export class UsersService{

users : Array<User>=[]

getUsers(){
return this.users;
}
}

enter image description here

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

0

This is maybe a typo. You wrote @Injectable instead of @Injectable().

about 4 years ago · Juan Pablo Isaza Report

0

import { Injectable } from "@nestjs/common";
import { User } from "./users.model";

@Injectable()
export class UsersService {
  users: Array<User> = [];

  getUsers() {
    return this.users;
  }
}

The decorator needs to be corrected to @Injectable().

about 4 years ago · Juan Pablo Isaza Report

0

Syntax error

You have: @Injectable

Needed: @Injectable()

Example:

https://docs.nestjs.com/providers

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!