ionic2 rc0 chrome browser cannot find typescript .ts file
when i debug in chrome browser, i canot find .ts typescript file there only has .js file. i cannot debug like before.
duplicated https://github.com/driftyco/ionic/issues/8298
This is a duplicate of https://github.com/driftyco/ionic/issues/8292, so let's track it there. I'm going to close this for now.
Thanks, Dan
Whoops, that is this issue, so let's leave it open. LOL!
Thanks, Dan
if Source map file is not available in browser for debugging code. i will cannot work with ionic RC!!!!. i hope ionic team resolve this problem
So bad design
If I run ionic serve, I have source maps for/app, /pipes,/providers, and /pages is missing, no typescritp files
If I run ionic serve --lab, I have no /.tmp
We are working on this. This is a high priority item for us.
Thanks, Dan
Great to see Ionic is working on this; just a +1 here because this is an issue for me as well, but I will work around this as best as I can and try to guess when I debug :)
FYI - This also affects trying to debug in Visual Studio Code using the cordova tools extension. Used to work like a dream in both the browser using serve and directly on a device. Now all I get is the console output coming through, no breakpoints will fire.
When I run ionic serve, I see source maps to transpiled JS. It is pretty straight forward to debug IMO. What are you seeing, and what would you like to see?
Thanks, Dan
I can give you some screenshots of the issue if you would like. Basically in previous versions, the chrome debugger would show all the .ts files. Now it simply shows main.js. None of my pages .ts files appear. If you are getting map files with ionic serve and are able to debug code in your pages, then that's better than what I am experiencing.
@mirata, it is the same for me. I'm using nvm and tried two different install of ionic and two different startup 'tabs' project, the pages.ts files does not appear both with node versions 4.6.0 and 6.7.0.
In all cases this is what I get:

Actually the scripts are transpiled , and i can able to see the scripts in the pages folder , but i am not able to see that pages folder in the sources tab,
just a suggesstion i think the rollup remove the relation between the map file and the script file
@danbucholtz I understand that is possible to debug the transpiled main.js file, with all the pages.ts inside it. I also take for granted that rollup.js generates a code that is more optimized than webpack.
In any case could it be possible to have the previous ionic scripts of the webpack-gulp combination of tools so as to use them during the development?
In my opinion it is much simpler to debug with the separated .ts files, then to have the possibility to use rollup.js for a production build would be optimal and greatly appreciated.
@AntonioRossi, at this time, no. We will get source maps working. This is a high priority item for us.
I have a hunch the vast majority of changes for RC1 will be in app-scripts, unless there is a major bug found in the framework itself. We are iterating quickly on app-scripts as we're not satisfied with what we've produced so far.
Thanks, Dan
@danbucholtz I'm not sure if you're saying that the source map issue won't be fixed until RC1?
If so, will a workaround be published beforehand? This is a really big problem, and I'd really rather not wait for a new RC to be built, tested and published.
I was using Visual Studio to build and debug my ionic beta project. However, since rc0, I could not even build my project using Visual Studio anymore. Please note that I'm not even talking about debugging it.
@danielabbatt (or whoever else knows the answer), you mentioned that you also use VS. Do you have to change anything in your Visual Studio to be able to build Ionic2 rc0 project?
@eddyng8 did you follow the upgrade path in the Changelog?
Yes I did. I could build my project using "ionic build android" and ran it on my device using "ionic run android". So, I knew I followed everything in the Changelog correctly.
Let me back track a little bit. When I used ionic2 beta, I followed the following article to get my ionic2 project built and debugged in VS: https://blogs.msdn.microsoft.com/rido/2016/05/11/ionic2-and-visual-studio/. However, after upgraded my ionic2 to rc0 and followed the same steps again (minus the part that talked about gulp because the gulp built is removed in rc0), I got the following error when pressing F5 in VS:
MSB6006 tsc.exe exited with code 1. File: Microsoft MDA.FileMirroring.targets line 387
Also, I made sure that VS uses the same Node and npm version as when I did everything in command line by setting the path of the external tools as described in this article: https://blogs.msdn.microsoft.com/webdev/2015/03/19/customize-external-web-tools-in-visual-studio-2015/.
I hope somebody already figured out on how to use ionic2 rc0 in Visual Studio and can help me here. My goal is to be able to press F5 and run the app in the emulator via VS. And I know the debugging with ionic2 rc0 is not working. But when it works, of course I would like to be able to debug using VS again.
Amazing...