I have a piece of code in wix that needs the String.replaceAll
function but I got this errror:
Property 'replaceAll' does not exist on type 'string'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2021' or later.
Is there a way in wix to change the compiler options?
Hello! When I test this, although the IDE does show the error you mentioned, the code runs as expected. If this is the same as you are experiencing, you may ignore this error.
If your code shows the IDE error and also does not work, you will want to open a ticket with customer care at Contact Wix so they may investigate further.