-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Error: While resolving module react-native-vector-icons/MaterialIcons
, the Haste package react-native-vector-icons
was found.
#626
Comments
I'm seeing a similar error with React-Native 0.52.0, but not with 0.49.0. |
me too |
Same here! |
It's happening for me too, with |
The file it is trying to find does in fact declare that module. This is why it breaks now: Related issue: The broken file: Workaround
|
@chrismcleod Oh wow that worked wonders. Thank you |
@chrismcleod genius! 😄 |
@chrismcleod thanks for finding! I can workaround this for RN 0.52.0 with this
Exact workaround is I have very bad feelings last months about react-native, metro and other facebook js code, they always reinventing wheels with good intentions and badly broken implementations :-( But to be more constructive... it will be very good if someone fill bug at react-native repo... |
Got the same error with Ionicons and
workaround fixed the issue. Loading dependency graph, done. /home/morteza/projects/fingermenu/finger-menu-restaurant-mobile/node_modules/react-native/local-cli/core/fixtures/files/Ionicons(.native||.android.js|.native.js|.js|.android.json|.native.json|.json) |
After this command rm ./node_modules/react-native/local-cli/core/fixtures/files/package.json the application is stuck with strange error:
|
@psycura |
Its not helping. |
I added this to "scripts": {
"postinstall": "rm ./node_modules/react-native/local-cli/core/__fixtures__/files/package.json”
} |
I had this problem with react-native-vector-icons, now I'm having a similar problem but with realm.
Does anyone know the solution? [EDIT] It seems that updating my Node version resolved this problem. I don't know if this is related to React Native, but in any case, I will keep my question here. |
I deleted the JSON file that others have mentioned. node_modules/react-native/local-cli/core/fixtures/files/package.json Keep in mind that I am only using React Native and those icons in my project, so I'm not sure if others are running into different problems. @guiherzog mentioned having a similar problem with realm, so I get the feeling that there is something else causing the problem. Deleting the JSON file may only be a workaround for this particular package. |
hi @gastonmorixe just letting you know the trailing quotation mark in your snippet is a also you can add a |
Is this an issue with react-native 0.52? or this package? |
Looks like the issue is with react-native 0.52.0. Is there a bug open for this? |
Stuff like this makes me worry about stability of react-native. They really need to test with their ecosystem packages. |
I have the same error, but in my case I am trying to import a fontello source can someone help me? react-native 0.52 |
This seems to be the issue on the react-native repo: facebook/react-native#17610 |
Same problem, @gastonmorixe postinstall fixes the problem, but this should be fixed in core... |
rm ./node_modules/react-native/local-cli/core/fixtures/files/package.json after triger this line restart npm.. |
@chrismcleod You saved my night man... thank you... |
We were building a project using Yarn just fine for months, but the client had this issue on their CD server. This issue occurred only when dependencies were installed using npm. The workaround from @chrismcleod works great for the time being 🥇 |
Neither of the comments helped anything here. That And I'm getting this issue -.- |
@amcsi this was a bug in react native. A PR was merged since this issue was originally created that supposedly fixed it. If you are having the issue again, it might be a new cause. What version of react native are you using? |
I'm having the issue for the first time, and I'm using react-native version Also, if you're talking about this PR, it isn't merged, but closed: facebook/react-native#17672 And like I said, there's no This is what I get by the way:
|
Alright I managed to solve this issue by installing It was strange to me, because the error message was identical to that of this issue, but the cause was completely different. |
I got this issues many times.
OR
|
Same as @129emma , only that in my case there wasn't a |
@chrismcleod Cannot find 'fixtures' folder under core. Please provide help. |
I have the same issue here. neither fixtures and __ fixtures __ exists. Any luck solving this issue ? |
@us-22 I faced similar problems and was able to fix the issue by installing
|
thanks @mevansam You are right. I solve it by reinstalling the package. |
For others landing here after upgrading to React Native 0.53, this is resolved in React Native 0.54.4. |
In my case, with react-native-vector-icons/Ionicons, I had, besides insert all the ttf fonts to Info.plist, restart my machine (OSX Sierra) |
I use RN version 0.55.4 and I get this error.. Nothing helped, any idea how we can solve it?....... Well so stupid but I didnt have vector-icons installed. I have installed it and it fixed.. npm install react-native-vector-icons --save |
This is utmost ridiculous and painful to see how version updates between frameworks crippled the whole development process. We used to see such versioning pain in case of Java developments - beside being a popular development framework (RN) how such versioning issues hits everyday life of the developers. Thanks to @chrismcleod for mentioning an workaround. This worked for me. |
Note that since RN 0.57 (currently in rc), @vovkasm's workaround with |
module.exports = {
getSourceExts: () => ['jsx', 'mjs'],
} why it is not work? @fungilation |
|
I don't understand why people continue to add comments here instead of place bug reports into RN... :-) |
sorry for that. |
This package breaks everything lol. |
FFS, a year later and still an issue with latest versions. |
@kinowarrior Please create public repo on github with application that demonstrate the issue. |
I solved this issue by running the below, after initially completing the setup of
Try starting from 3) first, if you've already followed the iOS Manual & Android Gradle steps. I don't think the first 2 steps are actually necessary and *** EDIT: Just setup a new project and the only steps required with RN 60.5 is
|
Getting build failed error while running “npx react-native run-android” commandError: While resolving module App/Config, the Haste package App was found. However the module Config could not be found within the package. Indeed, none of these files exist Getting this error, tried to solve by npm cache clean, also followed #626 (comment) but issue not fixed. Tried to solve the issue by running rm ./node_modules/react-native/local-cli/core/fixtures/files/package.json command, but in core directory there is no directory inside, only have one .js file.
|
I was encountering the same problem. { |
I was encountering the same problem. Resolved by replacing simple quotes to double quotes |
After upgrading my react native project and also my react-native-vector-icons I started receiving this error.
The same issue happens with Font Awesome
The text was updated successfully, but these errors were encountered: