-
-
Notifications
You must be signed in to change notification settings - Fork 197
Sync fails if folder called tns_modules
exists in app folder
#2964
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
Comments
My only workaround to this is to run Btw live sync is also working. |
Hi @pkoleva , I further investigated the issue and it was caused by an incorrect structure of the app fodler on my machine. What happened was that I had a folder named "tns_modules" inside my "app" folder, that folder was a copy of the prepared by CLI "tns_modules" located at /sdk/platforms/ios/sdk/app/ because of the After removing that faulty ""tns_modules" folder the above issue was not longer present. We can close this issue. On a side note, maybe we should consider some sort of check/warning if a folder named ""tns_modules" is present in the application source code ( "app" folder) because that modules folder is a important one that should not be be made "dirty" by app source code. |
tns_modules
exists in app folder
Closing if favor of #3016 |
Did you verify this is a real problem by searching Stack Overflow and the other open issues in this repo?
Yes I have not found anything regarding such issue.
Tell us about the problem
The issue seams to be a strange one that for now I have managed to reproduce only on one machine. Basically after a second
tns prepare ios
some .js files from a plugins (node_modules of the project) are copied incorrectly to theplatforms/ios/app name/app/tns_modules/plugin name
In my scenario when developing a plugin, if I change the source code of it in the node_modules and I run tns prepare ios that change I have made and saved is not sent to the prepared iOS app for any prepare after a clean prepare (
rm -rf platform && tns prepare ios
)Which platform(s) does your issue occur on?
iOS
Please provide the following version numbers that your issue occurs with:
Please tell us how to recreate the issue in as much detail as possible.
Like I said for now this seam to be an issue that is local on my machine, but I have checked all npm settings, cleared cache, checked globally installed package and all looks ok.
tns prepare ios
tns prepare ios
Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.
Not specifically, but while developing an plugin (meaning npm link for the source of it has been used) any changes to that plugins code is not synced correctly to the prepared iOS app after the first
tns prepare ios
The text was updated successfully, but these errors were encountered: