-
-
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
the Haste package 'react-native-vector-icons' #630
Comments
I'm seeing this too as of today. It appears to be a new issue.
|
Same as #626? |
I found the solution.Delete this file. |
I am see this too. @junge68 - what would you need to clean/reset/etc to try your suggestion? I renamed the file and did a yarn cache clean, but this didn't help...
|
update: tried again and worked (I think doing the cache cleans etc may have put the file back perhaps?) |
Also ran into this problem today. Same exact error. Update: I deleted the JSON file at node_modules/react-native/local-cli/core/fixtures/files/package.json and restarted my project server. Works fine now. However, I think the core issue is in the core code. Apparently this may be a bigger issue. |
Facing same issue deleting node_modules/react-native/local-cli/core/fixtures/files/package.json doesnt help.any other solution? |
With the latest RN version |
Lets get this change merged!!! |
|
@ccjeaty is it good practice or permanent solution to this issue? Will be there be any further conflicts if proceed to do so? |
it's a bad practice, it's only a temporal solution... |
@jdnichollsc Thank you. Could you suggest any solution for this? |
Deleting that package.json did fix my issue but I didnt like this solution since I will have to delete it everytime I face such issue.. But anyhow thanks guys, it took me 4 hours to find this solution :P .. |
@Yandamuri sorry, I'm learning React Native, I don't know for the moment |
This needs to be fixed properly, this is a critical issue +1. |
I'm seeing this from metro-bundler:
Similar to what others are seeing. I haven't touched or upgraded anything in |
#630 (comment) 's solution works but obviously addressing the symptom, not the cause. This should be filed upstream to react-native? I'm not even sure how to file when it's not consistently reproducible, other than my last comment? |
Dup of #626 |
Thanks @MoOx for the helpful summary. :) |
is it permanent fix? |
@mtt87 Thanks it worked for me. |
@Yandamuri yes it will. Nothing is wrong in this package. It's RN repo that contains the name of this package (and it should not). |
thanks @mtt87 .It works like a charm |
Correction: This is fixed in Version 0.54.4 of React Native 4 months later and this still isn't fixed in React Native 0.53.3. Quick fix as others point out is to run So, to run this automatically, you can add it to your package.json "scripts": {
"postinstall": "rm ./node_modules/react-native/local-cli/core/__fixtures__/files/package.json"
} |
Yup, fine with me on RN 0.54.4 |
I delete this file but error continued. :c |
@13arturbruno if on RN0.52+ you need ``rm node_modules/react-native/local-cli/core/fixtures/files/package.json` |
error: bundling failed: Error: While resolving module
react-native-vector-icons /Ionicons
, the Haste packagereact-native-vector-icons
was found. However themodule
Ionicons
could not be found within the package.The text was updated successfully, but these errors were encountered: