Code Monkey home page Code Monkey logo

Comments (11)

randimaS avatar randimaS commented on May 10, 2024 6

I am also facing this issue with npm. It seems to be an issue specific to downloading with npm.
yarn adding works perfectly.
yarn add @react-native-community/hooks

from hooks.

SiddheshDabholkar avatar SiddheshDabholkar commented on May 10, 2024 4

use this command instead

npm install @react-native-community/hooks -f

or

yarn add @react-native-community/hooks

from hooks.

aradhya-gupta avatar aradhya-gupta commented on May 10, 2024

I have the exact same issue.

from hooks.

LinusU avatar LinusU commented on May 10, 2024

Hmm, I'm having a hard time seeing how this specific package could have caused this. Are you seeing this with any other package, or just ours?

@kevnw it seems like you are running this on a Window filesystem from Linux, is that a correct assumption? Does it work if you install the package to e.g. /tmp/foobar.

@aradhya-gupta what operating system and file system are you using?

from hooks.

aradhya-gupta avatar aradhya-gupta commented on May 10, 2024

@LinusU I'm using windows 10

from hooks.

aradhya-gupta avatar aradhya-gupta commented on May 10, 2024

I'm getting the following error while compilation of my app:

While trying to resolve module @react-native-community/hooks from file C:\Users\Aradhya\Desktop\DoneWith\App.js, the package C:\Users\Aradhya\Desktop\DoneWith\node_modules\@react-native-community\hooks\package.json was successfully found. However, this package itself specifies a main module field that could not be resolved (C:\Users\Aradhya\Desktop\DoneWith\node_modules\@react-native-community\hooks\lib\index.js. Indeed, none of these files exist:

  • C:\Users\Aradhya\Desktop\DoneWith\node_modules@react-native-community\hooks\lib\index.js(.native|.android.expo.ts|.native.expo.ts|.expo.ts|.android.expo.tsx|.native.expo.tsx|.expo.tsx|.android.expo.js|.native.expo.js|.expo.js|.android.expo.jsx|.native.expo.jsx|.expo.jsx|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json|.android.wasm|.native.wasm|.wasm)
  • C:\Users\Aradhya\Desktop\DoneWith\node_modules@react-native-community\hooks\lib\index.js\index(.native|.android.expo.ts|.native.expo.ts|.expo.ts|.android.expo.tsx|.native.expo.tsx|.expo.tsx|.android.expo.js|.native.expo.js|.expo.js|.android.expo.jsx|.native.expo.jsx|.expo.jsx|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json|.android.wasm|.native.wasm|.wasm)

from hooks.

Mubashar-javed avatar Mubashar-javed commented on May 10, 2024

Facing the same issue with npm, any solution?

from hooks.

zhengfen avatar zhengfen commented on May 10, 2024

I had a similar problem with npm install. For the moment I installed the package with yarn.

image

from hooks.

Riamus78 avatar Riamus78 commented on May 10, 2024

Uninstalling and reinstalling the library fixed it for me, don't know what went wrong the first time though

from hooks.

barenzimo avatar barenzimo commented on May 10, 2024

SiddheshDabholkar That worked for me. Had the same issue

from hooks.

tarunfy avatar tarunfy commented on May 10, 2024

Having the same issue, please help :/

from hooks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.