-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
[Android][Windows] packager.js bug crashes development server! #2787
Comments
Same issue,haven't find a way around it yet. |
Hey. Just find out the problem for (let currDir = path.dirname(fromModule.path);
currDir !== '/';
currDir = path.dirname(currDir)) {
searchQueue.push(
path.join(currDir, 'node_modules', realModuleName)
);
} currDir !== '/'; does not match window root path, and it fall into a dead loop, this will make the server work for (let currDir = path.dirname(fromModule.path);
currDir !== path.parse(fromModule.path).root;
currDir = path.dirname(currDir)) {
searchQueue.push(
path.join(currDir, 'node_modules', realModuleName)
);
} Yet, still get a blank Activity with no UI,haven't find out why yet. |
The issue here facebook#2787 The root path '/' dosn't match windows root path
Awesome @mqli . I tried your fix and it works as you described. The Unfortunately the app is blank white. So close now to finally be able to use react-native android on windows. Please keep on digging and let me know if I can help in any way to find the final fix. Cheers |
+1 for support for Windows. |
Done and Done |
Awesome! |
Please send a pull request and we'll get someone working on the packager to review it. |
Well, It's only a temporary workaround,I will send a pull request after more test and debug. |
Thank you so much @mqli. I started from scratch, added all your fixes and have a great working React-Native Android App on Windows! This is fantastic news and I hope it will make it into the React-Package soon. There is one last thing I noticed which is a bit of: This is not a big problem, but might confuse everybody who is new to react and might cause a lot of issue reports. Anyway, thank you so much @mqli and we are looking forward to double the React community size with Android and Windows developers to build and share fantastic components. |
Can you also please have a look into this issue. I think you might be able to fix it, since it looks like a similar problem with Thanks again |
Summary: The issue here #2787 The root path '/' dosn't match windows root path Closes #2789 Reviewed By: @svcscm Differential Revision: D2452718 Pulled By: @martinbigio
Referencing #2693 here as a master task for tracking all linux/windows efforts |
@mqli update: it works! |
Summary: The issue here facebook#2787 The root path '/' dosn't match windows root path Closes facebook#2789 Reviewed By: @svcscm Differential Revision: D2452718 Pulled By: @martinbigio
Hi there! This issue is being closed because it has been inactive for a while. But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/androidwindows-packagerjs-bug-crashes-development-server ProductPains helps the community prioritize the most important issues thanks to its voting feature. Also, if this issue is a bug, please consider sending a PR with a fix. We rely on the community to provide |
Summary: The issue here facebook/react-native#2787 The root path '/' dosn't match windows root path Closes facebook/react-native#2789 Reviewed By: @svcscm Differential Revision: D2452718 Pulled By: @martinbigio
Hello
It seems the development server that serves the JavaScript to the App has broken code (on Windows).
Calling this to run the development server:
node node_modules/react-native/packager/packager.js
works fine until the App requests the JavaScript Bundle. That causes the development server to crash:The crash looks slightly different every time, here are some examples:
Another one:
This makes it impossible to use React Native on Windows.
Please help to fix this, thank you
Bernd
The text was updated successfully, but these errors were encountered: