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

Timeline-view only works with tns run android? #4

Closed
RoyiNamir opened this issue Nov 10, 2017 · 2 comments
Closed

Timeline-view only works with tns run android? #4

RoyiNamir opened this issue Nov 10, 2017 · 2 comments

Comments

@RoyiNamir
Copy link

RoyiNamir commented Nov 10, 2017

Currently if I do this :

tns run android | timeline-view - then I do see the logs in the console ,also when I press ctrl+c - it does create the times.html file - so we're all set..

But - after installing webpack , I need to run this : npm run start-android-bundle

Which is : (in package.json) :

"start-android-bundle": "npm run ns-bundle --android --run-app"

BTW - if I run npm run start-android-bundle everything is ok but the file (time.html) is not created.

So I've tried to do this :

npm run ns-bundle --android --run-app | timeline-view 

But then it doesn't work :

child process exited with code 127

npm ERR! Windows_NT 10.0.15063
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "ns-bundle" "--android" "--run-app"
npm ERR! node v7.9.0
npm ERR! npm  v4.2.0
npm ERR! file C:\WINDOWS\system32\cmd.exe
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! Groceries@1.0.0 ns-bundle: `ns-bundle`
npm ERR! spawn ENOENT

Question :

What is the right way to create the times.html file with webpack ?

(I want to measure uptime for the app via looking at the graph.)

@RoyiNamir RoyiNamir changed the title How to run with npm run ns-bundle ? Timeline-view only works with tns run android? Nov 10, 2017
@buuhuu
Copy link

buuhuu commented Dec 4, 2017

First build the bundle
npm run build-android-bundle
Then start it
tns run android --bundle --disable-npm-install | timeline-view

@phacic
Copy link

phacic commented Dec 18, 2018

Times.html not created in tns 4.2 using the answer above

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

3 participants