skip to Main Content

Reactjs – How to extract session in next.js

export default function RootLayout({ children, }: Readonly<{ children: React.ReactNode; }>) { return ( <html lang="en"> <body > <SessionProvider > <Toaster/> <RegisterModal/> <LoginModal/> <Layouts> {children} </Layouts> </SessionProvider> </body> </html> Help me to extract sessions so that I can pass it to…

VIEW QUESTION

Javascript – Nest js install package

I made a package for my project and I have installed it to my repository. However I can not import the functions from that package. "compilerOptions": { "module": "commonjs", "declaration": true, "removeComments": true, "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, "target":…

VIEW QUESTION

Why nest js giving dependency injection error when i also imported modules in app module? – Javascript

this is my codes: Auth Module: @Module({ imports: [ TypeOrmModule.forFeature([User]), JwtModule.register({ secret: 'secret', signOptions: { expiresIn: '365d', } }) ], controllers: [AuthController], providers: [AuthService], }) export class AuthModule {} Auth Controller: @Controller("api") export class AuthController { constructor(private readonly appService: AuthService,…

VIEW QUESTION

Uploading to S3 Bucket with Nest.js error – Javascript

I am trying to upload to an s3 bucket in next and have a couple of errors I am using the package: https://www.npmjs.com/package/@aws-sdk/client-s3 My Controller is: @Post('test-doc') @UseInterceptors(FileInterceptor('file')) async testDocument(@UploadedFile() file: Express.Multer.File) { return this.assetService.upload(file); } With my service: async…

VIEW QUESTION
Back To Top
Search