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.

Uncaught TypeError: e.replace is not a function

See original GitHub issue

There is an issue with the latest 3.0.4 branch that was caused by this commit.

https://github.com/jshjohnson/Choices/commit/394bde313d0f8a50b4c2b9d64d35b76ded68a515

The issue is that when I have select items that are objects, this fails with the following error.

Uncaught TypeError: e.replace is not a function
    at t.stripHTML (formio.full.js:16252)
    at Object.addItemText (formio.full.js:16250)
    at e.value (formio.full.js:16250)
    at e.value (formio.full.js:16250)
    at e.value (formio.full.js:16250)

It seems pretty clear that this was written for the select options that are strings, but did not take into account the select options that are objects where replace is not a function.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
stale[bot]commented, Oct 27, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

2reactions
TylerVigariocommented, Oct 31, 2018

Hopefully, this issue can be resolved soon…

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 to it. To fix this, you...
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 | bobbyhadz
The "replace is not a function" error occurs when we call the replace() method on a value that is not of type string...
Read more >
e.replace is not a function - WordPress.org
[This thread is closed.] Dear Team, Since long there is some issue with Site Kit, Before I was getting blank screen on my...
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