Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

430
Views
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.

about 4 years ago · Santiago Trujillo
1 answers
Answer question

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

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!