{"action":"closed","issue":{"url":"https://api.github.com/repos/makinacorpus/angular2-schema-form/issues/30","repository_url":"https://api.github.com/repos/makinacorpus/angular2-schema-form","labels_url":"https://api.github.com/repos/makinacorpus/angular2-schema-form/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/makinacorpus/angular2-schema-form/issues/30/comments","events_url":"https://api.github.com/repos/makinacorpus/angular2-schema-form/issues/30/events","html_url":"https://github.com/makinacorpus/angular2-schema-form/issues/30","id":186768085,"number":30,"title":"Getting uncaught (in promise) error using Angular2-cli ","user":{"login":"estradamarkie","id":17979376,"avatar_url":"https://avatars.githubusercontent.com/u/17979376?v=3","gravatar_id":"","url":"https://api.github.com/users/estradamarkie","html_url":"https://github.com/estradamarkie","followers_url":"https://api.github.com/users/estradamarkie/followers","following_url":"https://api.github.com/users/estradamarkie/following{/other_user}","gists_url":"https://api.github.com/users/estradamarkie/gists{/gist_id}","starred_url":"https://api.github.com/users/estradamarkie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estradamarkie/subscriptions","organizations_url":"https://api.github.com/users/estradamarkie/orgs","repos_url":"https://api.github.com/users/estradamarkie/repos","events_url":"https://api.github.com/users/estradamarkie/events{/privacy}","received_events_url":"https://api.github.com/users/estradamarkie/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-02T10:50:22Z","updated_at":"2016-11-02T12:01:43Z","closed_at":"2016-11-02T12:01:43Z","body":"I followed the instruction how to implement it, although I'm not doing it on `app.component.ts` I'm implementing it on the actual component which is going to use this.\r\n\r\nI'm not sure about the main.browser.ts, but I created that and pasted the code for this file but it still giving me this big error.\r\n\r\nCan you shed a light on this error please\r\n\r\n`Error: Uncaught (in promise): Error: Error in ./InterfaceComponent class InterfaceComponent - inline template:94:19 caused by: Cannot read property 'type' of undefined\r\nTypeError: Cannot read property 'type' of undefined\r\n    at FormComponent.ngOnChanges (http://localhost:3000/main.bundle.js:62933:26)\r\n    at Wrapper_FormComponent.detectChangesInInputProps (/SchemaFormModule/FormComponent/wrapper.ngfactory.js:54:18)\r\n    at _View_InterfaceComponent0.detectChangesInternal (/AppModule/InterfaceComponent/component.ngfactory.js:522:29)\r\n    at _View_InterfaceComponent0.AppView.detectChanges (http://localhost:3000/main.bundle.js:58615:14)\r\n    at _View_InterfaceComponent0.DebugAppView.detectChanges (http://localhost:3000/main.bundle.js:58720:44)\r\n    at _View_InterfaceComponent_Host0.AppView.detectViewChildrenChanges (http://localhost:3000/main.bundle.js:58641:19)\r\n    at _View_InterfaceComponent_Host0.detectChangesInternal (/AppModule/InterfaceComponent/host.ngfactory.js:33:8)\r\n    at _View_InterfaceComponent_Host0.AppView.detectChanges (http://localhost:3000/main.bundle.js:58615:14)\r\n    at _View_InterfaceComponent_Host0.DebugAppView.detectChanges (http://localhost:3000/main.bundle.js:58720:44)\r\n    at ViewRef_.detectChanges (http://localhost:3000/main.bundle.js:41840:20)\r\n    at resolvePromise (http://localhost:3000/main.bundle.js:81977:31)\r\n    at http://localhost:3000/main.bundle.js:81954:13\r\n    at ZoneDelegate.invoke (http://localhost:3000/main.bundle.js:81741:26)\r\n    at Object.onInvoke (http://localhost:3000/main.bundle.js:28680:37)\r\n    at ZoneDelegate.invoke (http://localhost:3000/main.bundle.js:81740:32)\r\n    at Zone.run (http://localhost:3000/main.bundle.js:81623:43)\r\n    at http://localhost:3000/main.bundle.js:82011:57\r\n    at ZoneDelegate.invokeTask (http://localhost:3000/main.bundle.js:81774:35)\r\n    at Object.onInvokeTask (http://localhost:3000/main.bundle.js:28671:37)\r\n    at ZoneDelegate.invokeTask (http://localhost:3000/main.bundle.js:81773:40)`\r\n\r\nJSON schema looks like this:\r\n`{\r\n  \"type\": \"object\",\r\n  \"properties\": {\r\n    \"Name\": {\r\n      \"type\": \"string\"\r\n    },\r\n    \"Number\": {\r\n      \"format\": \"int32\",\r\n      \"type\": \"integer\"\r\n    },\r\n    \"PointInTime\": {\r\n      \"format\": \"date-time\",\r\n      \"type\": \"string\"\r\n    },\r\n    \"Url\": {\r\n      \"type\": \"string\"\r\n    },\r\n    \"Children\": {\r\n      \"type\": \"array\",\r\n      \"items\": {\r\n        \"type\": \"object\",\r\n        \"properties\": {\r\n          \"ChildName\": {\r\n            \"type\": \"string\"\r\n          },\r\n          \"ChildNumber\": {\r\n            \"format\": \"int32\",\r\n            \"type\": \"integer\"\r\n          },\r\n          \"ChildPointInTime\": {\r\n            \"format\": \"date-time\",\r\n            \"type\": \"string\"\r\n          },\r\n          \"CustomData\": {\r\n            \"type\": \"object\",\r\n            \"additionalProperties\": {\r\n              \"type\": \"array\",\r\n              \"items\": {\r\n                \"type\": \"object\"\r\n              }\r\n            }\r\n          }\r\n        }\r\n      }\r\n    },\r\n    \"CustomData\": {\r\n      \"type\": \"object\",\r\n      \"additionalProperties\": {\r\n        \"type\": \"array\",\r\n        \"items\": {\r\n          \"type\": \"object\"\r\n        }\r\n      }\r\n    }\r\n  }\r\n}`"}}
{"actor":{"display_login":"estradamarkie"}}