nandorojo / react-native-heroicons

Hero Icons for React Native. 🫡
64 stars 6 forks source link

Fix index file reference #4

Closed codekeyz closed 11 months ago

codekeyz commented 11 months ago

Changes Made:

Reasoning:

I'm currently using this library in my mono-repo project using Solito and the Metro Bundler keep reporting this error

[TestApp] Metro has encountered an error: While trying to resolve module `@nandorojo/heroicons` from file
`/haUser/app/(main)/_layout.tsx`, the package
`/haUser/node_modules/@nandorojo/heroicons/package.json` was successfully found. However, this package itself specifies a
`main` module field that could not be resolved (`/haUser/node_modules/@nandorojo/heroicons/src/index.ts`. Indeed, none of these
files exist:

And making this change in the node_modules fixes it and my app runs fine now.