Page 1 of 1

Adding an External Resource

Posted: Wed Apr 18, 2018 9:27 am
by Andy Parker

Hi

I'm adding an external resource (by importing a .zip project from GitHub (szimek/signature_pad) and keep getting an error when starting the app.

I have followed the instructions for adding an external resource (https://docs.appery.io/docs/appbuilde...) and uploaded the module as a zip (this has extracted and shows the files).

I then added the external resource:
../libs/signature_pad-master/docs/js/signature_pad.umd.js
as an angular module, but I get the following error.

Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.4.3/$in...
at angular.min.js:6
at angular.min.js:38
at m (angular.min.js:7)
at g (angular.min.js:37)
at eb (angular.min.js:40)
at d (angular.min.js:19)
at Object.Ac [as bootstrap] (angular.min.js:20)
at bootstrap.js?bust=1524043185:327
at Object.execCb (require.js:1665)
at Module.check (require.js:874)

Am I missing something?
This module is available as UMD (Universal Module Definition) and ES6 module, I am using the UMD.......


Adding an External Resource

Posted: Wed Apr 18, 2018 3:08 pm
by Serhii Kulibaba

Hello Andy,

Appery.io does not support ES6.

Do you use this module in your app, or just imported it?


Adding an External Resource

Posted: Wed Apr 18, 2018 3:55 pm
by Andy Parker

I'm trying to use it, I've just imported it.

Thats a shame....


Adding an External Resource

Posted: Mon Apr 23, 2018 8:27 am
by Serhii Kulibaba

Please use the previous version of this library (https://github.com/szimek/signature_p...) instead of the last one. It has to work fine


Adding an External Resource

Posted: Mon Apr 23, 2018 8:46 am
by Andy Parker

Wow, thank you for this tip. I'll give it a try.


Adding an External Resource

Posted: Mon Apr 30, 2018 2:23 pm
by Andy Parker

Hi Serhii,

many thanks for this.

I've edited the src to remove the need for imports and exports and this works just great now!

very happy, thanks again.

regards

Andy