question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: (e || "").replace is not a function

See original GitHub issue

I just got the following exception while running gittools/actions/gitversion/execute@v0.9.2:

(node:2814) UnhandledPromiseRejectionWarning: TypeError: (e || "").replace is not a function

Any idea what might cause this?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
AndyCWcommented, May 22, 2020

Moving to v0.9.3 fixed this problem for me.

1reaction
asbjornucommented, May 6, 2020

I’ll update and report back if the problem reappears, @arturcic! 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught TypeError: e.replace is not a function #377 - GitHub
The issue is that when I have select items that are objects, this fails with the following error. Uncaught TypeError: e.replace is not...
Read more >
var.replace is not a function - javascript - Stack Overflow
My guess is that the code that's calling your trim function is not actually passing a string ... trim({}); // --> TypeError: str.replace...
Read more >
Why am I getting "TypeError: e.replace is not a function" using ...
Why am I getting "TypeError: e.replace is not a function" using SearchManager with eval in the search? ... new SearchManager({ id: "mysearch1", earliest_time:...
Read more >
TypeError: replace is not a function in JavaScript - Java2Blog
TypeError : .replace is not a function occurs when we call replace() function on object which is not an string. replace() function can...
Read more >
TypeError: e.replace is not a function - Microsoft Q&A
I get <TypeError: e.replace is not a function> error when I try to add a new linked service(blob) in azure data factory.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found