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

Failed to instantiate module ngCordova.plugins.zeep #11

Open
tony-mo opened this issue Jan 5, 2018 · 6 comments
Open

Failed to instantiate module ngCordova.plugins.zeep #11

tony-mo opened this issue Jan 5, 2018 · 6 comments

Comments

@tony-mo
Copy link

tony-mo commented Jan 5, 2018

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
Copy link
Author

tony-mo commented Jan 5, 2018

i'm in brower mode

@FortuneN
Copy link
Owner

FortuneN commented Jan 5, 2018 via email

@tony-mo
Copy link
Author

tony-mo commented Jan 5, 2018

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
Copy link
Author

tony-mo commented Jan 5, 2018

app.js.zip

@tony-mo
Copy link
Author

tony-mo commented Jan 8, 2018

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

@willyguevara
Copy link

willyguevara commented Apr 20, 2021

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);
    });

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