I installed the latest version of angular-cli and created a completely new project (my new application). This creates an always stylish βWelcome to the appβ with the Angular logo and links to the Tour of Heroes, CLI Documentation and Angular Blog. I can accomplish this and access it locally on my Windows machine using Chrome and Firefox.
If this is strange when I try to access the same locally hosted application through Browserstack. When I hit it with a Mac running Safari 11, everything worked as expected.
However, when I try to access through a Mac device (such as an iPad) that uses Safari 10+, the application does not load and I get an error message: "SyntaxError: Unexpected keyword" const. Const const declarations are not supported in strict mode " . The error message is bound to a location in my version of vendor.bundle.js (in eval).
From my reading, it seems that older versions of Safari do not work with consts in strict mode. But I hope there is a workaround.
How do others deal with this? I'm not an angular-cli expert, so if there is an obvious solution, my apologies for not seeing it.
Any help would be greatly appreciated.
source share