• Empleos
  • Sobre nosotros
  • profesionales
    • Inicio
    • Empleos
    • Cursos y retos
    • Preguntas
    • Profesores
  • empresas
    • Inicio
    • Publicar vacante
    • Nuestro proceso
    • Precios
    • Pruebas Online
    • Nómina
    • Blog
    • Comercial
    • Calculadora de salario

0

342
Vistas
Why I got this error Cannot find module 'nestjs/common' or its corresponding type declarations

I am creating a controller in nest js this is file auth.controller.ts

import { Controller } from 'nestjs/common';
@Controller()
export class AppController {}

Why I get this error? error TS2307: Cannot find module 'nestjs/common' or its corresponding type declarations.

I installed all dependencies, deleted the dist folder, and rerun yarn start:dev.

Here is all my dependencies.

Here is all my dependencies.

almost 3 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

The package is called @nestjs/common, not nestjs/common

Then:

import { Controller } from '@nestjs/common';

tip: read the docs carefully https://docs.nestjs.com/controllers

almost 3 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Nuestro proceso Comercial
Legal
Términos y condiciones Política de privacidad
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recomiéndame algunas ofertas
Necesito ayuda