halilb / react-native-textinput-effects

Text inputs with custom label and icon animations for iOS and android. Built with react native and inspired by Codrops.
MIT License
2.99k stars 293 forks source link

Example not running #48

Closed rochapablo closed 7 years ago

rochapablo commented 7 years ago

@halilb, how do you run the example folder?

I'm getting:

error: bundling: UnableToResolveError: Unable to resolve module `react` from `/.../react-native-textinput-effects/lib/Kaede.js`: Module does not exist in the module map

I've follow the instructions, but the error keeps going.

Even cleaning TextInputEffectsExample.js nothing change.

halilb commented 7 years ago

Thanks for reporting @rochapablo.

I just cloned the repository and deployed the example app to iOS simulator. It worked out of the box.

Your problem sounded like a cache problem to me. Did you try removing node_modules and re-installing using npm install or yarn?

rochapablo commented 7 years ago

@halilb, no problem.

Yes, I did that for several times. I'm also running into IOS simulator.

I'll try again.

rochapablo commented 7 years ago

@halilb, I'm sorry for the delay. Unfortunately I still having the same problem

And always running

$ watchman watch-del-all
$ rm -rf node_modules
$ npm install
$ npm start -- --reset-cache
$ react-native run-ios
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`.
    at ResolutionRequest._resolveNodeDependency (/Users/pablo/Projects/Mine/react-native-textinput-effects/Example/node_modules/react-native/packager/src/node-haste/DependencyGraph/ResolutionRequest.js:394:11)
    at tryResolveSync (/Users/pablo/Projects/Mine/react-native-textinput-effects/Example/node_modules/react-native/packager/src/node-haste/DependencyGraph/ResolutionRequest.js:136:20)
    at tryResolveSync (/Users/pablo/Projects/Mine/react-native-textinput-effects/Example/node_modules/react-native/packager/src/node-haste/DependencyGraph/ResolutionRequest.js:66:12)
    at ResolutionRequest.resolveDependency (/Users/pablo/Projects/Mine/react-native-textinput-effects/Example/node_modules/react-native/packager/src/node-haste/DependencyGraph/ResolutionRequest.js:134:22)
    at dependencyNames.map.name (/Users/pablo/Projects/Mine/react-native-textinput-effects/Example/node_modules/react-native/packager/src/node-haste/DependencyGraph/ResolutionRequest.js:145:59)
    at Array.map (native)
    at ResolutionRequest.resolveModuleDependencies (/Users/pablo/Projects/Mine/react-native-textinput-effects/Example/node_modules/react-native/packager/src/node-haste/DependencyGraph/ResolutionRequest.js:145:42)
    at module.read.then (/Users/pablo/Projects/Mine/react-native-textinput-effects/Example/node_modules/react-native/packager/src/node-haste/DependencyGraph/ResolutionRequest.js:172:40)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:169:7)
Bundling `index.ios.js`  96.3% (578/589), failed.
halilb commented 7 years ago

Could you change package.json and point the registry instead of local file system?

So, change "react-native-textinput-effects": "file:../", with `"react-native-textinput-effects": "0.4.0".

rochapablo commented 7 years ago

Just did, but still the same problem.

Know what, I did fork to try add the height option to the fields. But since I got it let's close this issue for now and if I got something I let you know.

And thank you for your time and attention.