FortuneN / cordova-plugin-zeep

Zip compression/decompression for the cordova/phonegap platform
Apache License 2.0
28 stars 37 forks source link

Failed to instantiate module ngCordova.plugins.zeep #11

Open tony-mo opened 6 years ago

tony-mo commented 6 years ago

hey,guy。i put ngCordova.plugins.zeep in App.js file like that: angular.module('starter', ['ionic', 'starter.controllers', 'starter.services','ngCordova','ngCordova.plugins.zeep']). That will appear error.

ncaught Error: [$injector:modulerr] Failed to instantiate module starter due to: Error: [$injector:modulerr] Failed to instantiate module ngCordova.plugins.zeep due to: Error: [$injector:nomod] Module 'ngCordova.plugins.zeep' is not available!

tony-mo commented 6 years ago

i'm in brower mode

FortuneN commented 6 years ago

Please send the smallest possible project that reproduces the issue.

http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail Virus-free. www.avg.com http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Fri, Jan 5, 2018 at 9:27 AM, tony.mo notifications@github.com wrote:

i'm in brower mode

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/FortuneN/cordova-plugin-zeep/issues/11#issuecomment-355489839, or mute the thread https://github.com/notifications/unsubscribe-auth/AFYATzAENYeGxPlwZSj3c1cd6CWBARNXks5tHc7QgaJpZM4RUHFb .

tony-mo commented 6 years ago

code in app.js file when i run ionic serve --no-livereload in CLI, brower will show error

Uncaught Error: [$injector:modulerr] Failed to instantiate module starter due to: Error: [$injector:modulerr] Failed to instantiate module ngCordova.plugins.zeep due to: Error: [$injector:nomod] Module 'ngCordova.plugins.zeep' 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. http://errors.angularjs.org/1.5.3/$injector/nomod?p0=ngCordova.plugins.zeep

tony-mo commented 6 years ago

app.js.zip

tony-mo commented 6 years ago

hello,guy,could u know how to solve this issue,thank you so much

willyguevara commented 3 years ago

what works for me in a ionic 5 framework environment was to:

1) Declare a const as : const unzeep = (<any>window).Zeep.unzip; or const zeep = (<any>window).Zeep.zip; 2) Use that function variable:

unzeep({
      from : `somePath/toThe/zipfile.zip`,
      to   : `somePath/toThe/Directory`,
      password : 'thePassword',
    }, function() {
        console.log('unzip success!');
    }, function(e) {
        console.log('unzip error: ', e);
    });