Skip to content

Example.res will make build broken. #63

Closed
@colmugx

Description

@colmugx

The problem

How to reproduce

Some error likes these:

24 │   let make = (~navigation as _, ~route as _) =>
25 │     <Navigator>
26 │       <Screen
27 │         name="Home"
 . │ ...
42 │           )}
43 │       />
44 │     </Navigator>
45 │ }

  This record expression is expected to have type navigatorProps
  The field children does not belong to type navigatorProps

FAILED: cannot make progress due to previous errors.

Expected behavior

npm i and npm res:build and everything success

Actual behavior

build failure. but it works when delete Example.res from node_modules

Environment

"dependencies": {
  "@react-navigation/native": "^6.1.9",
  "@react-navigation/stack": "^6.3.20",
  "@rescript/react": "^0.11.0",
  "react": "18.2.0",
  "react-native": "0.72.0",
  "react-native-safe-area-context": "^4.8.2",
  "react-native-screens": "^3.29.0",
  "rescript-react-native": "^0.72.0",
  "rescript-react-navigation": "^6.0.3"
}

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