#How to pass response from map projection to tap error handler
5 messages · Page 1 of 1 (latest)
I followed this specific comment https://stackoverflow.com/questions/40511948/how-to-throw-an-observable-error-manually/40512534#comment100636184_40512534
Check the compilerOptions/lib property in your tsconfig.json. You probably have a version that is less than ES2022, there. This constructor has een introduced in ES2022,so you'd need to have that version.
Thank you so much.
The one in the project was es2016.
I'm trying to remember what these configurations mean. Is it something along the lines of having access to the corresponding features of JavaScript in your code? How about the case of if browsers support those features?
That's the default value in projects created now with the CLI, so it should be supported by the browsers supported by Angular.