Comments (11)
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.
use this command instead
npm install @react-native-community/hooks -f
or
yarn add @react-native-community/hooks
from hooks.
I have the exact same issue.
from hooks.
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.
@LinusU I'm using windows 10
from hooks.
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.
Facing the same issue with npm, any solution?
from hooks.
I had a similar problem with npm install. For the moment I installed the package with yarn.
from hooks.
Uninstalling and reinstalling the library fixed it for me, don't know what went wrong the first time though
from hooks.
SiddheshDabholkar That worked for me. Had the same issue
from hooks.
Having the same issue, please help :/
from hooks.
Related Issues (20)
- Feature request: differentiate landscape-left from landscape-right
- RN 0.65 Warning for useAppState HOT 3
- add tests using testing library hooks
- Dependency Dashboard
- RN 0.65.1 + useKeyboard() + Fast Refresh = react-native not available on the unmount HOT 2
- Fix `auto` release
- Deprecated API HOT 6
- keyboard shown very low
- Cant install through yarn add @react-native-community/hooks HOT 1
- REACT-NATIVE-HOOKS USECAMERAROLL HOT 3
- rn
- useKeyboard cause re-render many time HOT 4
- Unable to resolve "@react-native-community/hooks" from "App.js" HOT 2
- UseInteractionManager clean up on component Unmount HOT 3
- Thank you for useAppState, but could you also export previousAppState HOT 1
- useKeyboard does not respect iPad floating keyboard
- Can't use Hook useDimensions HOT 3
- 涉及前端源码泄露,可以删除不? HOT 2
- useDimensions is not available on latest version HOT 1
- useKeyboard keyboardShown wrong value
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hooks.