Skip to content

MacOSX: Duplicates in TNS Core modules when stopping the script in the compile phase. #3133

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

Closed
briosheje opened this issue Sep 25, 2017 · 1 comment

Comments

@briosheje
Copy link

briosheje commented Sep 25, 2017

Dear friend, we, the rest of the NativeScript community really
appreciate your feedback! While we are doing all we can to take care of every
issue, sometimes we get overwhelmed. Because of that, we will consider issues
that are not constructive or problems that cannot be reproduced "dead".
Additionally, we will treat feature requests or bug reports with unanswered
questions regarding the behavior/reproduction for more than 20 days "dead". All
"dead" issues will get closed.

Please, provide the details below:

Did you verify this is a real problem by searching Stack Overflow and the other open issues in this repo?

No, since I've found a solution already.

Tell us about the problem

Stopping tns run ios using CTRL + C creates TS issues

Which platform(s) does your issue occur on?

Both

Please provide the following version numbers that your issue occurs with:

  • CLI: (run tns --version to fetch it) 3.2.1
  • Cross-platform modules: (check the 'version' attribute in the
    node_modules/tns-core-modules/package.json file in your project) 3.2.0
  • Runtime(s): (look for the "tns-android" and "tns-ios" properties in the
    package.json file of your project) 3.2.0
  • Plugin(s): (look for the version number in the package.json file of your
    project) None

Please tell us how to recreate the issue in as much detail as possible.

To recreate the issue, run any project using tns run ios or debug, wait until the compilation phases starts (after detecting the device), hit CTRL + C until the phase stops.

Try again, and you may encounter about a hundred errors that usually are duplicate typescript identifiers or type mismatches.

To solve the issue, delete the tns modules folder and run tns prepare ios and tns run ios once again. This happened to me twice already, since I didn't want to compile the project and, so, I've stopped it. Both the times I did this I encountered this error. The first time I've reinstalled nativescript and the core modules, then deleted the folder. The second time deleting the folder worked, so I think this is the issue. Perhaps it would be clever to trace such an error and suggest to fix it in a better way, I'm not sure whether it is intended to actually delete this folder.

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

No relevant code.

@rosen-vladimirov
Copy link
Contributor

Hey @briosheje ,
Thank you for reporting this. tns_modules dir should not be created in your app dir and causes such issues. The issue you've already described is already logged here (I believe it is the same issue): #3016 We've prepared a fix and it will be merged soon. I'm closing this thread, in favor of the other one. Thanks again for your report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants