Error: cannot read the isSkipself property from null - after upgrading from Abgular beta to RC1

Here is tsconfig:

"compilerOptions": { "target": "es5", "module": "commonjs", "sourceMap": true, "watch": true, "removeComments": true, "moduleResolution": "node", "emitDecoratorMetadata": true, "experimentalDecorators": true, "declaration": false, "noImplicitAny": false, "noLib": false }, 

error: enter image description here

0
source share
3 answers

Answering my own question:

Removing the router from the directive. solved my problem

0
source

I got the same error message and it turned out that I forgot to add @Injectable() on top of the created service.

 @Injectable() // <-- missing export class MyService() { ... } 
+1
source

It's hard to say without seeing the code calling it. Similar error messages are discussed here.

Update

Now the error message should be improved with https://github.com/angular/angular/issues/9332

0
source

All Articles