Redningsselskapet / nestjs-plugins

Plugins for NestJS framework
ISC License
27 stars 22 forks source link

Property 'replaceAll' does not exist on type 'string'. #31

Closed kenguru33 closed 2 years ago

kenguru33 commented 2 years ago

Got this error after merging https://github.com/Redningsselskapet/nestjs-plugins/pull/29

kenguru33 commented 2 years ago

I guess this has to do with es2017. Do not think replaceAll is available in es2017.

Setting the target to es2021 might fix it.

kenguru33 commented 2 years ago

Setting target in tsconfig.json to es2021 fixed it