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

211
Views
I'm getting error after importing react-native-calendar-picker

I'm new to react-native. I'm getting below errors after importing react-native-calendar-picker:

 ERROR    [Error: InternalError Metro has encountered an error: While trying to resolve module `react-native-calendar-picker` from file `C:\Users\Name\Project\app\App\Components\DatePickerPopup\index.js`, the package `C:\Users\Name\Project\app\node_modules\react-native-calendar-picker\package.json` was successfully found. However, this package itself specifies a `main` module field that could not be resolved (`C:\Users\Name\Project\app\node_modules\react-native-calendar-picker\CalendarPicker`. Indeed, none of these files exist:

  * C:\Users\Name\Project\app\node_modules\react-native-calendar-picker\CalendarPicker(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.svg|.native.svg|.svg)
  * C:\Users\Name\Project\app\node_modules\react-native-calendar-picker\CalendarPicker\index(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.svg|.native.svg|.svg): C:\Users\name\Project\app\node_modules\metro\src\node-haste\DependencyGraph.js (376:17)

  374 |
  375 |         if (error instanceof InvalidPackageError) {
> 376 |           throw new PackageResolutionError({
      |                 ^
  377 |             packageError: error,
  378 |             originModulePath: from,
  379 |             targetModuleName: to]
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

If you have already installed the module, then it seems that metro bundler has not been restarted. Try restarting the bundler.

about 4 years ago · Juan Pablo Isaza 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!