Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReactReconciler is not a function #2

Open
Lelelo1 opened this issue Feb 24, 2021 · 2 comments
Open

ReactReconciler is not a function #2

Lelelo1 opened this issue Feb 24, 2021 · 2 comments

Comments

@Lelelo1
Copy link

Lelelo1 commented Feb 24, 2021

ReactReconciler is not a function

..which currently comes from running the demo-react project on ios.


I tried running the it with uninstalling react-native and found the below error. I have no idea if they are related yet, maybe ReactReconciler is not a function is triggered by it, but being altered with rn somehow?

TypeError: (0 , _pathType.isDirectorySync) is not a function
in

fork-ts-checker-webpack-plugin/node_modules/cosmiconfig/dist/getDirectory.js:28:61

function getDirectorySync(filepath) {
  const filePathIsDirectory = (0, _pathType.isDirectorySync)(filepath); // <--

  if (filePathIsDirectory === true) {
    return filepath;
  }

  const directory = _path.default.dirname(filepath);

  return directory;
}
@shirakaba
Copy link
Member

shirakaba commented Feb 24, 2021

If you pull the latest commit on the haul branch, I worked around the ReactReconciler problem. I wasn’t able to determine why, but I did characterise the exact problem.

When I bundle both React Native and React NativeScript (which pulls in React Reconciler) into the same bundle, although React Reconciler clearly enters the bundle, React NativeScript fails to import it at runtime. It might be that React Native is poisoning it somehow.

To work around it, I gave up on mixing RNS with RN. I’m focusing on trying to run a complete RN app in a vanilla NativeScript app now (still in the demo-react project, though).

I’m stuck even on that, though. The moment I initialise an instance of RCTBridge, the app just exits without writing any logs or providing a stack trace. I’ve been unable to learn any more :/

@Lelelo1
Copy link
Author

Lelelo1 commented Feb 25, 2021

Did we ever do a successful log on iOS? Is the native iOS rn accessible without making any changes?

I am noticing when I comment out the custom AppDelegate.tsand start the app like in the rns sample the ReactReconciler is not function error comes back and it is without calling any rn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants