-
Notifications
You must be signed in to change notification settings - Fork 13.5k
ionic2 rc0 chrome browser cannot find typescript .ts file #8292
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
Comments
duplicated #8298 |
This is a duplicate of #8292, so let's track it there. I'm going to close this for now. Thanks, |
Whoops, that is this issue, so let's leave it open. LOL! Thanks, |
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 If I run |
We are working on this. This is a high priority item for us. Thanks, |
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 Thanks, |
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. 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 |
@danbucholtz 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 Thanks, |
@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... |
VS went fine with Ionic2 Beta, but after upgrading it to RC0 i get:
however, |
@xx0r thats in probably in the main.prod.ts, seams to me like the former Theme File linking to build directory, the file created at the build process and is available when you ionic serve under no-domain folder in the ChromeDevTools under scripts. maybe you could comment it out and use the --dev parameter in package.json after build to force build with dev flag |
Still no solution for this? |
+1 Also seeing this issue. Any dirty workarounds until we see a fix? |
Seems like the latest script changes have fixed the typescript debugging issue for me. However changing html files does not update automatically if using |
What version are you on? We published two versions tonight. I think this should be fixed in Thanks, |
@danbucholtz Sorry, never mind. I cleared my npm cache, reinstalled dependencies and the issue seems to be resolved. |
Sorry to bump in a closed issue, but is this solved? I'm on RC1 with |
This was fixed and now its not. |
I tested it using app-scripts version 0.0.36 and it works. But using app-scripts / versions 0.0.37, 0.0.38 and 0.0.39 it fails. Hope this helps. |
When updating app-scripts or ionic, I always delete the folders /.tmp , On Sat, 5 Nov 2016, 3:14 a.m. Jose Blanco, [email protected] wrote:
|
It looks like the plan is for souremaps to be fixed in app-scripts version 0.0.40. You can see this thread, skip to the bottom - |
debugging again doesn't work with RC2 and Appscripts 0.0.43. Tested it in VS 2015 |
@Rainson12, use Chrome or a browser for debugging for now. We are using the default Webpack sourcemap set-up so it may or may not work with various IDEs. We will get this fixed ASAP. Thanks, |
I tried 0.0.43 in Chrome. I could see the *.ts files. But the content was a somewhat modified version of my *.ts files (it looks like WebPack modified them because it has a lot of WebPack decorators in there). I just want to know whether this is expected since WebPack is used instead of rollup? Back in 0.0.36, I saw the original content of *.ts files when debugging. I can live with this if this is the expected results. I just want to make sure that I didn't miss anything. |
when i debug in chrome browser, i canot find .ts typescript file there only has .js file. i cannot debug like before.
The text was updated successfully, but these errors were encountered: