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

Cannot load angular modue when including schemaForm #934

Open
tl-jakecross opened this issue Oct 20, 2017 · 3 comments
Open

Cannot load angular modue when including schemaForm #934

tl-jakecross opened this issue Oct 20, 2017 · 3 comments

Comments

@tl-jakecross
Copy link

My index.html: (I've added a load of extra scripts before hand trying to get around this issue). I have taken the files schema-form and bootstrap-decorator straight from the bower_components folder when it installed them)

  <script src="angular-sanitize.min.js"></script>
  <script src="tv4.js"></script>
  <script src="ObjectPath.js"></script>
  <script type="text/javascript" src="assets/lib/schema-form.min.js"></script>
  <script type="text/javascript" src="assets/lib/bootstrap-decorator.min.js"></script>

My module:

var app = angular.module('MyApp', [
  'ui.grid',
  'ngRoute',
  'angularMoment',
  'schemaForm'
]);

Error in the page:

Error: [$injector:modulerr] Failed to instantiate module EnvironmentManager due to:
[$injector:modulerr] Failed to instantiate module schemaForm due to:
r is undefined

@json-schema-form/angular-schema-form-lead

@Anthropic
Copy link
Member

@jake-cross if you make a plunker I am happy to help you sort it out, it is usually an ordering of loaded files or scripts within them though. Could also be incompatible versions of the library, all of which I can help with through a plunker.

@tl-jakecross
Copy link
Author

Thanks for getting back to me, I'll do that as soon as I can.

@scottux
Copy link
Contributor

scottux commented Aug 12, 2018

Don't use the minified schema-form file and it will tell you the dependency you are missing. A good idea is to use wiredep to load these automagically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants