Skip to content

Example.res will make build broken. #63

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
colmugx opened this issue Jan 10, 2024 · 1 comment
Closed

Example.res will make build broken. #63

colmugx opened this issue Jan 10, 2024 · 1 comment

Comments

@colmugx
Copy link

colmugx commented Jan 10, 2024

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"
}
@Freddy03h
Copy link
Member

#58 fixed it in 6.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants