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

error: bundling failed: Error: While resolving module react-native-vector-icons/Ionicons, the Haste package react-native-vector-icons was found. However the module Ionicons could not be found within the package #627

Closed
mortezaalizadeh opened this issue Jan 14, 2018 · 8 comments

Comments

@mortezaalizadeh
Copy link

After upgrading my react native project and also my react-native-vector-icons I started receiving this error.

React-Native = 0.52.0
React = 16.2.0
React-native-vector-icons = 4.5.0

Loading dependency graph, done.
warning: the transform cache was reset.
error: bundling failed: Error: While resolving module react-native-vector-icons/Ionicons, the Haste package react-native-vector-icons was found. However the module Ionicons could not be found within the package. Indeed, none of these files exist:

  • /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)
  • /home/morteza/projects/fingermenu/finger-menu-restaurant-mobile/node_modules/react-native/local-cli/core/__fixtures__/files/Ionicons/index(.native||.android.js|.native.js|.js|.android.json|.native.json|.json)
    at resolveHasteName (/home/morteza/projects/fingermenu/finger-menu-restaurant-mobile/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:387:9)
    at ModuleResolver._resolveDependency (/home/morteza/projects/fingermenu/finger-menu-restaurant-mobile/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:317:37)
    at ModuleResolver.resolveDependency (/home/morteza/projects/fingermenu/finger-menu-restaurant-mobile/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:313:877)
    at ResolutionRequest.resolveDependency (/home/morteza/projects/fingermenu/finger-menu-restaurant-mobile/node_modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:97:16)
    at DependencyGraph.resolveDependency (/home/morteza/projects/fingermenu/finger-menu-restaurant-mobile/node_modules/metro/src/node-haste/DependencyGraph.js:269:4352)
    at /home/morteza/projects/fingermenu/finger-menu-restaurant-mobile/node_modules/metro/src/DeltaBundler/traverseDependencies.js:201:36
    at Generator.next ()
    at step (/home/morteza/projects/fingermenu/finger-menu-restaurant-mobile/node_modules/metro/src/DeltaBundler/traverseDependencies.js:256:306)
    at /home/morteza/projects/fingermenu/finger-menu-restaurant-mobile/node_modules/metro/src/DeltaBundler/traverseDependencies.js:256:536
    at new Promise ()
    BUNDLE [android, dev] ./index.android.js ▓▓▓▓░░░░░░░░░░░░ 30.5% (289/523), failed.
@mortezaalizadeh
Copy link
Author

Closing issue in favor of #626

@faheem0512
Copy link

Try This
rm ./node_modules/react-native/local-cli/core/fixtures/files/package.json

@junge68
Copy link

junge68 commented Jan 17, 2018

Excuse me,Can you tell me how you solved it

@MoOx
Copy link
Contributor

MoOx commented Feb 8, 2018

Dup of #626
it's an RN issue facebook/react-native#17610
Will be fixed by facebook/react-native#17672
Workaround #626 (comment)

@trinadhkoya
Copy link

rm node_modules/react-native/local-cli/core/fixtures/files/package.json

@shubhamkackar
Copy link

Hey i am working on windows 10 and there is no fixtures folder inside node_modules/react-native/local-cli/core

Anyone else facing the same issue?

@nihp
Copy link

nihp commented May 21, 2018

I have removed the rm node_modules/react-native/local-cli/core/fixtures/files/package.json, still facing the same issue in mac mac.

Kindly reopen the ticket

@sb07
Copy link

sb07 commented Apr 13, 2019

shubhamkackar,

Im also on windows 10 and i get the same "indeed none of the files exist" error.

I will not clear my cache it sounds incompetent.

How to update react-native project to find new files like images?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants