esbenp / esbenp/react-native-clean-form

install does not work with latest react-native

Open
#36 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
472
Forks
74
PR merge metrics
No merged PRs in 30d

Description

I tried installing today using a fresh project:
$ react-native -v
react-native-cli: 2.0.1
react-native: n/a - not inside a React Native project directory

$ react-native init ReduxFormsTest
$ cd ReduxFormsTest
$ react-native run-ios
$ npm i -s react-native-clean-forms
(SIMULATOR ERROR)

If I now embed the sample code and reload the simulator I get this error:

`Unable to resolve module `react-native-clean-form/redux-form` from `/Users/tomasvykruta/Documents/playground/ReduxFormsTest/forms_test.js`: Module does not exist in the module map or in these directories:
/Users/tomasvykruta/Documents/playground/ReduxFormsTest/node_modules/react-native-clean-form
, /Users/tomasvykruta/Documents/playground/node_modules/react-native-clean-form

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`.

RCTFatal
-[RCTBatchedBridge stopLoadingWithError:]
__25-[RCTBatchedBridge start]_block_invoke_2
_dispatch_call_block_and_release
_dispatch_client_callout
_dispatch_main_queue_callback_4CF
__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
__CFRunLoopRun
CFRunLoopRunSpecific
GSEventRunModal
UIApplicationMain
main
start
0x0

Next I install redux-forms:
$ npm i -s redux-form
``
Now I get this new error:
`Unable to resolve module `react-native-clean-form/redux-form` from `/Users/tomasvykruta/Documents/playground/ReduxFormsTest/forms_test.js`: Module does not exist in the module map or in these directories:
/Users/tomasvykruta/Documents/playground/ReduxFormsTest/node_modules/react-native-clean-form
, /Users/tomasvykruta/Documents/playground/node_modules/react-native-clean-form

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`.

RCTFatal
-[RCTBatchedBridge stopLoadingWithError:]
__25-[RCTBatchedBridge start]_block_invoke_2
_dispatch_call_block_and_release
_dispatch_client_callout
_dispatch_main_queue_callback_4CF
__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
__CFRunLoopRun
CFRunLoopRunSpecific
GSEventRunModal
UIApplicationMain
main
start
0x0
`

I can wipe that directory:
rm -rf node_modules/react-native-clean-form/redux-form

And I get the same error.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.