After canceling an R process, it shows TypeError: e.replace is not a function at Object.parseJsonSafe error

Problem

After canceling an R process by clicking the Cancel button under the spin icon, the following error appears:

TypeError: e.replace is not a function at Object.parseJsonSafe error

Solution

If you are using a version older than v10, upgrading to v10 should resolve the issue.