WrathChaos / react-native-header-view

Fully customizable Header View with multiple design options for React Native.
https://www.freakycoder.com
MIT License
653 stars 35 forks source link

Unable to resolve main package #17

Closed JosephSemrai closed 3 years ago

JosephSemrai commented 3 years ago

After installing the main package + peer dependencies, I continue to encounter this issue (reinstalled packages multiple times).

While trying to resolve module `@freakycoder/react-native-header-view` from file `C:\Users\josep\Documents\GitHub\safepass\src\features\kiosk\screens\StudentAttendanceKioskScreen.tsx`, the package `C:\Users\josep\Documents\GitHub\safepass\node_modules\@freakycoder\react-native-header-view\package.json` was successfully found. However, this package 
itself specifies a `main` module field that could not be resolved (`C:\Users\josep\Documents\GitHub\safepass\node_modules\@freakycoder\react-native-header-view\lib\src\index.js`. Indeed, none of these files exist:

  * C:\Users\josep\Documents\GitHub\safepass\node_modules\@freakycoder\react-native-header-view\lib\src\index.js(.native|.ios.expo.ts|.native.expo.ts|.expo.ts|.ios.expo.tsx|.native.expo.tsx|.expo.tsx|.ios.expo.js|.native.expo.js|.expo.js|.ios.expo.jsx|.native.expo.jsx|.expo.jsx|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.js|.native.js|.js|.ios.jsx|.native.jsx|.jsx|.ios.json|.native.json|.json|.ios.wasm|.native.wasm|.wasm)
  * C:\Users\josep\Documents\GitHub\safepass\node_modules\@freakycoder\react-native-header-view\lib\src\index.js\index(.native|.ios.expo.ts|.native.expo.ts|.expo.ts|.ios.expo.tsx|.native.expo.tsx|.expo.tsx|.ios.expo.js|.native.expo.js|.expo.js|.ios.expo.jsx|.native.expo.jsx|.expo.jsx|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.js|.native.js|.js|.ios.jsx|.native.jsx|.jsx|.ios.json|.native.json|.json|.ios.wasm|.native.wasm|.wasm)
WrathChaos commented 3 years ago

Hello @JosephSemrai, I'm looking for it, thank you for the report :) Also, you can use the header views separately just FYI :)

WrathChaos commented 3 years ago

Hello again @JosephSemrai I've fixed the main path bug. Please try again with the new release:

Release 1.1.1 🥰

Also do not forget that, you do not need to install all of the headers unless you only need one header. You can use that header library separately :)