Skip to content
This repository was archived by the owner on May 20, 2021. It is now read-only.
This repository was archived by the owner on May 20, 2021. It is now read-only.

React Navigation web not compatible with react-app-rewired #18

Open

Description

@SupriyaKalghatgi
"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
image

Output
image

Activity

  1. diogomgbrito commented on Mar 26, 2019

    @diogomgbrito

    I have the same issue, did you find a solution for this @SupriyaKalghatgi ?

  2. SupriyaKalghatgi commented on Mar 27, 2019

    @SupriyaKalghatgi
    Author

    No

  3. proof666 commented on Apr 21, 2019

    @proof666

    @diogomgbrito, @SupriyaKalghatgi

    workaround i found is just import from src/ folder, like that:
    import { createBrowserApp } from "@react-navigation/web/src";

  4. fortezhuo commented on Nov 20, 2019

    @fortezhuo

    Please set sticky @proof666 's answer post.. Save my day!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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