can you help me debug a code i wrote nestjs ?
- User
can you help me debug a code i wrote nestjs ?
Assistant
Of course! I'd be happy to help you debug your NestJS code. Please provide me with the error message you are encountering, along with the relevant code snippet, and I'll do my best to help you identify and fix the issue.
- User
so i created a user authentication using nest , but in the auth.service.ts , i imported a class from user.dto.ts . the errors tells me "error TS2305: Module '"./dto/user.dto"' has no exported member 'CreateUserDto'." but the code in user.dto.ts has the export class, here is the code :
"// src/auth/dto/user.dto.ts import { IsString, IsNotEmpty } from 'class-validator';
export class CreateUserDto { @IsString() @IsNotEmpty() username: string;
@IsString() @IsNotEmpty() password: string; } "
Overall the code is clean , i have no error . the error only occurs when i start my nestjs app .
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.