-
Notifications
You must be signed in to change notification settings - Fork 310
Source maps are not available in a real Android device using Chrome DevTools #822
Comments
Hey, I get the exact same problem :-( But it isn't a definitive solution for me... (because of my poor wireless network)
|
Hi, |
Source maps should be enabled by default. I cannot recreate what you're seeing. Thanks, |
Hi, @danbucholtz I have tested this in two different machines with two phones (Nexus 5 and Galaxy S6 Edge): Steps to reproduce:
Thanks in advance, |
@xmellado - Is it fixed for you? I am seeing same issue! Thanks |
@prabhjotAppmobi Sorry but no. The issue is still present and I have tried version 1.2.2 with the same results. I cannot debug TypeScript sources on a real Android device. I will test versions 1.3.x in a few days with Ionic 3, and I will update this issue if there are changes. |
@prabhjotAppmobi @xmellado Still the same problem with 1.3.0 version.
|
I got same problem trying to debug on ios device using safari or safari tp. Your system information: Cordova CLI: 6.5.0 |
@danbucholtz I can confirm that this issue persists with Ionic 3.0.1 and app scripts 1.3.3. |
@xmellado @BlckShrk - Thanks for the feedback. I added below entry to "package.json" and able to debug the typescript on android device. "config": { The only problem is that I am not able to check variable values while debugging. Any clues for it? My ionic-app-script version is 1.3.0 |
I have the same issue - no Typescript source maps when running on an emulator or a real device. I was on the latest Ionic 2 and hoped upgrading to Ionic 3 and the latest app-scripts would fix it. Unfortunately not. Changing Ionic losing source map functionality every other release or so has been a constant bugbear since Ionic 2 started :( It would be good to see this issue reopened and given some attention. |
+1 Can reproduce problem in app-scripts 1.3.4
|
Just to confirm that this is still an issue with the latest app-scripts, |
We're looking into it. Thanks, |
This is still an issue in 2.0.2. I sense that this is not a priority, but I'm unsure why that would be - having source maps when running in an emulator or on a device is absolutely invaluable. |
Can this issue be re-opened please? |
When will this be resolved? This is a big deal for debugging. |
This issue is a serious problem. Can it be reopened please. I am using app-script 3.0.0 and same issue |
Okay so I've got my workaround to build with source maps for dev and without for prod. In package.json
Create ./config/webpack.config.js to edit the webpack devtool to ignore the ionic_source_map_type and default to source-map
Development:
Production:
|
@domisginger I've been using a different workaround, with this in
along with this in my
This works, but 'misusing' A question though - your release build command uses |
@cocowalla your right, I had it in as a future proof. 'source-map' doesn't currently generate source maps but I thought it was intended too and not working which was why 'inline-source-map' aren't actually supported. I could be wrong. |
I have the same problem
|
I have the same issue at app-scripts 3.1.6. Pls reopen this. It's very critical. |
This is really critical, can't debug app on device/emulator ! Chrome inspect devices : 404 Not Found The resource could not be found. cli packages: (/home/aurel/.nvm/versions/node/v7.7.1/lib/node_modules)
global packages:
local packages:
System:
Environment Variables:
Misc:
|
@danbucholtz is this issue actually being looked at? it is still closed. This is a huge non-starter. |
=( i need solution .. |
same issue here :( |
Same |
@danbucholtz Appreciate any feedback on this issue. Please reopen the issue at the least since it is clearly a problem for many including me. |
This remains a problem with ionic4, only now it doesn't use webpack, it has moved onto angular cli builders which are configured (somehow) in ./angular.json |
As mentioned here I got it device typescript debugging to work with capacitor live reloading. |
Uh oh!
There was an error while loading. Please reload this page.
Short description of the problem:
I cannot debug TypeScript sources on a real Android device using
"ionic_source_map_type": "source-map"
in mypackages.json
file. Only using"ionic_source_map_type": "#inline-source-map"
Chrome DevTools finds source maps, but this type of source map is not supported by Ionic Team as explained here in issue #740 and--prod
fails when used to build the release version.What behavior are you expecting?
Either Chrome DevTools showing source maps in a real Android device using
"ionic_source_map_type": "source-map"
, or support"ionic_source_map_type": "#inline-source-map"
in production.Steps to reproduce:
ionic start --v2 myApp tabs
."ionic_source_map_type": "source-map"
as source map type in package.config. See below.ionic run android
.My package.config:
Which @ionic/app-scripts version are you using?
ionic-app-scripts 1.1.4
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
When using
"ionic_source_map_type": "#inline-source-map"
inpackages.json
, I can debug TypeScript in DevTools, but using--prod
makes the compilation fail:The text was updated successfully, but these errors were encountered: