-
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
Babel plugins registration goes wrong with npm link
#4553
Comments
Hey thenewvu, thanks for reporting this issue! React Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.
|
Moreover, this solution affects to building android project in release mode. The packager can't find out the entry file, because it can't find the right app project root directory. About Babel plugins registration, some commits that I think they relate to the problem, you can see latest commits of this file. Doesn't it make any sense ? |
@thenewvu RN packager doesn't support symlinks. You might wanna place the project inside the |
@satya164 Thank you. It's a life-hacked feature if exists. I'm going to give few days to dig into the internal of packager and hot-loading server, hope get some help from here. |
@thenewvu The reason packager doesn't support symlink is because RN issue - #637 |
Hello RN team,
I'm working on a custom project generator, which's taking advantage from
npm link
to sync changes easily with a local RN repo.The project structure looks like this:
As you see, the
react-native
is linking to the global module, which's linking again to the local RN:The problem is I can not run the local CLI from the project directory:
My first solution is to put this to the project's
package.json
:But it's so painful if I also need to add
bundle
or other commands.After few hours, my next solution is to make this change in the local RN:
So now I only need to add this to the project's
package.json
:But one thing makes me so confuse is why this:
Is the team having some future plan ? My simple solution can make any break to other parts of RN ?
Thank you,
The text was updated successfully, but these errors were encountered: