expo / snack

Expo Snack lets you run Expo in the browser.
https://snack.expo.dev
MIT License
356 stars 104 forks source link

Failed to resolve dependency '@react-navigation/native@*' (Network request failed) #446

Closed adouwedji closed 1 year ago

adouwedji commented 1 year ago

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]

705 | > extends NavigatorScreenParams<infer T extends {}>

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" } }

adouwedji commented 1 year ago

Resolved with the following in package.json

"@react-navigation/native": "^5.7.3",