Closed jnrepo closed 6 years ago
I got similar case, happened on release mode for iOS:
2018-01-10 09:46:37.733 [error][tid:com.facebook.react.JavaScript] { [TypeError: undefined is not an object (evaluating 'i.View.propTypes.style')]
line: 599,
column: 4579,
sourceURL: '/var/containers/Bundle/Application/8A1A88CA-8D2D-4BE3-9729-777D36EFD1A9/EvaApp.app/main.jsbundle' }
2018-01-10 09:46:37.738607+0800 EvaApp[7627:820330] { [TypeError: undefined is not an object (evaluating 'i.View.propTypes.style')]
line: 599,
column: 4579,
sourceURL: '/var/containers/Bundle/Application/8A1A88CA-8D2D-4BE3-9729-777D36EFD1A9/EvaApp.app/main.jsbundle' }
2018-01-10 09:46:37.744 [error][tid:com.facebook.react.JavaScript] Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined.
This error is located at: in RCTView in a in a in RCTView in RCTView in RCTView in Navigator in RCTView in t in RCTView in RCTView in t 2018-01-10 09:46:37.743753+0800 EvaApp[7627:820330] Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined.
This error is located at: in RCTView in a in a in RCTView in RCTView in RCTView in Navigator in RCTView in t in RCTView in RCTView in t 2018-01-10 09:46:37.748 [error][tid:com.facebook.react.JavaScript] { [Invariant Violation: Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined.
@ruinangel
after some digging this was the cause https://github.com/facebook/react-native/issues/17348#issuecomment-356350102
The issue was with one of the newer version of uglify-es. If you upgrade to the latest React Native the dependency was updated so it should work, but for whatever reason you want to stay on your version you can do npm install -save uglify-es@3.2.2
which will pin the working dependency into your module.
Make sure the dependency is uglify-es: "3.2.2"
and not uglify-es: "^3.2.2"
in your package.json.
Since this isn't an issue of this component, going to close this one out.
I'm running into a weird issue where
componentWillUnmount
andrender
react-lifecycle function will get called beforecomponentWillMount
and cause a lot ofundefined
errors. Interestingly enough this only happens onrelease
mode for iOS.Suddenly started happening, I'm not quite sure why.
react-native: 0.51.0 react-native-custom-components:
latest-commit
(not published yet)