skip to Main Content

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

Dependency 'mysql:mysql-connector-java:' not found

Pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.7.10</version> <relativePath/> <!-- lookup parent from repository --> </parent> <groupId>com.example</groupId> <artifactId>demo</artifactId> <version>0.0.1-SNAPSHOT</version> <name>demo</name> <description>Demo project for Spring Boot</description> <properties> <java.version>1.8</java.version> </properties> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency>…

VIEW QUESTION

Not able to make api call using axios instance – Javascript

export class TrelloService { public instance: AxiosInstance; constructor(token: string) { this.instance = axios.create({ baseURL: `https://api.trello.com/1?key=${process.env.TRELLO_API_KEY}&token=${token}`, }); } public async getUserDetails(email: string): Promise<any> { const userDetails = await this.instance.get(`/members/${email}`); return userDetails; } public static async getUserDetails2( email: string, token: string, throwError…

VIEW QUESTION

touch : File C:UsersAppDataRoamingnpmtouch.ps1 cannot be loaded because running scripts is disabled on this system – Reactjs

I'm a beginner of learning react and Node.js. When I run touch 'index.js' command in server, It shows 'touch : File C:UserssanduAppDataRoamingnpmtouch.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.…

VIEW QUESTION
Back To Top
Search