Skip to content
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

console.dir works the same as log #5064

Closed
NickIliev opened this issue Nov 13, 2017 · 8 comments
Closed

console.dir works the same as log #5064

NickIliev opened this issue Nov 13, 2017 · 8 comments
Labels

Comments

@NickIliev
Copy link
Contributor

From @NickIliev on October 30, 2017 7:41

From @Andy-ZYA on October 28, 2017 8:48

I am following the official tutorial and after I change console.log to console.dir, the terminal shows the same thing.

CONSOLE LOG file:///app/app.component.js:6:20: [object Object] CONSOLE LOG file:///app/tns_modules/@angular/core/./bundles/core.umd.js:2957:20: Angu

How should I fix this problem?

Copied from original issue: #4997

Copied from original issue: NativeScript/nativescript-cli#3186

@NickIliev NickIliev added the bug label Nov 13, 2017
@NickIliev
Copy link
Contributor Author

Hey @Andy-ZYA thank you for reporting this issue - confirming this one as a bug.

Steps to reproduce - use this test app and see how console.dir works at this line

@NickIliev
Copy link
Contributor Author

From @blueberrynotblue on October 30, 2017 8:25

@NickIliev btw,is tns 3.3.0 not available now? npm install and update not work for 3.3.0

@NickIliev
Copy link
Contributor Author

@blueberrynotblue it is available on NPM.

npm i -g nativescript@latest

@NickIliev
Copy link
Contributor Author

Issue is still reproducible on ioS with release and master branches (3.3.0 and next) for tns-ios and tns-core-modules.

Steps to reproduce:

On iOS console.dir prints

CONSOLE LOG file:///app/main-view-model.js:12:20: [object Object]

on Android the same command dumps the properties as expected

@tsonevn
Copy link
Contributor

tsonevn commented Feb 6, 2018

This issue was moved to NativeScript/ios-jsc#875

@tsonevn tsonevn closed this as completed Feb 6, 2018
@ghost ghost removed the bug label Feb 6, 2018
@Neutrino-Sunset
Copy link

Why is this issue close and moved to ios-runtime? I've just done a clean install on Mint 18.3 and still see this exact same issue that was first reported last October.

@Neutrino-Sunset
Copy link

After modifying the app several times and tns run refreshing it, it started working.

@lock
Copy link

lock bot commented Aug 27, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Aug 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants