aksonov / react-native-router-flux

The first declarative React Native router
MIT License
8.99k stars 2.11k forks source link

Module not found: Can't resolve '@react-navigation/core' #3804

Open chilarai opened 2 years ago

chilarai commented 2 years ago

Version

Tell us which versions you are using: react v17.0.2 react-native-router-flux v4.3.1 react-native v0.66.3

Expected behaviour

Actual behaviour

I have this basic React Native Code which fails to compile as soon as I import anything from react-native-router-flux. It throws Module not found: Can't resolve '@react-navigation/core'

If I uncomment line import { Router, Scene } from "react-native-router-flux";, everything works fine. I also manually did npm install @react-navigation/core but to no avail. The file actually exists in my node_modules folder

Steps to reproduce

Reproducible Demo

import React from "react";
import { Router, Scene } from "react-native-router-flux";

class Index extends React.Component {
    render() {
        return <div></div>
    }
}

export default Index;
jameswilddev commented 2 years ago

I'm seeing similar problems here when trying to upgrade an older app's dependencies. I suspect this project may no longer be maintained.

chilarai commented 2 years ago

@jameswilddev it seems so.

Siliconvelly commented 2 years ago

I am facing also same issue for that so please solve this issue as soon as possible i am facing this issue on reac-native 0.69.5 and all other versions & react-native-router-flux 4.3.1