Posted on January 9, 2023
atob() is incorrectly marked as deprecated.
The problem is that the two "overloads" are identical in signature, and the deprecated one from a node is being picked because it was loaded last.
The solution that works for me is updating it as follows.
this.activePostId = +window.atob(params.get('pid'));
You need to use the window.atob(...) or window.btoa(...) functions.