-
Notifications
You must be signed in to change notification settings - Fork 97
Redundant dependency to react-native #57
Comments
I haven't played with plugins yet, so I'm interested to get some feedback (see #48). |
Sorry for replying a month late. The error occurs with any plugin. Even when the |
I'm having this error too. I can run the ngRnSeed project (without modifications) just fine, but in my own project I added react-native-material-kit and that seems to have broken everything. (I had to What's weird is that my project works fine in the iOS Simulator (although I haven't tried using anything from react-native-material-kit yet, but at least the thing builds and installs properly) but absolutely will not run on the Android Simulator. The React Packager shell window has the following error:
The other window still somehow manages to build the project and load the app in the Android emulator, but I just get a red screen with an error stacktrace; the app won't actually run. |
I can't reproduce the issue with https://github.com/mlaval/angular2-react-native-seed What I did:
Can you please provide a reproducer using this seed project? |
It took me a sec to reproduce it but I think I have an idea of what the issue is. If I do:
...everything does indeed work fine. However, in my project, I had tried to be clever and added the following to
This way, if I ever have to re-clone the repo for whatever reason (or if someone else tries to use it), these steps are automated, rather than having to remember or document that you need to manually do the Anyway, so it turns out the problem is with the If I've (manually) run
You then get:
...which had led me to believe that the plugin was properly linked after all. But my best guess is that something as part of that initial In any case, this isn't a huge deal for now -- I have enough to keep working -- but if this is something that can be looked into in the future, that'd be great... I can't imagine I'm the only one wanting to bring in a plugin like this, and IMO this kind of process should be automatable using Gulp, rather than having to be done manually. |
I can reproduce the same. Closing this issue as it is not related to the react-native-renderer itself. |
This issue comes up whenever I try to do a
npm install some_module
withinmy_project/dist/ngRnSeed
folder. I do not know if that is not allowed while using this plugin, but I did anyway. The install works fine but after the install if I rungulp start.ios
frommy_project
folder, it shows this kind of error :Not that this does not happen before doing the
npm install some_module
Apparently this is caused by redundant dependency to react-native according to this issue from another project.
The text was updated successfully, but these errors were encountered: