Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

Adding an External Resource

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.......

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Adding an External Resource

Hello Andy,

Appery.io does not support ES6.

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

Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

Adding an External Resource

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

Thats a shame....

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Adding an External Resource

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

Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

Adding an External Resource

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

Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

Adding an External Resource

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

Return to “Issues”