microsoft / cordova-plugin-vs-taco-support

The primary intent of this plugin is to resolve issues commonly associated with Cordova CLI-compliant apps checked into source control and adds features (res/native) to help developers avoid having to check in the "platforms" folder as this can cause problems particularly if different members of a developer team are on a combination of OSX, Windows, or Linux.
MIT License
8 stars 12 forks source link

Error: "file" argument must be a non-empty string #3

Open MrRobWad opened 6 years ago

MrRobWad commented 6 years ago

This just starting popping up last week for me. I have tried all sorts of node, npm, and cordova combinations and done a clean wipe of the environment with each iteration. I have settled back on my last known good configuration.

I am not using Visual Studio, rather VS Code. I am leveraging the taco team build in my gulp tasks and the cordova-plugin-vs-taco-support gets installed along with that plugin.

The steps required to trigger the error are generally:

  1. Setup project (npm install, cordova prepare, etc)
  2. Run a build that leverages taco-team-build configure() (set to cordova 7.0.1) and buildProject()
  3. Successful result
  4. Run same build again, but this time cordova-plugin-vs-taco-support is present from being auto-installed on the last run
  5. Build fails with the error below
$ cordova prepare
Executing script found in plugin cordova-plugin-vs-taco-support for hook "before_prepare": plugins/cordova-plugin-vs-taco-support/hooks/hook-execute-bit-fix.js
Resolving module name for q => q
Error: "file" argument must be a non-empty string

If I $ cordova plugin rm cordova-plugin-vs-taco-support before attempting another cordova build I can get a successful build, but the scenario repeats and this error pops back up on any subsequent builds.

MrRobWad commented 6 years ago

Looks similar to https://github.com/Microsoft/vsts-cordova-tasks/issues/79