NativeScript / nativescript-cli

Command-line interface for building NativeScript apps
https://www.npmjs.com/package/nativescript
Apache License 2.0
1.04k stars 196 forks source link

No console.log() on {N} 4.0 #3561

Closed odnamrataizem closed 6 years ago

odnamrataizem commented 6 years ago

Please, provide the details below:

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

Yes

Tell us about the problem

After upgrading to {N} 4.0, console.log() is failing to output anything. I made sure I didn't forget to upgrade anything as per NativeScript/NativeScript#5711, but still no go.

Both tns run and tns debug fail to display console.log() messages from my own code, even with --log trace.

Which platform(s) does your issue occur on?

Both

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

  "dependencies": {
    "@angular/common": "~5.2.0",
    "@angular/compiler": "~5.2.0",
    "@angular/core": "~5.2.0",
    "@angular/forms": "~5.2.0",
    "@angular/http": "~5.2.0",
    "@angular/platform-browser": "~5.2.0",
    "@angular/platform-browser-dynamic": "~5.2.0",
    "@angular/router": "~5.2.0",
    "@ngrx/store": "^4.1.1",
    "@ngx-translate/core": "^9.1.1",
    "@ngx-translate/http-loader": "^2.0.1",
    "croppie": "^2.6.2",
    "email-validator": "^2.0.3",
    "faker": "^4.1.0",
    "focus-visible": "^4.1.4",
    "format-message": "^6.0.3",
    "gerador-validador-cpf": "^3.1.1",
    "jssha": "^2.3.1",
    "lodash": "^4.17.10",
    "moment": "^2.22.1",
    "nativescript-angular": "~5.3.0",
    "nativescript-background-http": "^3.2.5",
    "nativescript-camera": "^4.0.2",
    "nativescript-cardview": "^3.0.1",
    "nativescript-carousel": "^3.1.1",
    "nativescript-checkbox": "^3.0.3",
    "nativescript-clipboard": "^1.1.7",
    "nativescript-fabric": "2.0.0-develop-129",
    "nativescript-geolocation": "^4.2.6",
    "nativescript-i18n": "^0.2.4",
    "nativescript-image-swipe": "^2.1.0",
    "nativescript-imagecropper": "^1.0.1",
    "nativescript-imagepicker": "^6.0.1",
    "nativescript-intercom-bridge": "^1.0.0",
    "nativescript-iqkeyboardmanager": "^1.3.0",
    "nativescript-loading-indicator": "^2.4.0",
    "nativescript-local-notifications": "^1.2.1",
    "nativescript-permissions": "^1.2.3",
    "nativescript-plugin-firebase": "^5.3.1",
    "nativescript-pulltorefresh": "^2.1.0",
    "nativescript-purchase": "^2.0.1",
    "nativescript-push-notifications": "^1.1.3",
    "nativescript-socket.io": "^0.9.0",
    "nativescript-unit-test-runner": "^0.3.4",
    "nativescript-web-image-cache": "^4.2.4",
    "ng2-nouislider": "^1.7.8",
    "ngx-croppie": "^1.0.0",
    "nouislider": "^11.1.0",
    "photoswipe": "^4.1.2",
    "querystring": "^0.2.0",
    "redux": "^3.6.0",
    "reflect-metadata": "~0.1.12",
    "rxjs": "~5.5.10",
    "socket.io": "^2.1.0",
    "tns-core-modules": "^4.0.0",
    "zone.js": "~0.8.18"
  },
  "devDependencies": {
    "@angular/compiler-cli": "~5.2.0",
    "@ngtools/webpack": "~1.9.8",
    "@types/croppie": "^2.5.2",
    "@types/jasmine": "^2.8.6",
    "androidmanifest": "^2.0.0",
    "angular2-template-loader": "^0.6.2",
    "awesome-typescript-loader": "^3.5.0",
    "babel-traverse": "6.26.0",
    "babel-types": "6.26.0",
    "babylon": "6.18.0",
    "clean-webpack-plugin": "~0.1.19",
    "concurrently": "^3.5.1",
    "copy-webpack-plugin": "~4.5.1",
    "css-loader": "~0.28.11",
    "extract-text-webpack-plugin": "~3.0.2",
    "file-loader": "^0.11.2",
    "filewalker": "0.1.3",
    "html-loader": "^0.5.5",
    "jasmine-core": "^3.1.0",
    "json": "^9.0.6",
    "karma": "^2.0.2",
    "karma-jasmine": "^1.1.2",
    "karma-nativescript-launcher": "^0.4.0",
    "lazy": "1.0.11",
    "nativescript-css-loader": "~0.26.1",
    "nativescript-dev-typescript": "^0.7.1",
    "nativescript-dev-webpack": "^0.11.0",
    "nativescript-worker-loader": "~0.8.1",
    "node-sass": "^4.9.0",
    "plist": "^3.0.1",
    "protractor": "^5.3.1",
    "protractor-beautiful-reporter": "^1.2.1",
    "pug-html-loader": "^1.1.5",
    "raw-loader": "~0.5.1",
    "resolve-url-loader": "~2.3.0",
    "sass-loader": "^7.0.1",
    "tslint": "^5.9.1",
    "tslint-eslint-rules": "^5.1.0",
    "tslint-microsoft-contrib": "^5.0.3",
    "typescript": "~2.6.2",
    "uglifyjs-webpack-plugin": "~1.2.5",
    "wait-on": "^2.1.0",
    "webpack": "~3.11.0",
    "webpack-bundle-analyzer": "^2.11.1",
    "webpack-dev-server": "^2.11.1",
    "webpack-sources": "~1.1.0",
    "worker-loader": "^1.1.1"
  },

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

N/A

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

No code involved.

odnamrataizem commented 6 years ago

Oops, my mistake! I had actually fumbled with my own code. Now everything is back to normal.

Apologies!