#"This regular expression flag is only available when targeting 'es2018' or later." and I am
16 messages · Page 1 of 1 (latest)
Can't seem to reproduce on the playground:
Preview:ts const example = /foo/s
how are you testing?
I haven’t created a min reproduction of the issue. I just installed 5.8 in a project, got this error despite the target being set correctly, then switched to 5.7 and the error went away. If no one can reproduce it it’s okay with me to close this.
where are you getting the error
ide, command line?
if the latter, what command are you running?
npx tsc from the command line
I’ll see if I can make a min reproduction today. Any tips on how best to do that? typescript playground?
perhaps try locally first, might be something specific to do with your environment
then try to replicate that on the playground?
(duplicate the project and reduce from there, if you have a significantly sized project around it)
I'm not able to reproduce it now