You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When importing html content with an import statement, Angular Language Services generates a typescript. template must be a string\n Value is of type 'undefined'. The error does not affect typescript compiler or webpack, and vscode does not generate the error with ng-language-services disabled.
Example:
import html from "./app.component.html";
@Component({
selector: 'appComponent',
template: html
})
class AppComponent { ... }
Bug Type
What does this bug affect
Angular Language Service VSCode extension
Angular Language Service server
Reproduction
Steps to reproduce the behavior:
Create an empty angular project.
Create an html import typings as such, and register it in the tsconfig.json file
🐞 bug report
Is this a regression?
No, ,
Description
When importing html content with an import statement, Angular Language Services generates a typescript.
template must be a string\n Value is of type 'undefined'.
The error does not affect typescript compiler or webpack, and vscode does not generate the error with ng-language-services disabled.Example:
Bug Type
What does this bug affect
Reproduction
Steps to reproduce the behavior:
app.component.ts
)app.component.html
)import html from "./app.component.html";
, and pass the value as a template parameter to the component.template: html
.Expected behavior
The line should not be shown as an error, because
html
variable should be identified as type string from the typings file.Screenshots
🌍 Your Environment
Extension Version:
VSCode Version:
Operating System:
The text was updated successfully, but these errors were encountered: