René's URL Explorer Experiment


Title: Sourcemap path in current bundle isn't being formed properly · Issue #14021 · angular/angular · GitHub

Open Graph Title: Sourcemap path in current bundle isn't being formed properly · Issue #14021 · angular/angular

X Title: Sourcemap path in current bundle isn't being formed properly · Issue #14021 · angular/angular

Description: I'm submitting a ... (check one with "x") [ x ] bug report => search github for a similar issue or PR before submitting [ ] feature request [ ] support request => Please do not submit support request here, instead see https://github.com/...

Open Graph Description: I'm submitting a ... (check one with "x") [ x ] bug report => search github for a similar issue or PR before submitting [ ] feature request [ ] support request => Please do not submit support reque...

X Description: I'm submitting a ... (check one with "x") [ x ] bug report => search github for a similar issue or PR before submitting [ ] feature request [ ] support request => Please do not ...

Opengraph URL: https://github.com/angular/angular/issues/14021

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Sourcemap path in current bundle isn't being formed properly","articleBody":"**I'm submitting a ...**  (check one with \"x\")\r\n```\r\n[ x ] bug report => search github for a similar issue or PR before submitting\r\n[ ] feature request\r\n[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\r\n```\r\n\r\n**Current behavior**\r\nSourcemaps are being added to each angular bundle from the perspective of the wrong directory. These sourcemaps are currently included in the latest (2.4.4) release when doing a fresh npm install.\r\n\r\nExample from `node_modules/@angular/core/src/linker/compiler.js.map`\r\n\r\n```\r\n{\"version\":3,\"file\":\"compiler.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../modules/@angular/core/src/linker/compiler.ts\"],\"names\":[],\r\n```\r\n\r\nThis is causing an unexpected/incorrect path to be displayed in debugging tools.\r\n\r\n**Expected behavior**\r\nSourcemap paths should start from the npm repository's base directory. In this case the path should start from `modules/@angular/core`\r\n\r\nResulting in a path similar to this:\r\n\r\n```\r\n{\"version\":3,\"file\":\"compiler.js\",\"sourceRoot\":\"\",\"sources\":[\"src/linker/compiler.ts\"],\"names\":[],\r\n\r\n```\r\n\r\n**Minimal reproduction of the problem with instructions**\r\n\r\nCreate a new project with Angular CLI beta.25-5\r\n\r\nmodify the file: node_modules/angular-cli/models/webpack-build-common.js:132\r\n\r\nreplace `exclude: [nodeModules]` with `exclude: /node_modules\\/(?!(\\@angular\\/core)).*/`\r\n\r\n*note: this is just to quickly include sourcemaps for @angular/core\r\n\r\nrun `ng serve`\r\n\r\nOpen the served page in Chrome and use developer tools > Sources tab\r\nAs a result (when using webpack) files appear to be in:\r\n\r\n```\r\nwebpack://../../../../../modules/@angular/core/src/linker/compiler.ts\r\n```\r\n\r\ninstead of \r\n```\r\nwebpack://./~/@angular/core/src/linker/compiler.ts\r\n```\r\n\r\n**What is the motivation / use case for changing the behavior?**\r\nDebugging Angular codebase from the context of a CLI project (I'm assuming whenever using webpack).\r\n\r\n**Please tell us about your environment:**\r\n\u003c!-- Operating system, IDE, package manager, HTTP server, ... -->\r\nOSX, VSCode, NPM, Webpack Dev Sever\r\n\r\n* **Angular version:** 2.0.X\r\n\u003c!-- Check whether this is still an issue in the most recent Angular version -->\r\n2.4.4\r\n\r\n* **Browser:** [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]\r\n\u003c!-- All browsers where this could be reproduced -->\r\n Chrome, I haven't tried others\r\n\r\n* **Language:** [all | TypeScript X.X | ES6/7 | ES5]\r\nTypeScript\r\n\r\n* **Node (for AoT issues):** `node --version` =   \r\nangular-cli: 1.0.0-beta.25.5\r\nnode: 6.5.0\r\nos: linux x64\r\n@angular/common: 2.4.4\r\n@angular/compiler: 2.4.4\r\n@angular/core: 2.4.4\r\n@angular/forms: 2.4.4\r\n@angular/http: 2.4.4\r\n@angular/material: 2.0.0-beta.1\r\n@angular/platform-browser: 2.4.4\r\n@angular/platform-browser-dynamic: 2.4.4\r\n@angular/router: 3.4.4\r\n@angular/compiler-cli: 2.4.4\r\n\r\n\r\nAlso note, I believe that webpack may be having issues with the sourcemaps plugin for scoped npm packages (anything @username/project) it's not placing the sources in the correct location even when the sourcemaps are corrected.","author":{"url":"https://github.com/JSMike","@type":"Person","name":"JSMike"},"datePublished":"2017-01-19T22:56:53Z","url":"https://github.com/angular/angular/issues/14021"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:cc888817-3fbd-fd56-6f77-7c5aa42038ba
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA53E:19F84C:12F56CD:18458DD:6B010F62
html-safe-nonced78f1b8c7b7089129085778062bd12e293063f83bc4655ace219183a855d35d7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTNFOjE5Rjg0QzoxMkY1NkNEOjE4NDU4REQ6NkIwMTBGNjIiLCJ2aXNpdG9yX2lkIjoiNDQyODA0ODYyMDM5ODM4Mjk0NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8a9491c3da2084d9912ec3dcf1f6fe564e19b9c164b6acd9c42d8c71b5341b2c
hovercard-subject-tagissue:202000281
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/14021/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b808ebbc492d851e54d78b5e2d1a6d904e7139d55513e8e3c31268b4af0e6062/angular/angular/issues/14021
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b808ebbc492d851e54d78b5e2d1a6d904e7139d55513e8e3c31268b4af0e6062/angular/angular/issues/14021
og:image:altI'm submitting a ... (check one with "x") [ x ] bug report => search github for a similar issue or PR before submitting [ ] feature request [ ] support request => Please do not submit support reque...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameJSMike
hostnamegithub.com
expected-hostnamegithub.com
Nonecb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124
turbo-cache-controlno-preview
go-importgithub.com/angular/angular git https://github.com/angular/angular.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id24195339
octolytics-dimension-repository_nwoangular/angular
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24195339
octolytics-dimension-repository_network_root_nwoangular/angular
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/14021#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F14021
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F14021
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular
Reloadhttps://github.com/angular/angular/issues/14021
Reloadhttps://github.com/angular/angular/issues/14021
Reloadhttps://github.com/angular/angular/issues/14021
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues835 (835)https://github.com/angular/angular/issues
Pull requests141 (141)https://github.com/angular/angular/pulls
Discussionshttps://github.com/angular/angular/discussions
Actionshttps://github.com/angular/angular/actions
Projectshttps://github.com/angular/angular/projects
Security and quality40 (40)https://github.com/angular/angular/security
Insightshttps://github.com/angular/angular/insights
https://github.com/angular/angular
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/14021
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/14021
Sourcemap path in current bundle isn't being formed properlyhttps://github.com/angular/angular/issues/14021#top
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenthttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22P3%22
area: packagingIssues related to Angular's creation of npm packageshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20packaging%22
freq4: criticalhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq4%3A%20critical%22
state: confirmedhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20confirmed%22
type: bug/fixhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
Backloghttps://github.com/angular/angular/milestone/82
https://github.com/JSMike
JSMikehttps://github.com/JSMike
on Jan 19, 2017https://github.com/angular/angular/issues/14021#issue-202000281
https://github.com/JSMike
JSMikehttps://github.com/JSMike
on Jan 22, 2017https://github.com/angular/angular/issues/14021#issuecomment-274345290
https://github.com/DzmitryShylovich
DzmitryShylovichhttps://github.com/DzmitryShylovich
on Mar 25, 2017https://github.com/angular/angular/issues/14021#issuecomment-289247466
@JSMikehttps://github.com/JSMike
https://github.com/JSMike
JSMikehttps://github.com/JSMike
on Mar 27, 2017https://github.com/angular/angular/issues/14021#issuecomment-289597768
@DzmitryShylovichhttps://github.com/DzmitryShylovich
https://github.com/JSMike
JSMikehttps://github.com/JSMike
on Mar 27, 2017https://github.com/angular/angular/issues/14021#issuecomment-289602225
#15527https://github.com/angular/angular/issues/15527
tboschhttps://github.com/tbosch
area: packagingIssues related to Angular's creation of npm packageshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20packaging%22
on Apr 10, 2017https://github.com/angular/angular/issues/14021#event-1036753817
IgorMinarhttps://github.com/IgorMinar
freq4: criticalhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq4%3A%20critical%22
severity3: brokenhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22severity3%3A%20broken%22
type: bug/fixhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
on Dec 22, 2017https://github.com/angular/angular/issues/14021#event-1399042117
https://github.com/IgorMinar
IgorMinarhttps://github.com/IgorMinar
on Dec 22, 2017https://github.com/angular/angular/issues/14021#issuecomment-353514231
#19841https://github.com/angular/angular/issues/19841
ngbothttps://github.com/apps/ngbot
Backloghttps://github.com/angular/angular/milestone/82
on Jan 23, 2018https://github.com/angular/angular/issues/14021#event-1437624701
https://github.com/JoostK
JoostKhttps://github.com/JoostK
on Mar 14, 2020https://github.com/angular/angular/issues/14021#issuecomment-599127920
@angular/core@6.0.0https://unpkg.com/browse/@angular/core@6.0.0/fesm2015/core.js.map
@angular/core@7.0.0 & 8.0.0https://unpkg.com/browse/@angular/core@8.0.0/fesm2015/core.js.map
@angular/core@9.0.0https://unpkg.com/browse/@angular/core@9.0.0/fesm2015/core.js.map
@devversionhttps://github.com/devversion
https://github.com/devversion
devversionhttps://github.com/devversion
on Mar 14, 2020https://github.com/angular/angular/issues/14021#issuecomment-599131962
@JoostKhttps://github.com/JoostK
9581658https://github.com/angular/angular/commit/958165888c2f634be6cc940925f214619a2f39a9
angular/core-builds@f4cf44dhttps://github.com/angular/core-builds/commit/f4cf44d57c5c16308040780d53aee8e67cf216c9
https://github.com/IgorMinar
IgorMinarhttps://github.com/IgorMinar
on Jun 1, 2020https://github.com/angular/angular/issues/14021#issuecomment-636920990
@angular/core@10.0.0-rc.0https://unpkg.com/browse/@angular/core@10.0.0-rc.0/fesm2015/core.js.map
IgorMinarhttps://github.com/IgorMinar
state: confirmedhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20confirmed%22
triage #1https://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22triage%20%231%22
on Jun 1, 2020https://github.com/angular/angular/issues/14021#event-3393614528
jelbournhttps://github.com/jelbourn
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenthttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22P3%22
severity3: brokenhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22severity3%3A%20broken%22
on Oct 1, 2020https://github.com/angular/angular/issues/14021#event-3830251596
https://github.com/petebacondarwin
petebacondarwinhttps://github.com/petebacondarwin
on Oct 19, 2020https://github.com/angular/angular/issues/14021#issuecomment-711830770
Sourcemaps for .d.ts files break go to definition in vscode #34446https://github.com/angular/angular/issues/34446
Bazel - Relocate sourcemaps #23520https://github.com/angular/angular/issues/23520
NGCC is non-hermetic and produces different output depending on source location in file system #39293https://github.com/angular/angular/issues/39293
petebacondarwinhttps://github.com/petebacondarwin
on Oct 19, 2020https://github.com/angular/angular/issues/14021#event-3892057819
petebacondarwinhttps://github.com/petebacondarwin
on Jan 17, 2021https://github.com/angular/angular/issues/14021#event-4215230073
AndrewKushnirhttps://github.com/AndrewKushnir
triage #1https://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22triage%20%231%22
on Mar 15, 2022https://github.com/angular/angular/issues/14021#event-6239501163
https://github.com/JeanMeche
JeanMechehttps://github.com/JeanMeche
on Sep 16, 2025https://github.com/angular/angular/issues/14021#issuecomment-3300320715
JeanMechehttps://github.com/JeanMeche
not plannedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Sep 16, 2025https://github.com/angular/angular/issues/14021#event-19735688843
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Oct 17, 2025https://github.com/angular/angular/issues/14021#issuecomment-3413312034
automatic conversation locking policyhttps://github.com/angular/angular/blob/f0fbced1c55bc8b8ed9df01cea99df42f3e7eae3/contributing-docs/auto-issue-locking.md
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Oct 17, 2025https://github.com/angular/angular/issues/14021#event-20331476993
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/14021
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/14021
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenthttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22P3%22
area: packagingIssues related to Angular's creation of npm packageshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20packaging%22
freq4: criticalhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq4%3A%20critical%22
state: confirmedhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20confirmed%22
type: bug/fixhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
BacklogNo due datehttps://github.com/angular/angular/milestone/82
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.