Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

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

Open
MrRobWad opened this issue Jan 17, 2018 · 1 comment
Open

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

MrRobWad opened this issue Jan 17, 2018 · 1 comment

Comments

@MrRobWad
Copy link

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.

  • osx 10.13.2
  • node 8.7.0
  • npm 5.5.1
  • cordova 7.0.1
  • taco-team-build 0.2.4
  • cordova-ios 4.5.3
  • cordova-android 6.4.0

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
Copy link
Author

Looks similar to microsoft/vsts-cordova-tasks#79

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

No branches or pull requests

1 participant