Uncaught TypeError: Cannot read property 'replace' of undefined

  • 1
  • Problem
  • Updated 3 years ago
Hey guys - thanks for the patch yesterday. I think it'll handle several of the issues. One new issue that came up yesterday occurs when I try to load my page - it gets stuck with a message saying 'loading.' It gives the following error message:

Uncaught TypeError: Cannot read property 'replace' of undefined

Any tips on what to do?

It's literally shutting down multiple pages.
Photo of Griffin Brown

Griffin Brown

  • 2,766 Points 2k badge 2x thumb
  • a little frustrated

Posted 3 years ago

  • 1
Photo of Griffin Brown

Griffin Brown

  • 2,766 Points 2k badge 2x thumb
By the way - this error occurs on pages without any JavaScript.
Photo of Griffin Brown

Griffin Brown

  • 2,766 Points 2k badge 2x thumb
It has to do with the new solution for overriding picklist values...
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Griffin,

Can you post the call stack for the error? That's a good first step to help the Skuid team debug.
Photo of J.

J., Official Rep

  • 7,470 Points 5k badge 2x thumb
Griffin,

Would you post Page XML (replace shows up multiple places in our codebase)? If it's a a large page, maybe try to distill it down to just the model with the overridden picklist value and see if the issue is still occurring?