sourceRoot doesn't work for files in sub folders
See original GitHub issueI have stored my source files in a number of sub folders.
It looks like the sourceRoot
parameter doesn’t correctly handle those files. It doesn’t consider the relative part beginning at the sources’ root up to their actual location when creating the source map entry.
Please refer to this issue for reference:
Issue Analytics
- State:
- Created 7 years ago
- Reactions:13
- Comments:16
Top Results From Across the Web
Pycharm: Marking a folder as 'sources root' is not recursive ...
py files needs to be explicitly added as 'sources root' in order for the IDE to resolve all references. Can this be done...
Read more >Configuring Project Structure | PyCharm Documentation
In PyCharm, content is a collection of files with which you are currently working, possibly organized in a hierarchy of subfolders. The top-level...
Read more >Robocopy does not copy the root folder and its time stamp
My test worked, I create a few folders and sub folders, c:\testing was root ... been to run the robocopy command to copy...
Read more >Apply View Format to all Sub-folders
Windows File Explorer sets views by folder type (i.e contents). It does not have any option to set views on a folder tree...
Read more >Specify source directories and files - Isilon Online Help
In the Source Cluster area, in the Source Root Directory field, type the full path of the source directory that you want to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I agree that the
sourceRoot
option does not work as expected when assigning a string value and source files are located in sub directories.Here’s a workaround using the
path
util:Hi I’ve got same issue Thanks @ckiely91. Your solution was very helpful. Here is my full task for “Node.js targeted” TS. Hope it would be useful…
I found following code in sources of plugin
Looks like sourceMap passed to output as is without, resolution of extra
../