apache / cordova-ios

Apache Cordova iOS
https://cordova.apache.org/
Apache License 2.0
2.16k stars 989 forks source link

Cannot find module '../util/plist-helpers' #986

Closed lukas2 closed 4 years ago

lukas2 commented 4 years ago

Bug Report

Problem

After bumping cordova-ios from 6.1.0 to 6.1.1 installation of plugins fails:

Failed to install 'cordova-plugin-firebasex': Error: Cannot find module '../util/plist-helpers'

What is expected to happen?

Installation succeeds.

What does actually happen?

Error Cannot find module '../util/plist-helpers'

Information

This seems to have something to do with cordova-common being bumped from 4.0.1 to 4.0.2 but I can't find the issue.

(If it helps, our path does include Whitespace, my gut tells me it might be related to https://github.com/apache/cordova-ios/issues/984 but who knows..)

Command or Code

Environment, Platform, Device

mac OS Catalina, 10.15.6

Version information

Cordova CLI: 9.0.0 also tried 10.0.0

Checklist

erisu commented 4 years ago

You might try to do a clean setup. For example, delete from the project directory:

Then run npm i to re-checkout everything that is currently in the package.json... Then try to add the plugin.

lukas2 commented 4 years ago

Thank you @erisu. I am closing this because there was a problem with our build script. It specified a version with cordova platform add ..