I was able to build by using cli-5.4.1.
I would still like to know what happened in version 6, and when that occurred. I wasn't specifying a version preference (silly me), so I don't know when the default went to cli-6.
this error generally occurs when people use plugins from the source="pgb" repository. to get the latest plugins be sure to source them from npm.
if you did not specifically include the file plugin it may have been used as a dependency of another "pgb" plugin and that's what might have caused your error.
ALWAYS lock your version of phonegap!
Thanks. That sort of explains it. I guess I was wondering why it works in cli-5.4.1 and not in 6.0.0 and higher.
I have several plugins that aren't sourced on npm, such as com.phonegap.plugins.pushplugin. Npm has a push plugin, but the API is completely different. I'll have to do quite of bit of coding and testing. When I try to include this plugin (and a couple of others), the build fails.
Should I still be able to reference plugins outside of npm, and if so, are there any rules?
if it works in 5.4.1 and not in 6.0.0 then i guess the plugins are using a breaking change that has been deprecated in later versions.
the pgb plugins will probably stay there, but we dont recommend using them, as they wont work forever and will NEVER be updated.
the pgb plugins will probably stay there, but we dont recommend using them,
Then why (oh, why) keep those deprecated, unmaintained plugins available? Wouldn't you guys please consider switching that repo off, so people won't be tempted to use that stuff, then ask questions here about why "it isn't working"?
1 person found this helpful
Just thinking outlaid aloud (stinkin' auto correct!), but I expect the old plugins will need to stay there for as long as PGB allows users to compile with < 6.x. Not ideal for those who haven't pinned to any cli version, but it does ensure that people who have pinned their dependencies can continue to get a build out of the system, whereas if the plugins were removed, they'd all be out of luck. They should upgrade to the newer plugins and 6.x, of course, but good luck with that.