-
Notifications
You must be signed in to change notification settings - Fork 26.5k
Closed
Labels
P4A relatively minor issue that is not relevant to core functionsA relatively minor issue that is not relevant to core functionsarea: language-serviceIssues related to Angular's VS Code language serviceIssues related to Angular's VS Code language servicefeatureIssue that requests a new featureIssue that requests a new featurefeature: insufficient votesLabel to add when the not a sufficient number of votes or comments from unique authorsLabel to add when the not a sufficient number of votes or comments from unique authorsfeature: votes requiredFeature request which is currently still in the voting phaseFeature request which is currently still in the voting phasefreq1: low
Milestone
Description
I'm submitting a...
[ ] Regression (a behavior that used to work and stopped working in a new release)
[x ] Bug report
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
[ ] Other... Please describe:
I have a simple component that uses webpack to load templates.
@Component({
selector: "app-sidebar-header",
template: require("./app-sidebar-header.component.html")
})
export class AppSidebarHeaderComponent { }
Current behavior
the error is displayed
Component 'AppSidebarHeaderComponent' must have a template or templateUrl
Expected behavior
I do not expect to see the error message
The template actually exists, it's just being loaded by webpack. This method resolves a lot of issues with loading templates in unit tests, and is essential for my workflow.
Angular version: 5.2.10
AlexSwensen, zawupf, Elania, DerZyklop, vshpuryk and 10 more
Metadata
Metadata
Assignees
Labels
P4A relatively minor issue that is not relevant to core functionsA relatively minor issue that is not relevant to core functionsarea: language-serviceIssues related to Angular's VS Code language serviceIssues related to Angular's VS Code language servicefeatureIssue that requests a new featureIssue that requests a new featurefeature: insufficient votesLabel to add when the not a sufficient number of votes or comments from unique authorsLabel to add when the not a sufficient number of votes or comments from unique authorsfeature: votes requiredFeature request which is currently still in the voting phaseFeature request which is currently still in the voting phasefreq1: low