-
Notifications
You must be signed in to change notification settings - Fork 184
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
reflect-metadata with an angular rc5 app error localhost/:24 Error: TypeError: Cannot read property 'type' of null(…) #42
Comments
hi thanks |
It works for me the following way: In package.json: In systemjs.config.js: In code: So with this it finds my Reflect library and everything works fine. :) |
I have a similar problem, but in my case with latest Angular 4 using angular-cli + webpack. I've got problems with DI when load MyServices and your dependencies, only if use @ovione Can you help me? |
@mfdeveloper do you have a stack trace you can provide? |
@rbuckton This is my stacktrace printed on browser console. When remove
my.service.ts import { Injectable } from '@angular/core';
import { OtherService } from './other.service';
@Injectable()
export class MyService {
constructor(private otherService: OtherService) { }
} |
hello, i have exactly the same error. |
having the same issue 2020. how to resolve? |
hello Ron,
I was using reflect-metadata 0.1.3 in an angular rc4 app in a project.
Now I use reflect-metadata 0.1.8 and angular rc5.
The way I was using it was the following.
map['reflect-metadata'] = 'node_modules/reflect-metadata/Reflect.js';
import "reflect-metadata";
-In my application
`export class MapUtils {
But now I have the error:
Error: TypeError: Cannot read property 'type' of null(…)
I suspect I'm not mapping properly in the systemjs.config.js but with rc4 and angular rc4 that worked.
If you could guide me into the right direction that would be great
thanks
The text was updated successfully, but these errors were encountered: