MacKentoch / easyFormGenerator

create amazing forms without coding : form editor based on angular formly
http://mackentoch.github.io/easyFormGenerator/
MIT License
254 stars 116 forks source link

Inject error while using 'eda.easyformGen.stepway' #50

Closed darshik closed 7 years ago

darshik commented 7 years ago

getting inject error when tyring to inject 'eda.easyformGen.stepway' into my webapp. any other way to inject? I have used angular smartadmin to build my webapp. I have registered the dependencies in the vendor and have it declared in apps.js too. It doesn't recognize the HTML tags that are to be used for using easy form generator.

MacKentoch commented 7 years ago

Hi @darshik

Sorry you are in trouble.

Let me sum up to be sure I'm not wrong in my understandings:

  1. Do you have more information on the issue (you may already know you can follow successive error links until angular website shows the origin of the issue)?

  2. I don't know this template sources, but could you try to use vendors from easyFormGenerator dist directory to be sure it not not due to vendors versions

I'm sorry I have to ask you more information. But as I don't know this template sources it is nearly impossible to guess what exactly happens.

darshik commented 7 years ago

Hi @MacKentoch

I am glad to see the bunch of changes you have pushed. Great work there.

Coming to my error, thanks for your suggestion to point to vendor in easy-form-generator. I changed reference of my angular to point it to the one provided in easy-form-generator and it resolved the inject error. However, I am still getting a bunch of other errors which stops my webapp to run. Trying a few other things and hope it resolves.

darshik commented 7 years ago
screen shot 2017-01-05 at 9 50 58 am
darshik commented 7 years ago

These are the errors I am getting after pointing to the angular provided in easy-form-generator's vendor

MacKentoch commented 7 years ago

At 1st sight, it looks like some kind conflict between dependencies.

It seems like a provider (because I can read $get) does not like that...

Difficult to tell more from here.

But I can blindly suggest/hint:

Really difficult for me to give more tips. I don't know your template toolchain and dependencies already used (maybe some dislike angular formly?).

darshik commented 7 years ago

Okay, so I figured out the problem. Smartadmin supports only upto angular version 1.4.8. Can we work a way out to make easy form generator work with angular 1.4.x? Even if it is older version of easy-form-generator, it should be fine.

MacKentoch commented 7 years ago

I'm sorry but current easyFormGenerator versions uses component that were introduced in angularJS 1.5.

The only way is to use older versions of easyFormGenerator v1.2.0 (or v1.1.0 if it does not work). The main drawback is you loose latest updates....

Maybe Smartadmin can be upgraded? AngularJS 1.5 is far better than previous and move toward Angular2 philosophy (to help to migrate later).

MacKentoch commented 7 years ago

Finally it is not an easyFormGenerator issue.

I close this issue.

Feel free to give a feedback when you succeed in solving your issue.