Closed adouwedji closed 1 year ago
Failed to resolve dependency '@react-navigation/native@*' (Network request failed)
Error Message:
package.json (11:5) Failed to resolve dependency '@react-navigation/native@*' (Module build failed (from ../../../../../../../node_modules/babel-loader/lib/index.js): Retry SyntaxError: /tmp/snackager/snackager/buildStatus/1/@react-navigation~native@6.1.7-ios,android,web/package/node_modules/@react-navigation/core/src/types.tsx: Unexpected token, expected "?" (705:52)
703 | [RouteName in keyof ParamList]?: NonNullable< 704 | ParamList[RouteName]
705 | > extends NavigatorScreenParams<infer T extends {}>
iOS
V48.0.0
package.json file is : { "dependencies": { "expo-constants": "~14.2.1", "expo-status-bar": "~1.4.4", "link-preview-js": "", "expo-localization": "~14.1.1", "@expo/vector-icons": "^13.0.0", "react-native-paper": "4.9.2", "react-native-webview": "11.26.0", "react-native-hyperlink": "", "@react-navigation/native": "*", "@react-native-async-storage/async-storage": "1.17.11" } }
Resolved with the following in package.json
"@react-navigation/native": "^5.7.3",
Summary
Failed to resolve dependency '@react-navigation/native@*' (Network request failed)
Error Message:
package.json (11:5) Failed to resolve dependency '@react-navigation/native@*' (Module build failed (from ../../../../../../../node_modules/babel-loader/lib/index.js): Retry SyntaxError: /tmp/snackager/snackager/buildStatus/1/@react-navigation~native@6.1.7-ios,android,web/package/node_modules/@react-navigation/core/src/types.tsx: Unexpected token, expected "?" (705:52)
703 | [RouteName in keyof ParamList]?: NonNullable< 704 | ParamList[RouteName]
What platform(s) does this occur on?
iOS
SDK Version
V48.0.0
Reproducible demo or steps to reproduce from a blank project
package.json file is : { "dependencies": { "expo-constants": "~14.2.1", "expo-status-bar": "~1.4.4", "link-preview-js": "", "expo-localization": "~14.1.1", "@expo/vector-icons": "^13.0.0", "react-native-paper": "4.9.2", "react-native-webview": "11.26.0", "react-native-hyperlink": "", "@react-navigation/native": "*", "@react-native-async-storage/async-storage": "1.17.11" } }