Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to resolve module lodash/inRange #2568

Open
ALTHGA opened this issue Dec 3, 2024 · 0 comments
Open

Unable to resolve module lodash/inRange #2568

ALTHGA opened this issue Dec 3, 2024 · 0 comments

Comments

@ALTHGA
Copy link

ALTHGA commented Dec 3, 2024

Please make our job easier by filling this template out to completion. If you're requesting a feature instead of reporting a bug, please feel free to skip the Environment and Reproducible Demo sections.

Description

I updated my project and I'm using the new version of react-native 0.76, now I'm having this problem

If there's an error message, please paste the full terminal output and error message in this code block:

 Error: Unable to resolve module lodash/inRange from /Users/henrique/Projects/ArcadeX/app/node_modules/react-native-calendars/src/infinite-list/index.js: lodash/inRange could not be found within the project or in these directories:
  node_modules
  ../../../node_modules
> 1 | import inRange from 'lodash/inRange';
    |                      ^
  2 | import debounce from 'lodash/debounce';
  3 | import noop from 'lodash/noop';
  4 | import React, { forwardRef, useCallback, useEffect, useMemo, useRef } from 'react';
    at ModuleResolver.resolveDependency (/Users/henrique/Projects/ArcadeX/app/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:148:15)
    at DependencyGraph.resolveDependency (/Users/henrique/Projects/ArcadeX/app/node_modules/metro/src/node-haste/DependencyGraph.js:235:43)
    at /Users/henrique/Projects/ArcadeX/app/node_modules/metro/src/lib/transformHelpers.js:160:21
    at resolveDependencies (/Users/henrique/Projects/ArcadeX/app/node_modules/metro/src/DeltaBundler/buildSubgraph.js:42:25)
    at visit (/Users/henrique/Projects/ArcadeX/app/node_modules/metro/src/DeltaBundler/buildSubgraph.js:83:30)
    at async Promise.all (index 9)
    at async visit (/Users/henrique/Projects/ArcadeX/app/node_modules/metro/src/DeltaBundler/buildSubgraph.js:92:5)
    at async Promise.all (index 3)
    at async visit (/Users/henrique/Projects/ArcadeX/app/node_modules/metro/src/DeltaBundler/buildSubgraph.js:92:5)
    at async Promise.all (index 4)

Environment

Please run these commands in the project folder and fill in their results:

  • npm ls react-native-calendars:
  • npm ls react-native:

Also specify:

  1. Device/emulator/simulator & OS version:
    Emulator Google Pixel 4 Android API 35

[email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant