Skip to content
New issue

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

Showing error "cannot read property 'isSkipSelf' of null" and does not validate templates #181

Closed
mlakmal opened this issue Oct 11, 2017 · 36 comments
Assignees
Labels

Comments

@mlakmal
Copy link

mlakmal commented Oct 11, 2017

Using
VSCode v1.17.1
Workspace typescript v2.5.3
Workspace Angular v4.4.4

instead of showing template validation messages, language service extension is showing below error
"Cannot read property 'isSkipSelf' of null"

image

@aitboudad
Copy link

probably related to #183

@chuckjaz
Copy link
Contributor

Can you produce a project that reproduces this and supply a link to the repository?

@mrahhal
Copy link

mrahhal commented Jan 16, 2018

Also facing this and it's happening in a lot of places. Renders the whole service unusable in the template, and very obtrusive.

@fxck
Copy link

fxck commented Jan 17, 2018

@chuckjaz do you still need repro?

@mlakmal
Copy link
Author

mlakmal commented Jan 29, 2018

it will take me sometime to get this setup on repo. basically this is happening when you reference package libraries that are part of your repo and we update master tsconfig paths section to setup the definitions.

Ex: tsconfig
"compilerOptions": { "target": "es5", "module": "system", "moduleResolution": "node", "sourceMap": true, "pretty": true, "allowUnreachableCode": false, "allowUnusedLabels": false, "noImplicitAny": true, "noImplicitReturns": true, "noImplicitUseStrict": false, "noFallthroughCasesInSwitch": true, "emitDecoratorMetadata": true, "experimentalDecorators": true, "removeComments": false, "suppressImplicitAnyIndexErrors": true, "declaration": false, "watch": false, "noEmitHelpers": true, "baseUrl": ".", "paths": { "@xyz/uxd": [ "app/xyz/uxd/public_api" ] }, "types": [ "node", "core-js", "systemjs", "jquery", "custom", "jasmine" ] }

@matheo
Copy link

matheo commented Mar 7, 2018

Any news on this? it's annoying :(
Seems related to angular/angular#9332

@mrahhal
Copy link

mrahhal commented Mar 7, 2018

This stopped happening after updating everything to latest. @matheo maybe check that you have updated the language service extension.

@myflowpl
Copy link

myflowpl commented Mar 7, 2018

Just run on the same error
turns out I had error inside one of my custom components, it was mistake in import statement in TS file

after fixing the component TS import, the template error was gone

it would be nice to have better error message in this case

@matheo
Copy link

matheo commented Mar 13, 2018

@mrahhal I had the latest extension version
but I had to install "@angular/language-service": "^5.2.8" on my Angular 4.4 app to make it work :)
Thanks!

@jonyadamit
Copy link

Happened to me after moving a component and some classes to a different folder.
After fixing the imports the issue disappeared. (same as @myflowpl )

@samiujan
Copy link

I disabled/reloaded and enabled/reloaded Angular Language Service and the error disappeared

@splincode
Copy link

IDEA 2018.1

image

@F0rt1s
Copy link

F0rt1s commented Jun 7, 2018

I get the same error in VS Code (most recent version).

@pburrows
Copy link

Using WebStorm, uninstalling @angular/language-service from the project fixed the problem (and no functionality seems to be lost)

@Polyterative
Copy link

Polyterative commented Jun 20, 2018

Didn't work for me unfortunately in WebStorm
I have the isSkipSelf when building a library

@chadbr
Copy link

chadbr commented Jun 21, 2018

same error here on a random file... any way to diagnose?

@Polyterative
Copy link

I was able to solve my issue installing the peerDependencies in the project containing my library. Somehow angular or material are interfering

@haneefatp
Copy link

Write the full dependency path(instead of reading it from a folder) which resolves my issue in Angular 6
import {YourService} from "../../services/your-service-name.service"

@lemoinem
Copy link

lemoinem commented Sep 5, 2018

This error started happening randomly on a project (and templates that haven't been modified since) that was working perfectly with VS Code previous version.
Previously restarting the TS Server was enough to have the error disappear. This command is only available while in a TS file.
This is extremely disruptive.

@kyliau kyliau self-assigned this Sep 5, 2018
@csutorasr
Copy link

For me unmet peer dependencies caused the problem. After installing them and restarting window everything is resolved.

@gerrillero
Copy link

I got the same issue after installed "Paste JSON as Code" extension in Visual Code. Disabled this extension fix for me the problem.

@CodeMySofts
Copy link

It happened to me today after adding a new dependency. Deleting node_modules and re-installing the packages solved it.

@ramanes3822
Copy link

Just restart your machine after install all the dependencies.

@spwinner2017
Copy link

I disabled/reloaded and enabled/reloaded Angular Language Service and the error disappeared

worked for me!!!

@chlab
Copy link

chlab commented Mar 4, 2019

As others have said, the error is probably coming from somewhere else, it's just an unhelpful error message. What helped me, was running the native TS compiler (npx tsc) to see if there were any unresolved imports or similar (and fixing those).

@jschank
Copy link

jschank commented Apr 11, 2019

Please tell me how to disable whatever it is that is causing the rendering of the red squigglies in my code.
I would rather not have the protection, than be forced to ignore the false negatives

@stephanrauh
Copy link

Today I saw this error after confusing an @Input() parameter with a constructor parameter. I.e., it should have been

  @Input()
  public title: string;
  constructor() {}

but for some reason I wrote

constructor(public title: string) {}

Is it possible to generate a more helpful message in this case?

@kyliau
Copy link
Contributor

kyliau commented Apr 29, 2019

The original issue Cannot read property "isSkipSelf" of null has been fixed in angular/angular#30075

@Hariprakash1997
Copy link

Just close your vs code editor and reopen.It worked for me.

@tuongthovo
Copy link

Restart VS Code solved the error for me, not sure what happen but it just disappeared

@dixitomkar1809
Copy link

How I was able to solve this problem was to update the import statement for a service in my component file, please check your imports :)

@grantwhitaker06
Copy link

Check that all modules in your template file with the error are imported. That was my mistake.

@bcarriereupgrade
Copy link

One more "it worked for me" tip: Make sure baseUrl set correctly in tsconfig.json e.g ./src or whatever the case may be.

@bundenilesh
Copy link

Close and reopen the VSCode

@kyliau
Copy link
Contributor

kyliau commented Nov 8, 2019

This was fixed in angular/angular#30075

@kyliau kyliau closed this as completed Nov 8, 2019
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Feb 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests