cordova-browser icon indicating copy to clipboard operation
cordova-browser copied to clipboard

Getting cp: dest is not a directory (too many sources) on copying folders

Open shrijeetDeshmukh opened this issue 1 year ago • 1 comments

Bug Report

Getting below error message when trying to upgrade cordova-browser to 7 version cp: dest is not a directory (too many sources)

Problem

Hello Team, Folder is not getting copied from plugin folder to platform www folder. Below is the error I'm getting, cp: dest is not a directory (too many sources) cp: dest is not a directory (too many sources) cp: dest is not a directory (too many sources) cp: dest is not a directory (too many sources) cp: dest is not a directory (too many sources) cp: dest is not a directory (too many sources)

Below are the node modules which needs to copy to the destination but its not working after the upgrade <platform name="browser"> <js-module name="mfp" src="src/browser/bootstrap.js"> <runs /> </js-module> <asset src="www/worklight" target="plugins/cordova-plugin-mfp/worklight" /> <asset src="src/browser/ibmmfpf.js" target="plugins/cordova-plugin-mfp/worklight/ibmmfpf.js" /> <asset src="typings" target="plugins/cordova-plugin-mfp/worklight/typings" /> <asset src="node_modules/express" target="plugins/cordova-plugin-mfp/worklight/node_modules/express" /> <asset src="node_modules/request" target="plugins/cordova-plugin-mfp/worklight/node_modules/request" /> <asset src="node_modules/jssha" target="plugins/cordova-plugin-mfp/worklight/node_modules/jssha" /> <asset src="node_modules/promiz" target="plugins/cordova-plugin-mfp/worklight/node_modules/promiz" /> <asset src="node_modules/sjcl" target="plugins/cordova-plugin-mfp/worklight/node_modules/sjcl" /> <asset src="src/browser/proxy.js" target="plugins/cordova-plugin-mfp/worklight/proxy.js" /> </platform>

What is expected to happen?

It should copy all the mentioned folders to destination folder

What does actually happen?

Its not copying the folders hence some functionalities are not working in latest browser platform

Information

This issue is probably happening because the cordova-browser 7 now has shelljs version 0.8.5.

Command or Code

Steps to reproduce the issue cordova create helloworld cd helloworld cordova plugin add cordova-plugin-mfp cordova platform add browser@7

Environment, Platform, Device

Installed platforms: browser 7.0.0

Version information

Checklist

  • [x] I searched for existing GitHub issues
  • [x] I updated all Cordova tooling to most recent version
  • [x] I included all the necessary information above

shrijeetDeshmukh avatar Jul 18 '23 11:07 shrijeetDeshmukh