ECONNRESET in nativescript after adding Sass

I am having problems after adding Sass to an Angular2 NativeScript project.

I get ECONNRESET when I run: tns livesync ios --emulator --watch

I can reproduce this by creating a new project and add Sass. 1. Create a new project: tns create test-project --ng 2. tns install sass 3. Add three scss files _app-common.scss, app.android.scss, app.ios.scss, as described in http: // docs.nativescript.org/ui/theme#sass-usage .

The full error I get in the terminal: The NativeScript debugger encountered Error Domain = NSPOSIXErrorDomain Code = 9 "Bad file descriptor". Error: read ECONNRESET at export._errnoException (util.js: 1022: 11) in the TCP.onread file (net.js: 572: 26)

+4
source share
1 answer

Complete these steps (Android / iOS):

  1. Remove nativescript cli by running npm uninstall -g nativescript
  2. Clear npm cache: clear npm cache
  3. Install the latest CLI npm install -g nativescript
  4. Delete the platforms folder in your project
  5. Run tns, run android / iOS --emulator
  6. Try Tns Lysync Android / IOS --emulator - watch

Please, could you update SDKs, emulators and simulators to the latest version.

0
source

Source: https://habr.com/ru/post/1663457/


All Articles