Relative Content

Tag Archive for nestjs

Downgrade nestjs/cli

i just started to work with nestjs. the problem is when i want to add a module and use this command:
nest g module <module_name>
id get this error

Nestjs can’t generate

enter image description here
I have this error on github codespaces and my local machine(windows 11).
Node version is 20
Package.json as nest new default.
Every this default from nestcli except elsinore file. I add prettier rule.

Guidelines for Structuring Modules and Services in NestJS

I am new to NestJS and I am having trouble understanding the guidelines for creating new modules versus creating new services within the same module. Specifically, I am unsure when to decide to create a new module or keep functionality within an existing module.

Nest js Files Validation Issue

I’m working on a NestJS application where I need to handle the upload of multiple image files (nic_front, nic_back, live_photograph) and validate them based on file type (JPEG or PNG) and file size (up to 2MB). I’ve tried using FileFieldsInterceptor for file handling and ImageFileValidationPipe for validation, but it seems to only work for a single file at a time.