xiaotiandada/blog

[NodeJS] TypeError: string.replaceAll is not a function

Opened this issue · 0 comments

String.prototype.replaceAll()

错误环境

  1. Github Actions 14x 测试报错
  2. vercel 14x 环境运行报错

解决方案

  1. 升级 v15+
  2. 替换为 replace