Something broke 7/18/2024: t.replaceAll() is not a function type error

Was there an update to Anvil on 7/18/2024 PST? I am getting these errors:
: TypeError: t.replaceAll is not a function

I have a webform that I’m calling from Pyside2’s QWebEngineView. It was literally working yesterday and this morning I can’t get it to load. This is consistent across mac and windows machines. When I try the form in a browser like Chrome, it renders fine.

Here’s a sample of errors I’m getting from QT:

Errors from QT console:

Critical:(https://xxxxxx.anvil.app/_/static/runtime/node_modules/jquery-migrate/dist/jquery-migrate.min.js?sha=106fcd8d723eda7d92a2:682 ?) Error instantiating content_panel :  TypeError: t.replaceAll is not a function YAML: [object Object]
 <Internal error>
Critical:(https://xxxxxx..anvil.app/_/static/runtime/node_modules/jquery-migrate/dist/jquery-migrate.min.js?sha=106fcd8d723eda7d92a2:26 ?) Uncaught runtime error: null at null:null, column null TypeError: t.replaceAll is not a function
Critical:(https://mrwolf2.anvil.app/_/static/runtime/node_modules/jquery-migrate/dist/jquery-migrate.min.js?sha=106fcd8d723eda7d92a2:682 ?) Error instantiating navbar_links :  TypeError: t.replaceAll is not a function YAML: [object Object]
 <Internal error>
Critical:(https://xxxxxx..anvil.app/_/static/runtime/node_modules/jquery-migrate/dist/jquery-migrate.min.js?sha=106fcd8d723eda7d92a2:26 ?) Uncaught runtime error: null at null:null, column null TypeError: t.replaceAll is not a function
Critical:(https://xxxxxx..anvil.app/_/static/runtime/node_modules/jquery-migrate/dist/jquery-migrate.min.js?sha=106fcd8d723eda7d92a2:20 ?) TypeError: this.animation.commitStyles is not a function

I x’d out the url, but I can provide it to support when they contact me.

My guess is that some library got updated and is not compatible with the webengine for QWebEngine?

This disussion topic seems related to my issue:

Let me know how I can escalate this! I am willing to upgrade my service to get this fixed if possible.

Thanks!

Thanks for reporting
We’ll get that fixed

In the meantime, if you update your version of PySide to PySide6, it’ll probably fix the issue for you.

@stucork Thank you for the quick response! I’m a fan of your work! Anvil-extras and Tabulator are cornerstones to my project!

I can confirm that PySide6 works but I need to make PySide2 work as well. The QWebDialog is being used inside a couple visual effects applications and PySide6 is only supported in one of them. Eventually, these programs will migrate to PySide6 but it’s a slow process beyond my control.

Thanks again for all your help!

2 Likes

We think this is now fixed.

@stucork My form is working on Pyside2 now! Thank you for the quick response!

There is another error that I’m seeing that doesn’t seem to be affecting my application but it might for others:

Critical:(https://xxxxx.anvil.app/_/static/runtime/node_modules/jquery-migrate/dist/jquery-migrate.min.js?sha=106fcd8d723eda7d92a2:20 ?) TypeError: this.animation.commitStyles is not a function

Anyways, my issue has been resolved for now. Thanks again!

Thanks for the update.
We don’t think that one is an issue. Nothing there has changed recently.
The line that’s causing that error is wrapped in a try/catch and we are logging the error to the console, which is then being reported by Pyside2.
I think we’ll change it to log a warning rather than an error to be less scary.

Thank you so much @stucork. Everything is working great now!