# SourceMap on LiveReload

**URL:** <https://forum.ionicframework.com/t/sourcemap-on-livereload/132903>\
**Category:** ionic-v3\
**Created:** [June 14, 2018, 10:56am UTC](https://forum.ionicframework.com/t/sourcemap-on-livereload/132903 "2018-06-14T10:56:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dovel](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/dovel/32/127722_2.png) [@Dovel](https://forum.ionicframework.com/u/Dovel)\
**Post date:** [June 14, 2018, 10:56am UTC](https://forum.ionicframework.com/t/sourcemap-on-livereload/132903/1 "2018-06-14T10:56:21Z")

</div>

I’m wondering why getting ionic runtime errors without relate to the source code (source map).  
But I get a message about an uncaught (in promise) rejection to the built `main.js` file and not to the source code from the source map. Why not? In tsconfig.json the sourcemap option is true.

Running the app with the command:  
`ionic cordova run android -lc`

---

<div class="post-metadata">

**Author:** ![Dovel](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/dovel/32/127722_2.png) [@Dovel](https://forum.ionicframework.com/u/Dovel)\
**Post date:** [May 24, 2019, 10:24am UTC](https://forum.ionicframework.com/t/sourcemap-on-livereload/132903/2 "2019-05-24T10:24:22Z")

</div>

Maybe this will help: [Enable source-map for debugging via chrome inspector](https://forum.ionicframework.com/t/enable-source-map-for-debugging-via-chrome-inspector/164657)

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:32pm UTC](https://forum.ionicframework.com/t/sourcemap-on-livereload/132903/3 "2021-07-19T21:32:13Z")

</div>

Closed on July 19, 2021, 9:32pm UTC


