{"action":"created","issue":{"url":"https://api.github.com/repos/mike-marcacci/objectpath/issues/4","labels_url":"https://api.github.com/repos/mike-marcacci/objectpath/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/mike-marcacci/objectpath/issues/4/comments","events_url":"https://api.github.com/repos/mike-marcacci/objectpath/issues/4/events","html_url":"https://github.com/mike-marcacci/objectpath/issues/4","id":79421160,"number":4,"title":"problem with schema form","user":{"login":"mhhf","id":446478,"avatar_url":"https://avatars.githubusercontent.com/u/446478?v=3","gravatar_id":"","url":"https://api.github.com/users/mhhf","html_url":"https://github.com/mhhf","followers_url":"https://api.github.com/users/mhhf/followers","following_url":"https://api.github.com/users/mhhf/following{/other_user}","gists_url":"https://api.github.com/users/mhhf/gists{/gist_id}","starred_url":"https://api.github.com/users/mhhf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhhf/subscriptions","organizations_url":"https://api.github.com/users/mhhf/orgs","repos_url":"https://api.github.com/users/mhhf/repos","events_url":"https://api.github.com/users/mhhf/events{/privacy}","received_events_url":"https://api.github.com/users/mhhf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-22T11:39:31Z","updated_at":"2015-05-22T16:38:52Z","closed_at":null,"body":"I'm new to angular and maybe I oversee something, but I couldn't get it to work out of the box with angular-schema-form. I got the following Error:\r\n\r\n```\r\nUncaught Error: [$injector:modulerr] Failed to instantiate module VSPApp due to:\r\nError: [$injector:modulerr] Failed to instantiate module ObjectPath due to:\r\nError: [$injector:nomod] Module 'ObjectPath' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.\r\nhttp://errors.angularjs.org/1.3.15/$injector/nomod?p0=ObjectPath\r\n    at REGEX_STRING_REGEXP (http://localhost:3000/bower_components/angular/angular.js:63:12)\r\n    at http://localhost:3000/bower_components/angular/angular.js:1774:17\r\n    at ensure (http://localhost:3000/bower_components/angular/angular.js:1698:38)\r\n    at module (http://localhost:3000/bower_components/angular/angular.js:1772:14)\r\n    at http://localhost:3000/bower_components/angular/angular.js:4115:22\r\n    at forEach (http://localhost:3000/bower_components/angular/angular.js:323:20)\r\n    at loadModules (http://localhost:3000/bower_components/angular/angular.js:4099:5)\r\n    at http://localhost:3000/bower_components/angular/angular.js:4116:40\r\n    at forEach (http://localhost:3000/bower_components/angular/angular.js:323:20)\r\n    at loadModules (http://localhost:3000/bower_components/angular/angular.js:4099:5)\r\nhttp://errors.angularjs.org/1.3.15/$injector/modulerr?p0=ObjectPath&p1=Erro…2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A4099%3A5)\r\n    at REGEX_STRING_REGEXP (http://localhost:3000/bower_components/angular/angular.js:63:12)\r\n    at http://localhost:3000/bower_components/angular/angular.js:4138:15\r\n    at forEach (http://localhost:3000/bower_components/angular/angular.js:323:20)\r\n    at loadModules (http://localhost:3000/bower_components/angular/angular.js:4099:5)\r\n    at http://localhost:3000/bower_components/angular/angular.js:4116:40\r\n    at forEach (http://localhost:3000/bower_components/angular/angular.js:323:20)\r\n    at loadModules (http://localhost:3000/bower_components/angular/angular.js:4099:5)\r\n    at createInjector (http://localhost:3000/bower_components/angular/angular.js:4025:11)\r\n    at doBootstrap (http://localhost:3000/bower_components/angular/angular.js:1452:20)\r\n    at bootstrap (http://localhost:3000/bower_components/angular/angular.js:1473:12)\r\nhttp://errors.angularjs.org/1.3.15/$injector/modulerr?p0=VSPApp&p1=Error%3A…F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A1473%3A12)\r\n```\r\n\r\nthe reason for this was that ObjectPath wasn't registered as an angular module yet, because `ObjectPath.registerModule(angular)` wasn't called anywhere. After I added the following lines to `ObjectPath.js:97` it worked:\r\n```\r\n\t// Angular JS\r\n\telse if (typeof angular === 'object') {\r\n    ObjectPath.registerModule(angular);\r\n\t\twindow.ObjectPath = ObjectPath;\r\n\t}\r\n```"},"comment":{"url":"https://api.github.com/repos/mike-marcacci/objectpath/issues/comments/104707944","html_url":"https://github.com/mike-marcacci/objectpath/issues/4#issuecomment-104707944","issue_url":"https://api.github.com/repos/mike-marcacci/objectpath/issues/4","id":104707944,"user":{"login":"mike-marcacci","id":690517,"avatar_url":"https://avatars.githubusercontent.com/u/690517?v=3","gravatar_id":"","url":"https://api.github.com/users/mike-marcacci","html_url":"https://github.com/mike-marcacci","followers_url":"https://api.github.com/users/mike-marcacci/followers","following_url":"https://api.github.com/users/mike-marcacci/following{/other_user}","gists_url":"https://api.github.com/users/mike-marcacci/gists{/gist_id}","starred_url":"https://api.github.com/users/mike-marcacci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mike-marcacci/subscriptions","organizations_url":"https://api.github.com/users/mike-marcacci/orgs","repos_url":"https://api.github.com/users/mike-marcacci/repos","events_url":"https://api.github.com/users/mike-marcacci/events{/privacy}","received_events_url":"https://api.github.com/users/mike-marcacci/received_events","type":"User","site_admin":false},"created_at":"2015-05-22T16:38:52Z","updated_at":"2015-05-22T16:38:52Z","body":"Hey @mhhf, thanks for the issue here. This used to be done automatically, but had unfortunate consequences when loaded over requireJS or AMD.\r\n\r\nSince then (many months ago) Schema-Form has by default been dependent on `window.ObjectPath` instead of the angular module `ObjectPath`. Can you check the version of Schema-Form that you're using?\r\n\r\nAlso, are you using any third-party custom elements that may be trying to access ObjectPath themselves?"}}