angular: Language service error Warning:(1, 1) Angular Language Service internal globalError: Cannot read property 'charCodeAt' of undefined
[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/angular/angular/blob/master/CONTRIBUTING.md#question
Current behavior
Warning:(1, 1) Angular Language Service internal globalError: Cannot read property 'charCodeAt' of undefined
when configured template with templateRef:
<Slideritem [templateRef]="g">
<template #g>
</template>
</Slideritem>
Expected behavior no error
@angular/cli: 1.0.0-beta.30
node: 6.9.5
os: win32 x64
@angular/cli: 1.0.0-beta.30
@angular/common: 2.4.6
@angular/compiler: 2.4.6
@angular/core: 2.4.6
@angular/forms: 2.4.6
@angular/http: 2.4.6
@angular/language-service: 2.4.6
@angular/platform-browser: 2.4.6
@angular/platform-browser-dynamic: 2.4.6
@angular/router: 3.4.5
@angular/compiler-cli: 2.4.6
@ngtools/webpack: 1.2.8
Angular 2 Kitchen sink: http://ng2.javascriptninja.io and source@ https://github.com/born2net/Angular-kitchen-sink Regards,
Sean
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 1
- Comments: 24 (2 by maintainers)
In my project I’ve got a similar warning:
Warning:(1, 1) Angular Language Service internal globalError: Cannot read property 'has' of undefined
Same here with 2.4.9 (both angular core and language service)
Seems an upgrade to LS 4.0.0 did not fix the issue
Node 7.5.0 Typescript 2.2.1 Angular 4.0.0 Angular LS 4.0.0
I changed it to 2.1.5 but still get globalErrors
Warning:(1, 1) Angular Language Service internal globalError: Cannot read property ‘hasOwnProperty’ of undefined Warning:(1, 1) Angular Language Service internal globalError: Cannot read property ‘__constructor’ of undefined
Updating to angular & language service from 4.0.1 to 4.0.2 solved it for me:
@angular/language-service: 4.0.2 typescript 2.2.2 node: 6.10.0 os: mac os IntelliJ 2017.1