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 main package #17

Closed
JosephSemrai opened this issue Oct 13, 2020 · 2 comments
Closed

Unable to resolve main package #17

JosephSemrai opened this issue Oct 13, 2020 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@JosephSemrai
Copy link

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 WrathChaos self-assigned this Oct 13, 2020
@WrathChaos WrathChaos added the bug Something isn't working label Oct 13, 2020
@WrathChaos
Copy link
Owner

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

@WrathChaos
Copy link
Owner

WrathChaos commented Oct 14, 2020

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants