-
Notifications
You must be signed in to change notification settings - Fork 63
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
TypeError: (e || "").replace is not a function #76
Comments
I saw that error on the GitTools/actions itself when building a [dependabot] PR, but I re-run the build and it was fine |
Yes, re-running the build fixes the problem, but I've seen it 3 times now. Any ideas what might cause it? |
honestly no, but we need to have a look |
Is it possible to get some sort of source maps available so we get sensible line numbers and stack traces? |
It should be possible, I'll check it how |
Seeing this all the time in 5.1.x. In 5.2.x, I get a bit more clarity (may be unrelated). Don't think I'm doing any particularly complex.
|
Upgrading to gitversion/[email protected] resolved my particular issue so probably not related after all. |
i also began experiencing this issue quite recently. it has been happening consistently. what's weird is it was working fine before and started all of a sudden. i'm currently unable to run my builds.
any idea what could be wrong? i would be happy to provide more details. |
I'm seeing this issue also. My config is almost exactly as in the docs: - name: Install GitVersion
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: '5.2.x'
- name: Use gitversion
id: gitversion # step id used as reference for output values
uses: gittools/actions/gitversion/[email protected]
with:
useConfigFile: true Error details: |
the issue randomly appears in my builds too |
@asbjornu in version v0.9.3 I did not compress the files, in case you notice the same issue, can you put here the output? |
I'll update and report back if the problem reappears, @arturcic! 👍 |
Moving to v0.9.3 fixed this problem for me. |
Thanks for the update, closing |
Fixing issues. 1) "Value '' cannot be parsed as output type, please use 'json', 'file' or 'buildserver'" 2) "(node:2664) UnhandledPromiseRejectionWarning: TypeError: (e || "").replace is not a function" According to the link GitTools/actions#76
Came across this as well, please update the documentation to point to v0.9.3 (or higher, 0.9.4 is out already too). Right now it still says 0.9.2 in all examples and docs. Maybe provide a tag that always points to latest version, and use that? |
I just got the following exception while running
gittools/actions/gitversion/[email protected]
:Any idea what might cause this?
The text was updated successfully, but these errors were encountered: