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

239
Views
Unable to resolve module 'hooks.js'

Hello,

I am currently trying to display a Leaflet map on a react-native application. I use the Expo Snack online editor for testing. I imported the "leaflet" and "react-leaflet" packages:

{
  "dependencies": {
    "leaflet": "1.8.0",
    "react-leaflet": "4.0.0",
    "expo-constants": "~13.1.1",
    "@expo/vector-icons": "^13.0.0",
    "react-native-paper": "4.9.2"
  }
}

but when importing "react-leaflet" in the App.js file, I have the following error:

react_leaflet error (Unable to resolve module 'hooks.js')

Can you help me, thanks.

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