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

236
Views
Undefined is not an Object: "Unable to Resolve Path" in React Native JavaScript

I am trying to use path aliases in react-native without typescript. I have followed some articles to implement it using babel-plugin-module-resolver. Everything was working till yesterday and now suddenly it's showing this error. I have developed the complete frontend now was integrating APIs and suddenly this error came.

This is an attached image of the error Idk why it's coming

I tried following several guides from the internet none of them worked for me. What should I do?

{
  "presets": ["react-native"],
  "plugins": [
    ["module-resolver", {
      "cwd": "babelrc",
      "root": "./app",
      "alias": {
        "src/*": "./src/*",
        "@components": "./src/components/index",
        "@app/*": "./src/app/*",
        "cdn/": "./src/cdn/"
      }
    }]
  ]
}

This is my latest .babelrc file.

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Sometimes the solution for this kind of alias problems is to just close and restart your IDE, this happens to me when changing some stuff in tsconfig so maybe it could work in your case too.

If I recall correctly there is a command in VS Code that does that without having to close your project (Reload JavaScript Project).

about 4 years ago · Juan Pablo Isaza Report

0

Add the following to your eslintrc file to resolve the path issue:

{
  "settings": {
    "import/resolver": {
      "node": {
        "extensions": [".js", ".jsx", ".ts", ".tsx"]
      }
    }
  },
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!