Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

module Libraries/Image/AssetRegistry could not be found #375

Closed
ncperng opened this issue Sep 18, 2020 · 2 comments
Closed

module Libraries/Image/AssetRegistry could not be found #375

ncperng opened this issue Sep 18, 2020 · 2 comments

Comments

@ncperng
Copy link

ncperng commented Sep 18, 2020


After create a new ignite-bowser bowser with Expo, the following error shows on Expo Metro Bundler:

Building JavaScript bundle: error
While resolving module react-native/Libraries/Image/AssetRegistry, the Haste package react-native was found. However the module Libraries/Image/AssetRegistry could not be found within the package. Indeed, none of these files exist:

  • /Users/neil/Documents/Work/projects/MissionCare/react_native/Libraries/Image/AssetRegistry(.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)
  • /Users/neil/Documents/Work/projects/MissionCare/react_native/Libraries/Image/AssetRegistry/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)

Kindly let me know if you have same experience to solve it. Many thanks in advance.


$ npx ignite-cli new react_native
$ cd react_native
$ yarn start
Grep the QR code with my IPhone8 Expo APP.


System
platform darwin
arch x64
cpu 4 cores Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
directory react_native /Users/neil/Documents/Work/projects/MissionCare/react_native

JavaScript
node 12.18.3 /usr/local/bin/node
npm 6.14.6 /usr/local/bin/npm
yarn 1.22.5 /usr/local/bin/yarn

Ignite
ignite-cli 3.5.3 /usr/local/bin/ignite
ignite src build /Users/neil/.config/yarn/global/node_modules/ignite-cli/build
navigation react-navigation
generators
component ignite-bowser
model ignite-bowser
navigator ignite-bowser
screen ignite-bowser
createdWith 3.5.3
boilerplate ignite-bowser
boilerplateVersion 5.3.0

Android
java 1.8.0_191 /usr/bin/java
android home - undefined

iOS
xcode 11.2.1
cocoapods 1.9.3 /usr/local/bin/pod
(base) Neil MBP:react_native neil$ ignite doctor
System
platform darwin
arch x64
cpu 4 cores Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
directory react_native /Users/neil/Documents/Work/projects/MissionCare/react_native

JavaScript
node 12.18.3 /usr/local/bin/node
npm 6.14.6 /usr/local/bin/npm
yarn 1.22.5 /usr/local/bin/yarn

Ignite
ignite-cli 3.5.3 /usr/local/bin/ignite
ignite src build /Users/neil/.config/yarn/global/node_modules/ignite-cli/build
navigation react-navigation
generators
component ignite-bowser
model ignite-bowser
navigator ignite-bowser
screen ignite-bowser
createdWith 3.5.3
boilerplate ignite-bowser
boilerplateVersion 5.3.0

Android
java 1.8.0_191 /usr/bin/java
android home - undefined

iOS
xcode 11.2.1
cocoapods 1.9.3 /usr/local/bin/pod

@ncperng
Copy link
Author

ncperng commented Nov 20, 2020

I've solved this problem. It seems that the project name cannot be snake style, i.e., the underscore is not allowed.

@ncperng ncperng closed this as completed Nov 20, 2020
@1mike12
Copy link

1mike12 commented Jul 9, 2021

unbelievable

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

No branches or pull requests

2 participants