atob() is incorrectly marked as deprecated.

Posted on January 9, 2023
programmingangularnewserror

atob() is incorrectly marked as deprecated.

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.

Thanks for reading!


Posted on January 9, 2023
Profile Picture

Arun Yadav

Software Architect | Full Stack Web Developer | Cloud/Containers

Subscribe
to our Newsletter

Signup for our weekly newsletter to get the latest news, articles and update in your inbox.

More Related Articles