infinitered / apisauce

Axios + standardized errors + request/response transforms.
MIT License
2.8k stars 184 forks source link

C:\Users\user\abc\node_modules\react-native\Libraries\Core\ExceptionsManager.js:180 NativeUIManager.getConstantsForViewManager('ForwardRef(TextInput)') threw an exception. Invariant Violation: Calling synchronous methods on native modules is not supported in Chrome. #275

Closed laukc closed 3 years ago

laukc commented 3 years ago

anyone know what is happening for this? why i cant use style, text...etc..

C:\Users\user\abc\node_modules\react-native\Libraries\Core\ExceptionsManager.js:180 NativeUIManager.getConstantsForViewManager('ForwardRef(TextInput)') threw an exception. Invariant Violation: Calling synchronous methods on native modules is not supported in Chrome.

Consider providing alternative methods to expose this method in debug mode, e.g. by exposing constants ahead-of-time. at invariant (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.abc&modulesOnly=false&runModule=true:2391:17) at MessageQueue.callNativeSyncHook (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.abc&modulesOnly=false&runModule=true:2876:54) at Object.nonPromiseMethodWrapper [as getConstantsForViewManager] (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.abc&modulesOnly=false&runModule=true:2599:68) at _getViewManagerConfig (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.abc&modulesOnly=false&runModule=true:3695:72) at Object.hasViewManagerConfig (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.abc&modulesOnly=false&runModule=true:3741:14) at validate (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.abc&modulesOnly=false&runModule=true:53167:55) at checkType (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.abc&modulesOnly=false&runModule=true:62312:29) at chainedCheckType (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.abc&modulesOnly=false&runModule=true:62325:24) at Object.style (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.abc&modulesOnly=false&runModule=true:62272:28) at checkPropTypes (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.abc&modulesOnly=false&runModule=true:21610:50) at Input (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.abc&modulesOnly=false&runModule=true:132922:36) at Themed.Input (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.abc&modulesOnly=false&runModule=true:110984:28) at RCTView at View at RCTView at View at RCTView at View at Index (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.abc&modulesOnly=false&runModule=true:108498:36) at StaticContainer (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.abc&modulesOnly=false&runModule=true:155342:18) at EnsureSingleNavigator (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.abc&modulesOnly=false&runModule=true:151121:25) at SceneView (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.abc&modulesOnly=false&runModule=true:155226:23) at RCTView at View at DebugContainer (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.abc&modulesOnly=false&runModule=true:157344:37) at MaybeNestedStack (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.abc&modulesOnly=false&runModule=true:156994:24) at RNSScreen at AnimatedComponent (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.abc&modulesOnly=false&runModule=true:67484:80) at AnimatedComponentWrapper at Screen (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.abc&modulesOnly=false&runModule=true:157721:36) at SceneView (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.abc&modulesOnly=false&runModule=true:157080:28) at RNSScreenStack at NativeStackViewInner (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.abc&modulesOnly=false&runModule=true:157184:23) at RNCSafeAreaProvider at SafeAreaProvider (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.abc&modulesOnly=false&runModule=true:140076:25) at SafeAreaProviderCompat (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.abc&modulesOnly=false&runModule=true:159462:25) at NativeStackView at NativeStackNavigator (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.abc&modulesOnly=false&runModule=true:156919:33) at EnsureSingleNavigator (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.abc&modulesOnly=false&runModule=true:151121:25) at BaseNavigationContainer (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.abc&modulesOnly=false&runModule=true:150633:29) at ThemeProvider (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.abc&modulesOnly=false&runModule=true:156276:22) at NavigationContainerInner (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.abc&modulesOnly=false&runModule=true:156136:27) at Nav at RCTView at View at App (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.abc&modulesOnly=false&runModule=true:108282:36) at RCTView at View at RCTView at View at AppContainer (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.abc&modulesOnly=false&runModule=true:75604:36) at abc(RootComponent) (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.abc&modulesOnly=false&runModule=true:82460:29)

laukc commented 3 years ago

JavaScript logs will appear in your browser console Error: ENOENT: no such file or directory, open 'C:\Users\user\abc\http:\localhost:8081\index.bundle?platform=android&dev=true&minify=false&app=com.abc&modulesOnly=false&runModule=true' at Object.openSync (fs.js:498:3) at Object.readFileSync (fs.js:394:35) at getCodeFrame (C:\Users\user\abc\node_modules\metro\src\Server.js:919:18) at Server._symbolicate (C:\Users\user\abc\node_modules\metro\src\Server.js:992:22) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:95:5) at async Server._processRequest (C:\Users\user\abc\node_modules\metro\src\Server.js:403:7) { errno: -4058, syscall: 'open', code: 'ENOENT', path: 'C:\Users\user\abc\http:\localhost:8081\index.bundle?platform=android&dev=true&minify=false&app=com.abc&modulesOnly=false&runModule=true'

chakrihacker commented 3 years ago

Since it's not related to apisauce I am closing this