infinitered / ignite-bowser

Bowser is now re-integrated into Ignite CLI! Head to https://github.com/infinitered/ignite to check it out.
https://infinite.red/ignite
MIT License
615 stars 140 forks source link

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

Closed ncperng closed 3 years ago

ncperng commented 3 years ago

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:

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 commented 3 years ago

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

1mike12 commented 3 years ago

unbelievable