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

1.3K
Views
Module not found: Error: Resolving to directories is not possible with the exports field (request was ./)

I upgraded angular from v11 to v12. I am getting this error and I dont know why. there are no changes in build configuration or tsconfig.

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Simple example

Wrong import { BehaviorSubject } from 'rxjs/';

Correct import { BehaviorSubject } from 'rxjs';

I faced this issue during a migration. Search for something similar in your code to fix the issue. In my case the component causing the issue was mentioned in the error message.

over 4 years ago · Santiago Trujillo Report

0

Check your imports, you may find a path that ends with a '/', just remove it and it will work!

over 4 years ago · Santiago Trujillo Report

0

import { HttpClientModule } from '@angular/common/http/';

just remove / from last of your import as Thomas Renger mentioned above.

like this

import { HttpClientModule } from '@angular/common/http';

over 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!