breautek commented on issue #113: URL: https://github.com/apache/cordova-fetch/issues/113#issuecomment-1533868218
I still cannot reproduce the problem with an app that contains the following config: ```xml <?xml version='1.0' encoding='utf-8'?> <widget id="io.cordova.hellocordova" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> <name>HelloCordova</name> <description>Sample Apache Cordova App</description> <author email="d...@cordova.apache.org" href="https://cordova.apache.org"> Apache Cordova Team </author> <content src="index.html" /> <allow-intent href="http://*/*" /> <allow-intent href="https://*/*" /> <plugin name="cordova-plugin-vibration" spec="https://github.com/apache/cordova-plugin-vibration.git" /> </widget> ``` I've attempted this with both the android & ios platform on linux, as well as the ios platform on Mac OS. I created an app. Updated `config.xml` to include a `plugin` entry, then I `cordova platform add ios` which works as expected. ``` Using cordova-fetch for cordova-ios@^6.2.0 Adding ios project... Creating Cordova project for the iOS platform: Path: platforms/ios Package: io.cordova.hellocordova Name: HelloCordova iOS project created with cordova-ios@6.3.0 Plugin 'cordova-plugin-vibration' found in config.xml... Migrating it to package.json Discovered plugin "cordova-plugin-vibration". Adding it to the project Installing "cordova-plugin-vibration" for ios Adding cordova-plugin-vibration to package.json ``` I am using NodeJS 18.15.0 with NPM 9.5.0. I even tried to create a faulty setup by deleting/messing with files inside `plugins/` that could trip up installing, but nothing reproduced the same error as you are receiving. Here are some things you could try doing: 1. Delete the following files/folders: - `<cordova-project>/plugins` folder - `<cordova-project>/node_modules` folder - `<cordova-project>/package-lock.json` file - `<cordova-project>/platforms` folder (If you have modified contents in here, they **will** be lost!) 2. Run `npm install` 3. Run `cordova platform add ios@6` This should clear out all the "caches" inside a project and reinstall from scratch. If that doesn't work you can make sure that all of cordova dependencies have their latest updates applies by reinstalling cordova: `npm install -g cordova@11` If all that fails, are you able to provide a sample reproduction app? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org