Search code examples
javascriptnode.jsnestjsnest

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


Solution

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