Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

JS file can't be found in chrome devtools sources when using @component templateUrl #89

Closed
six006 opened this issue Oct 4, 2016 · 3 comments

Comments

@six006
Copy link

six006 commented Oct 4, 2016

By now,I still can't find a way using *.ts to debug my ionic2 code!
I find a temporary solution to debug the js .

project ' ionic-commerce-app'

When using 'ionic build' command ,all src files are compiled and copy to .tmp directory,
3

But I found strange thing !

If using sytax @component {templateUrl:'about.html'},we can't find the file in chrome developer tools sources.the code can't be set breakpoint to debug.
4
5

when I replace the 'templateUrl' to 'template' ,the file can be found in chrome dev sources . and can be set breakpoint to debug.
1-1
1

Can't I using templateUrl in code.If using templateUrl how to debug it.

@six006 six006 changed the title Debug file can't be found in chrome when @component using templateUrl JS file can't be found in chrome devtools sources when using @component templateUrl Oct 4, 2016
@adamdbradley
Copy link
Contributor

Would you be able to update to the latest version? The dev builds no longer use the .tmp directory.

@six006
Copy link
Author

six006 commented Oct 6, 2016

thanks ,I use the latest 0.0.29 ,but it doesn't generate all files
1
see #101

@jgw96
Copy link
Contributor

jgw96 commented Oct 6, 2016

Hello @six006 , thanks for testing! I am going to close this issue as a duplicate of #101 . Thanks!

@jgw96 jgw96 closed this as completed Oct 6, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants