web
web copied to clipboard
React Navigation web not compatible with react-app-rewired
"dependencies": {
"@react-navigation/core": "3.0.0-alpha.19",
"@react-navigation/web": "^1.0.0-alpha",
"react": "^16.8.4",
"react-art": "^16.8.4",
"react-dom": "^16.8.4",
"react-native-web": "0.10.0",
"react-scripts": "2.1.8"
},
"devDependencies": {
"@babel/plugin-proposal-class-properties": "7.3.4",
"@babel/plugin-proposal-export-default-from": "7.2.0",
"customize-cra": "0.2.12",
"react-app-rewired": "2.1.0"
},
React Navigation works when run with react-scripts start
but fails when scripts is replaced with react-app-rewired start
.
This is config-overrides.js
Output
I have the same issue, did you find a solution for this @SupriyaKalghatgi ?
No
@diogomgbrito, @SupriyaKalghatgi
workaround i found is just import from src/ folder, like that:
import { createBrowserApp } from "@react-navigation/web/src";
Please set sticky @proof666 's answer post.. Save my day!