Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks done
shrijeetDeshmukh opened this issue Jul 18, 2023 · 1 comment
Open
3 tasks done

Comments

@shrijeetDeshmukh
Copy link

shrijeetDeshmukh commented Jul 18, 2023

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

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above
@shrijeetDeshmukh
Copy link
Author

Any update on this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant