Skip to content

[ios] "Unable to apply changes on device: ######. Error is: Unable to find free local port.." #4684

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
tsonevn opened this issue Jun 6, 2019 · 1 comment
Assignees

Comments

@tsonevn
Copy link
Contributor

tsonevn commented Jun 6, 2019

@paxperscientiam commented on Wed Jun 05 2019

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

✔ Getting NativeScript components versions information...
✔ Component nativescript has 5.4.0 version and is up to date.
✔ Component tns-core-modules has 5.4.1 version and is up to date.
⚠ Update available for component tns-android. Your current version is 5.3.1 and the latest available version is 5.4.0.
✔ Component tns-ios has 5.4.0 version and is up to date.

Just doing ios, so android thing shouldn't matter.

Describe the bug
When I do a tns build ios --log trace it builds successfully. However, when I run tns debug ios, I run into this error: "Unable to apply changes on device: ######. Error is: Unable to find free local port.."

Now, I think it may be related to fork-ts-checker, only because it remains running when there is a fault.

To Reproduce

  • use bundle mode
  • tns debug ios / tns run ios (i'm using simulator)
  • change scss
  • wait ... until webpack stops with aforementioned error "Unable to apply changes on device: ######. Error is: Unable to find free local port.."
  • check background processes: there are two instances of fork-ts-checker running. But maybe this means nothing. IDK!

Additional context

I'll try to come up with minimal working example soon.

Other anonomolous errors:

Module build failed (from ../node_modules/sass-loader/lib/loader.js):
Error: ENOENT: no such file or directory, scandir '<PROJECT_ROOT>/node_modules/node-sass/vendor'

##EDIT##
OK, some progress. I've narrowed part of the problem down to nativescript-dev-sass. Seems to a negative interaction between its post install scripts and how pnpm works. I've opened an issue there too: pnpm/pnpm#1865

@rosen-vladimirov
Copy link
Contributor

Hey @paxperscientiam,
pnpm is not supported by NativeScript CLI. I'm closing this thread and I'm relating it to the feature request about adding support for pnpm.
In case you face the same issue without using pnpm, please reopen this thread and add steps to reproduce the errors.

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