angular (core, language service) 2.4.10
typescript 2.2.1
error:
Process: Error processing message: Cannot read property 'has' of undefined TypeError: Cannot read property 'has' of undefined
at ExpressionDiagnosticsVisitor.visitVariable (/Users/anstarovoyt/git/ngcli-devoxx/node_modules/@angular/language-service/bundles/language-service.umd.js:45706:26)
at VariableAst.visit (/Users/anstarovoyt/git/ngcli-devoxx/node_modules/@angular/language-service/bundles/language-service.umd.js:15747:25)
at visit (/Users/anstarovoyt/git/ngcli-devoxx/node_modules/@angular/language-service/bundles/language-service.umd.js:15982:38)
at /Users/anstarovoyt/git/ngcli-devoxx/node_modules/@angular/language-service/bundles/language-service.umd.js:15984:43
at Array.forEach (native)
at templateVisitAll (/Users/anstarovoyt/git/ngcli-devoxx/node_modules/@angular/language-service/bundles/language-service.umd.js:15983:11)
at visit (/Users/anstarovoyt/git/ngcli-devoxx/node_modules/@angular/language-service/bundles/language-service.umd.js:43556:31)
at /Users/anstarovoyt/git/ngcli-devoxx/node_modules/@angular/language-service/bundles/language-service.umd.js:43517:14
at ExpressionDiagnosticsVisitor.TemplateAstChildVisitor.visitChildren (/Users/anstarovoyt/git/ngcli-devoxx/node_modules/@angular/language-service/bundles/language-service.umd.js:43558:10)
at ExpressionDiagnosticsVisitor.TemplateAstChildVisitor.visitEmbeddedTemplate (/Users/anstarovoyt/git/ngcli-devoxx/node_modules/@angular/language-service/bundles/language-service.umd.js:43514:22)
typescript 2.2.1
error:
Process: Error processing message: Cannot read property 'has' of undefined TypeError: Cannot read property 'has' of undefined
at ExpressionDiagnosticsVisitor.visitVariable (/Users/anstarovoyt/git/ngcli-devoxx/node_modules/@angular/language-service/bundles/language-service.umd.js:45706:26)
at VariableAst.visit (/Users/anstarovoyt/git/ngcli-devoxx/node_modules/@angular/language-service/bundles/language-service.umd.js:15747:25)
at visit (/Users/anstarovoyt/git/ngcli-devoxx/node_modules/@angular/language-service/bundles/language-service.umd.js:15982:38)
at /Users/anstarovoyt/git/ngcli-devoxx/node_modules/@angular/language-service/bundles/language-service.umd.js:15984:43
at Array.forEach (native)
at templateVisitAll (/Users/anstarovoyt/git/ngcli-devoxx/node_modules/@angular/language-service/bundles/language-service.umd.js:15983:11)
at visit (/Users/anstarovoyt/git/ngcli-devoxx/node_modules/@angular/language-service/bundles/language-service.umd.js:43556:31)
at /Users/anstarovoyt/git/ngcli-devoxx/node_modules/@angular/language-service/bundles/language-service.umd.js:43517:14
at ExpressionDiagnosticsVisitor.TemplateAstChildVisitor.visitChildren (/Users/anstarovoyt/git/ngcli-devoxx/node_modules/@angular/language-service/bundles/language-service.umd.js:43558:10)
at ExpressionDiagnosticsVisitor.TemplateAstChildVisitor.visitEmbeddedTemplate (/Users/anstarovoyt/git/ngcli-devoxx/node_modules/@angular/language-service/bundles/language-service.umd.js:43514:22)
//cc @chuckjaz
Angular2: Cannot read property 'name' of undefined. Ask Question 51. Angular TypeError: Cannot read property of 'name' undefined. Angular 2 subscription returning empty object. Angular JSON Object inside Object http request. Angular2 Service Returns Undefined.
Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign up
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking âSign up for GitHubâ, you agree to our terms of service and privacy statement. Weâll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
commented Jul 8, 2017â¢
edited
I think it started happening today after upgrade Angular to 4.2.6 (not sure).
The error ocurs after merging two branches (no errors nor conflicts in the merge process). I made 3 merges in different branches and it happened after each merge.
After the error is thrown, no more error messages are shown.
Setup
Microsoft Visual Code
Angular Language Service plugin 0.1.4
@angular/cli: 1.2.0
node: 6.10.3 os: win32 x64 @angular/animations: 4.2.6 @angular/cdk: 2.0.0-beta.8 @angular/common: 4.2.6 @angular/compiler: 4.2.6 @angular/compiler-cli: 4.2.6 @angular/core: 4.2.6 @angular/flex-layout: 2.0.0-beta.8 @angular/forms: 4.2.6 @angular/http: 4.2.6 @angular/material: 2.0.0-beta.8 @angular/platform-browser: 4.2.6 @angular/platform-browser-dynamic: 4.2.6 @angular/platform-server: 4.2.6 @angular/router: 4.2.6 @angular/cli: 1.2.0 @angular/language-service: 4.2.6 |
commented Aug 3, 2017
The error for me throws even if i am not in an angular project :/
|
commented Aug 29, 2017
Closed in 0.1.6
|
commented Aug 29, 2017
Nope, sorry. Just reported an issue where this showed for me, using 0.1.6
|
commented Aug 30, 2017
@jtsom Can you attach a repro?
|
commented Aug 30, 2017â¢
edited
Same issue for me.
This happened when I ran a
:%s command using the VsCodeVim extension. The occurances I was replacing were in the form [directive]='<thing to replace>' . Several of these exceptions showed up.
|
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment