12,680 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
10
views
Extend lintstaged config in NX monorepo
I have an Nx monorepo and an api application (Nest.js). I've created a base lintstaged.config.js in the root directory and want to extend it in every application. When I try to commit, I get the error ...
-4
votes
0
answers
54
views
NestJS dependency conflicts [closed]
How do you fix NestJS dependency conflicts? I've been trying to host my back-end on render but they won't let me. The specific dependency is
0
votes
0
answers
27
views
Nest JS dependency injection
I'm trying to fully understand how modules DI works and I'm struggling with one thing.
I have sample app:
-- API MODULE
all controllers here
-- USER MODULE
APPLICATION MODULE
DOMAIN MODULE
...
-1
votes
1
answer
64
views
Which is best way to implement Oauth2.0 with STATE parameter prevent CSRF in server (Nestjs)? [closed]
I want to use state parameter in the server (Nestjs) to implement an authentication flow. There are 2 ways to storing the state for verify later (when navigate to callback URL). Client app & ...
-1
votes
1
answer
57
views
Stripe Checkout Subscription Mode: Saved Payment Methods Not Displaying Despite Correct Configuration [closed]
I'm implementing Stripe Checkout Sessions for subscriptions in a NestJS application, and I cannot get saved payment methods to display on the checkout page despite following all official Stripe ...
0
votes
0
answers
43
views
NestJS converting mongodb snake case to camel case format but it returns undefined
I'm currently trying to create the model using nestjs mongoose schema, and i want to convert the mongodb data from snake case to camel case in my schema layer like this:
export type ...
-4
votes
0
answers
44
views
What are some of the best practices while developing audit logging in NestJS [closed]
So I am working with this project where we have to implement Audit Logs. Out goal includes when the user logs in, when some data is being changed by the user, when the user signs out all things should ...
-2
votes
0
answers
29
views
How to make NestJS project files use LF line endings by default instead of CRLF? [closed]
When I create a new NestJS project, all the files use CRLF line endings. Also, when I generate files using the Nest CLI, they are CRLF by default.
I want all files to use LF line endings by default.
I’...
1
vote
2
answers
93
views
Validating file type by NestJS with UploadedFile decorator
I have a very simple validation pipe for accepting MS Word and PDF files.
@UploadedFile(
new ParseFilePipe({
validators: [
new FileTypeValidator({ fileType: '.(doc|docx|pdf)' })...
0
votes
0
answers
34
views
nestjs use i18n in decorators of class-validator without indicate one by one
I'm researching that can I use i18n for the messages of validation exceptions. For example:
create-user.dto.ts
export default class createUserDto {
@MinLength(5)
@IsString()
name: string;
}...
0
votes
1
answer
44
views
Dependency Inversion in NestJS
I'm trying to use Dependency Inversion in Nestjs. I'm trying to use a hexagonal architecture. For the purpose of this question I've created a fake simplified example with three modules in two ...
0
votes
0
answers
51
views
how to use fastify accept application/json no body
curl --request POST 'http://127.0.0.1:3000/' --header 'Content-Type: application/json;'
response
Body cannot be empty when content-type is set to 'application/json'
import { NestFactory } from '@...
2
votes
1
answer
49
views
How can I use "ConfigModule" that I imported into the root module in other modules?
I need some help about use imported config module using in another modules.
This is my root module (app.module.ts):
@Module({
imports: [
ConfigModule.forRoot({ isGlobal: true }),
AuthModule,
...
1
vote
0
answers
43
views
Nx/NestJS - Empty dependencies list on package.json after build
I'm trying to create a Nx workspace(monorepo) with a NestJS app inside it (I'm fairly new to both Nx and Node.js/NestJS ecosystem).
I run the following command to create a new Nx workspace.
npx create-...
6
votes
2
answers
155
views
npm i successful but no @types/node
I'm trying to run a NestJS project that worked perfectly before, but after a full reset of my Mac I'm hitting a weird TypeScript error:
src/health/health.service.ts:13:20 - error TS2580: Cannot find ...