apache / cordova-ios

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

Cannot find module './lib/compilers' #1275

Closed bcolflesh closed 1 year ago

bcolflesh commented 1 year ago

Bug Report

Problem

cordova platform add ios - fails with error: Cannot find module './lib/compilers'

What is expected to happen?

What does actually happen?

Information

cordova platform add ios Using cordova-fetch for cordova-ios@^6.2.0 Adding ios project... Creating Cordova project for the iOS platform: Path: platforms/ios Package: com.my.appname Name: My App Name iOS project created with cordova-ios@6.2.0 Cannot find module './lib/compilers' Require stack:

Command or Code

Environment, Platform, Device

Mac mini M1, 2020 OS Ventura 13.1

Version information

Xcode 14.2

Checklist

bcolflesh commented 1 year ago

I deleted and reinstalled Node/NPM, Homebrew, Cocoapods, etc (which was very exciting on an M1 based Mac, even though it all worked before) and deleted/reinstalled Cordova and chipped away at the errors and plugin issues until it worked - thanks.