I am encountering an issue with my tsconfig.json file. Here is its current configuration:
{
"compilerOptions": {
"target": "ES5",
"module": "amd",
"sourceMap": true,
"declaration": true,
"outDir": "../sdk_webroot/js",
"rootDir": "js",
"sourceRoot": "/js"
},
"exclude": [
"vendor"
]
}
Despite setting up WebStorm for JavaScript debugging and mapping /sdk_webroot/js
to the correct server directory, breakpoints in TypeScript do not connect properly (e.g. no response and missing red marker). On the other hand, breakpoints set in JavaScript within the sdk_webroot
directory function as expected.
I have spent some time trying different approaches like adjusting sourceMappingURL and searching online for a solution, but unfortunately, I haven't found a fix yet. It seems that Chrome is also unable to load the .map files.
Is there something crucial that I may be overlooking?