HandlebarLabs / currency-converter-starter

Code for the React Native Basics: Build a Currency Converter Course
http://learn.handlebarlabs.com/p/react-native-basics-build-a-currency-converter
185 stars 99 forks source link

Starter fails with missing module #3

Open joelpresence opened 7 years ago

joelpresence commented 7 years ago

I followed your steps:

git clone https://github.com/HandlebarLabs/currency-converter-starter.git
cd currency-converter-starter
git checkout module-3-lesson-1
npm install

When I do npm start I get:

Unable to resolve module `react-native/Libraries/Renderer/shims/ReactNativeBridgeEventPlugin` from `/Users/joel/src/react-native/currency-converter-starter/node_modules/react-native-gesture-handler/GestureHandler.js`: Module does not exist in the module map

This might be related to https://github.com/facebook/react-native/issues/4968
To resolve try the following:
  1. Clear watchman watches: `watchman watch-del-all`.
  2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.
  3. Reset packager cache: `rm -fr $TMPDIR/react-*` or `npm start -- --reset-cache`.

ABI19_0_0RCTFBQuickPerformanceLoggerConfigureHooks
ABI19_0_0RCTFBQuickPerformanceLoggerConfigureHooks
ABI19_0_0RCTFBQuickPerformanceLoggerConfigureHooks

CFRunLoopRunSpecific
GSEventRunModal
UIApplicationMain
Exponent

I tried all the cleans etc and nothing worked. The only thing that worked is npm install --save react-native-gesture-handler@1.0.0-alpha.29.

See also https://github.com/facebook/react-native/issues/4968

Any ideas?

Thanks! :-)

spencercarli commented 7 years ago

Thanks for reporting! I'm going to try and take a look at this tomorrow

joelpresence commented 7 years ago

Thanks!

Sent from my iPhone

On Nov 14, 2017, at 2:55 PM, Spencer Carli notifications@github.com<mailto:notifications@github.com> wrote:

Thanks for reporting! I'm going to try and take a look at this tomorrow

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/HandlebarLabs/currency-converter-starter/issues/3#issuecomment-344427713, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALf8WfF0hwSUV10ZznOEprjyEQQSw9mSks5s2hpUgaJpZM4Qd4GR.

spencercarli commented 7 years ago

Should be fixed now! Give it a shot and let me know

joelpresence commented 7 years ago

Will do and thanks Spencer! I’m really enjoying your course so far … ☺

From: Spencer Carli notifications@github.com Reply-To: HandlebarLabs/currency-converter-starter reply@reply.github.com Date: Friday, November 17, 2017 at 12:02 PM To: HandlebarLabs/currency-converter-starter currency-converter-starter@noreply.github.com Cc: Joel Shapiro joel@presence-labs.com, Author author@noreply.github.com Subject: Re: [HandlebarLabs/currency-converter-starter] Starter fails with missing module (#3)

Should be fixed now! Give it a shot and let me know

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/HandlebarLabs/currency-converter-starter/issues/3#issuecomment-345351379, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALf8WfXezMFTjoToLPEIoIxXThhZ6D9yks5s3eY3gaJpZM4Qd4GR.

smooJitter commented 6 years ago

@spencercarli why was this happening?

spencercarli commented 6 years ago

@smooJitter no idea. I just upgraded the packages around the time (https://github.com/HandlebarLabs/currency-converter-starter/commit/456425621e1e28b5c18800849134b4002b893e97) and haven't seen or heard of this issue since.