-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Angular 11.1.1 breaks source map for components with variable as an inline template #40854
Copy link
Copy link
Closed
Closed
Copy link
Labels
P2The issue is important to a large percentage of users, with a workaroundThe issue is important to a large percentage of users, with a workaroundarea: compilerIssues related to `ngc`, Angular's template compilerIssues related to `ngc`, Angular's template compilerstate: has PR
Milestone
Description
🐞 bug report
Affected Package
@angular/compiler-cli
Is this a regression?
Yes. 11.1.0 does not present the issue.
Description
This component source file
// test.component.ts
import { Component, OnInit } from '@angular/core';
const x = '<p>test works!</p>';
@Component({
selector: 'app-test',
template: x
})
export class TestComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}
when compiled with 11.1.1 looks like this in chrome
instead of this
🔬 Minimal Reproduction
🔥 Exception or Error
🌍 Your Environment
Angular Version:
Angular CLI: 11.1.1
Node: 14.4.0
OS: darwin x64
Anything else relevant?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2The issue is important to a large percentage of users, with a workaroundThe issue is important to a large percentage of users, with a workaroundarea: compilerIssues related to `ngc`, Angular's template compilerIssues related to `ngc`, Angular's template compilerstate: has PR

