According to this answer we should set the following compilerOptions
and it should work, however no love:
"compilerOptions": {
...
"target": "ES2021",
"lib": ["es2021", "dom", "esnext.string", "es2021.string"], ...
},
This is a Stackblitz demo. Thoughts?