vstirbu / PromisesPlugin

ES6-Promises polyfill for Cordova/PhoneGap
MIT License
28 stars 19 forks source link

Error: Module es6-promise-plugin.Promise does not exist issue #9

Open natalinacinovicmrf opened 6 years ago

natalinacinovicmrf commented 6 years ago

I made an update to the SocialSharing-PhoneGap-Plugin and it now has a new dependency on this plugin (es6-promise-plugin).

The issue I am experiencing is that when I try to load the app I receive an error:

Error: Module es6-promise-plugin.Promise does not exist. in this function of the native file

function addEntry (strategy, moduleName, symbolPath, opt_deprecationMessage) {
    if (!(moduleName in moduleMap)) {
        throw new Error('Module ' + moduleName + ' does not exist.');
    }
    symbolList.push(strategy, moduleName, symbolPath);
    if (opt_deprecationMessage) {
        deprecationMap[symbolPath] = opt_deprecationMessage;
    }
}

Do you know if I need to do anything else, note the plugin somewhere else? Thanks!

vstirbu commented 6 years ago

have you updated it by uninstalling and installing your plugin again?

natalinacinovicmrf commented 6 years ago

Yes, before I had an older version of that plugin (like from 2 years ago) which of course didn't have that dependency. So now it was added for the first time.

vstirbu commented 6 years ago

This plugin is pretty simple as it just patches the global object (window) with the Promise if not already available. It is used elsewhere and installed by pretty many users.

I've noticed that you opened an issue with SocialSharing-PhoneGap-Plugin. You might try to create a new project and try to replicate the issue there. Make sure the problem is not caused by your environment.