-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Issues with react-packager running on Windows #133
Comments
cc @amasad. Note that we've never tested on windows any of the stack, so it's likely that there are more problems down the road. |
It may be simpler here to just regex replace backslash paths with forward slash, as either works in the node environment on Windows. I'll give that a try to see if I can progress this further. Any reason why you didn't opt to just use browserify or webpack for the packager? This would open the door to other transforms and plugins, workflows around static and dynamic packages etc... |
We've tried but they are orders of magnitude too slow for codebases as big as Facebook. We unfortunately had to roll out with our own in order to have sub-second incremental build time. That said, we want to play nice with those tools so that we can interoperate. We really hope that by open sourcing react-native, people outside of Facebook will help us there. |
I fixed the issues with the output above by escaping out the paths in haste. That fixed that issue, but the packager doesn't seem to be able to locate the |
I'm trying to integrate the browserify packager into the workflow, but it looks like the react-native packager doesn't use the standard node.js like search algorithm. Instead it seems to recurse down into the directories. This makes building anything with react-native more difficult. Is this a necessary part of the design? |
So it looks like I need to run the packager to do the packaging stage using
The packager complains that there's no entry point. |
I'm trying to run the react-packager on Windows, to provide the bundle running on an iOS device. I'm hitting some issues with the output of the packager when running on Windows vs. OSX. The Movies app on the device complains that the dependencies are not resolved and fails to load.
I ran the packager on both platforms and compared the output via curl to do a diff. It's not that easy to compare this, as the packager doesn't seem to respect the same order on each platform. Inspecting the files a bit more closely I can spot a problem with path names and escaping out the path separator.
For example, the require statements are not escaped out:
But the dependency parameter array does escape out the path separator, see
react-native\\react-native
below:I'm not sure if this is the problem, but it looks like it's tripping up the dependency resolver.
The text was updated successfully, but these errors were encountered: