Skip to content

Getting this error when running the project in simulator and Expo Go app on android. Don't know about ios. #512

@nadeem-checkanycar

Description

@nadeem-checkanycar

Image

Android Bundled 13904ms node_modules/expo-router/entry.js (2701 modules)
WARN Route "./(app)/_layout.tsx" is missing the required default export. Ensure a React component is exported as default.
WARN Route "./(app)/index.tsx" is missing the required default export. Ensure a React component is exported as default.
WARN Route "./(app)/settings.tsx" is missing the required default export. Ensure a React component is exported as default.
WARN Route "./(app)/style.tsx" is missing the required default export. Ensure a React component is exported as default.
WARN Route "./[...messing].tsx" is missing the required default export. Ensure a React component is exported as default.
WARN Route "./_layout.tsx" is missing the required default export. Ensure a React component is exported as default.
WARN Route "./feed/[id].tsx" is missing the required default export. Ensure a React component is exported as default.
WARN Route "./feed/add-post.tsx" is missing the required default export. Ensure a React component is exported as default.
WARN Route "./login.tsx" is missing the required default export. Ensure a React component is exported as default.
WARN Route "./onboarding.tsx" is missing the required default export. Ensure a React component is exported as default.
ERROR [WorkletsError: [Worklets] Mismatch between JavaScript part and native part of Worklets (0.7.2 vs 0.5.1).
See https://docs.swmansion.com/react-native-worklets/docs/guides/troubleshooting#mismatch-between-javascript-part-and-native-part-of-worklets for more details.]

Code: checkbox.tsx
1 | import type { PressableProps } from 'react-native';

2 | import { MotiView } from 'moti';
| ^
3 | import * as React from 'react';
4 | import { useCallback } from 'react';
5 | import {
Call Stack
(src/components/ui/checkbox.tsx:2)
(src/components/ui/index.tsx:6)
(src/app/(app)/_layout.tsx:5)

Code: checkbox.tsx
1 | import type { PressableProps } from 'react-native';

2 | import { MotiView } from 'moti';
| ^
3 | import * as React from 'react';
4 | import { useCallback } from 'react';
5 | import {
Call Stack
(src/components/ui/checkbox.tsx:2)
(src/components/ui/index.tsx:6)
(src/app/(app)/_layout.tsx:5)
ERROR [WorkletsError: [Worklets] Mismatch between JavaScript part and native part of Worklets (0.7.2 vs 0.5.1).
See https://docs.swmansion.com/react-native-worklets/docs/guides/troubleshooting#mismatch-between-javascript-part-and-native-part-of-worklets for more details.]

Code: checkbox.tsx
1 | import type { PressableProps } from 'react-native';

2 | import { MotiView } from 'moti';
| ^
3 | import * as React from 'react';
4 | import { useCallback } from 'react';
5 | import {
Call Stack
(src/components/ui/checkbox.tsx:2)
(src/components/ui/index.tsx:6)
(src/app/(app)/_layout.tsx:5)

Code: checkbox.tsx
1 | import type { PressableProps } from 'react-native';

2 | import { MotiView } from 'moti';
| ^
3 | import * as React from 'react';
4 | import { useCallback } from 'react';
5 | import {
Call Stack
(src/components/ui/checkbox.tsx:2)
(src/components/ui/index.tsx:6)
(src/app/(app)/_layout.tsx:5)
ERROR [WorkletsError: [Worklets] Mismatch between JavaScript part and native part of Worklets (0.7.2 vs 0.5.1).
See https://docs.swmansion.com/react-native-worklets/docs/guides/troubleshooting#mismatch-between-javascript-part-and-native-part-of-worklets for more details.]

Code: checkbox.tsx
1 | import type { PressableProps } from 'react-native';

2 | import { MotiView } from 'moti';
| ^
3 | import * as React from 'react';
4 | import { useCallback } from 'react';
5 | import {
Call Stack
(src/components/ui/checkbox.tsx:2)
(src/components/ui/index.tsx:6)
(src/app/(app)/_layout.tsx:5)

Code: checkbox.tsx
1 | import type { PressableProps } from 'react-native';

2 | import { MotiView } from 'moti';
| ^
3 | import * as React from 'react';
4 | import { useCallback } from 'react';
5 | import {
Call Stack
(src/components/ui/checkbox.tsx:2)
(src/components/ui/index.tsx:6)
(src/app/(app)/_layout.tsx:5)
ERROR [WorkletsError: [Worklets] Mismatch between JavaScript part and native part of Worklets (0.7.2 vs 0.5.1).
See https://docs.swmansion.com/react-native-worklets/docs/guides/troubleshooting#mismatch-between-javascript-part-and-native-part-of-worklets for more details.]

Code: checkbox.tsx
1 | import type { PressableProps } from 'react-native';

2 | import { MotiView } from 'moti';
| ^
3 | import * as React from 'react';
4 | import { useCallback } from 'react';
5 | import {
Call Stack
(src/components/ui/checkbox.tsx:2)
(src/components/ui/index.tsx:6)
(src/app/(app)/_layout.tsx:5)

Code: checkbox.tsx
1 | import type { PressableProps } from 'react-native';

2 | import { MotiView } from 'moti';
| ^
3 | import * as React from 'react';
4 | import { useCallback } from 'react';
5 | import {
Call Stack
(src/components/ui/checkbox.tsx:2)
(src/components/ui/index.tsx:6)
(src/app/(app)/_layout.tsx:5)
ERROR [WorkletsError: [Worklets] Mismatch between JavaScript part and native part of Worklets (0.7.2 vs 0.5.1).
See https://docs.swmansion.com/react-native-worklets/docs/guides/troubleshooting#mismatch-between-javascript-part-and-native-part-of-worklets for more details.]

Code: checkbox.tsx
1 | import type { PressableProps } from 'react-native';

2 | import { MotiView } from 'moti';
| ^
3 | import * as React from 'react';
4 | import { useCallback } from 'react';
5 | import {
Call Stack
(src/components/ui/checkbox.tsx:2)
(src/components/ui/index.tsx:6)
(src/app/(app)/_layout.tsx:5)

Code: checkbox.tsx
1 | import type { PressableProps } from 'react-native';

2 | import { MotiView } from 'moti';
| ^
3 | import * as React from 'react';
4 | import { useCallback } from 'react';
5 | import {
Call Stack
(src/components/ui/checkbox.tsx:2)
(src/components/ui/index.tsx:6)
(src/app/(app)/_layout.tsx:5)
ERROR [WorkletsError: [Worklets] Mismatch between JavaScript part and native part of Worklets (0.7.2 vs 0.5.1).
See https://docs.swmansion.com/react-native-worklets/docs/guides/troubleshooting#mismatch-between-javascript-part-and-native-part-of-worklets for more details.]

Code: checkbox.tsx
1 | import type { PressableProps } from 'react-native';

2 | import { MotiView } from 'moti';
| ^
3 | import * as React from 'react';
4 | import { useCallback } from 'react';
5 | import {
Call Stack
(src/components/ui/checkbox.tsx:2)
(src/components/ui/index.tsx:6)
(src/app/(app)/_layout.tsx:5)

Code: checkbox.tsx
1 | import type { PressableProps } from 'react-native';

2 | import { MotiView } from 'moti';
| ^
3 | import * as React from 'react';
4 | import { useCallback } from 'react';
5 | import {
Call Stack
(src/components/ui/checkbox.tsx:2)
(src/components/ui/index.tsx:6)
(src/app/(app)/_layout.tsx:5)
ERROR [WorkletsError: [Worklets] Mismatch between JavaScript part and native part of Worklets (0.7.2 vs 0.5.1).
See https://docs.swmansion.com/react-native-worklets/docs/guides/troubleshooting#mismatch-between-javascript-part-and-native-part-of-worklets for more details.]

Code: checkbox.tsx
1 | import type { PressableProps } from 'react-native';

2 | import { MotiView } from 'moti';
| ^
3 | import * as React from 'react';
4 | import { useCallback } from 'react';
5 | import {
Call Stack
(src/components/ui/checkbox.tsx:2)
(src/components/ui/index.tsx:6)
(src/app/(app)/_layout.tsx:5)

Code: checkbox.tsx
1 | import type { PressableProps } from 'react-native';

2 | import { MotiView } from 'moti';
| ^
3 | import * as React from 'react';
4 | import { useCallback } from 'react';
5 | import {
Call Stack
(src/components/ui/checkbox.tsx:2)
(src/components/ui/index.tsx:6)
(src/app/(app)/_layout.tsx:5)
ERROR [WorkletsError: [Worklets] Mismatch between JavaScript part and native part of Worklets (0.7.2 vs 0.5.1).
See https://docs.swmansion.com/react-native-worklets/docs/guides/troubleshooting#mismatch-between-javascript-part-and-native-part-of-worklets for more details.]

Code: checkbox.tsx
1 | import type { PressableProps } from 'react-native';

2 | import { MotiView } from 'moti';
| ^
3 | import * as React from 'react';
4 | import { useCallback } from 'react';
5 | import {
Call Stack
(src/components/ui/checkbox.tsx:2)
(src/components/ui/index.tsx:6)
(src/app/(app)/_layout.tsx:5)

Code: checkbox.tsx
1 | import type { PressableProps } from 'react-native';

2 | import { MotiView } from 'moti';
| ^
3 | import * as React from 'react';
4 | import { useCallback } from 'react';
5 | import {
Call Stack
(src/components/ui/checkbox.tsx:2)
(src/components/ui/index.tsx:6)
(src/app/(app)/_layout.tsx:5)
ERROR [WorkletsError: [Worklets] Mismatch between JavaScript part and native part of Worklets (0.7.2 vs 0.5.1).
See https://docs.swmansion.com/react-native-worklets/docs/guides/troubleshooting#mismatch-between-javascript-part-and-native-part-of-worklets for more details.]

Code: checkbox.tsx
1 | import type { PressableProps } from 'react-native';

2 | import { MotiView } from 'moti';
| ^
3 | import * as React from 'react';
4 | import { useCallback } from 'react';
5 | import {
Call Stack
(src/components/ui/checkbox.tsx:2)
(src/components/ui/index.tsx:6)
(src/app/(app)/_layout.tsx:5)

Code: checkbox.tsx
1 | import type { PressableProps } from 'react-native';

2 | import { MotiView } from 'moti';
| ^
3 | import * as React from 'react';
4 | import { useCallback } from 'react';
5 | import {
Call Stack
(src/components/ui/checkbox.tsx:2)
(src/components/ui/index.tsx:6)
(src/app/(app)/_layout.tsx:5)
ERROR [WorkletsError: [Worklets] Mismatch between JavaScript part and native part of Worklets (0.7.2 vs 0.5.1).
See https://docs.swmansion.com/react-native-worklets/docs/guides/troubleshooting#mismatch-between-javascript-part-and-native-part-of-worklets for more details.]

Code: checkbox.tsx
1 | import type { PressableProps } from 'react-native';

2 | import { MotiView } from 'moti';
| ^
3 | import * as React from 'react';
4 | import { useCallback } from 'react';
5 | import {
Call Stack
(src/components/ui/checkbox.tsx:2)
(src/components/ui/index.tsx:6)
(src/app/(app)/_layout.tsx:5)

Code: checkbox.tsx
1 | import type { PressableProps } from 'react-native';

2 | import { MotiView } from 'moti';
| ^
3 | import * as React from 'react';
4 | import { useCallback } from 'react';
5 | import {
Call Stack
(src/components/ui/checkbox.tsx:2)
(src/components/ui/index.tsx:6)
(src/app/(app)/_layout.tsx:5)
ERROR [Error: Couldn't find any screens for the navigator. Have you defined any screens as its children?]

Code: useNavigationBuilder.js
209 | }), {});
210 | if (!routeNames.length) {

211 | throw new Error("Couldn't find any screens for the navigator. Have you defined any screens as its children?");
| ^
212 | }
213 | const isStateValid = React.useCallback(state => state.type === undefined || state.type === router.type, [router.type]);
214 | const isStateInitialized = React.useCallback(state => state !== undefined && state.stale === false && isStateValid(state), [isStateValid]);
Call Stack
useNavigationBuilder (node_modules/@react-navigation/core/lib/module/useNavigationBuilder.js:211:20)
SlotNavigator (node_modules/expo-router/build/views/Navigator.js:107:88)
callComponent.reactStackBottomFrame (node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js:15887:29)
renderWithHooks (node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js:3857:40)
updateFunctionComponent (node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js:7289:34)
beginWork (node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js:8541:41)
runWithFiberInDEV (node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js:683:21)
performUnitOfWork (node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js:12220:39)
workLoopSync (node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js:12044:58)
renderRootSync (node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js:12024:23)
performWorkOnRoot (node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js:11587:53)
performWorkOnRootViaSchedulerTask (node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js:3073:24)

Code: Navigator.js
149 | function DefaultNavigator() {
150 | if (process.env.EXPO_OS === 'android' && (0, react_native_is_edge_to_edge_1.isEdgeToEdge)()) {

151 | return ;
| ^
152 | }
153 | return (<react_native_safe_area_context_1.SafeAreaView style={{ flex: 1 }}>
154 |
Call Stack
DefaultNavigator (node_modules/expo-router/build/views/Navigator.js:151:16)
BaseRoute (node_modules/expo-router/build/useScreens.js:213:11)
SceneView (node_modules/@react-navigation/core/lib/module/SceneView.js:150:70)
render (node_modules/@react-navigation/core/lib/module/useDescriptors.js:109:36)
routes.reduce$argument_0 (node_modules/@react-navigation/core/lib/module/useDescriptors.js:143:27)
reduce ()
useDescriptors (node_modules/@react-navigation/core/lib/module/useDescriptors.js:140:36)
useNavigationBuilder (node_modules/@react-navigation/core/lib/module/useNavigationBuilder.js:523:21)
Content (node_modules/expo-router/build/ExpoRoot.js:161:88)
ContextNavigator (node_modules/expo-router/build/ExpoRoot.js:147:13)
ExpoRoot (node_modules/expo-router/build/ExpoRoot.js:87:12)
App (node_modules/expo-router/build/qualified-entry.js:21:7)
WithDevTools (node_modules/expo/src/launch/withDevTools.tsx:21:12)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions