Safari, TypeScript, Angular2: const keyword not supported in strict mode

I am developing a website using Angular2 + TypeScript. When I use Google Chrome, my application is working correctly. But when I use Safari, it displays the following message and my application is not working.

const keyword are not supported in strict mode 

My tsconfig.json:

 { "compilerOptions": { "outDir": "public/js", "module": "system", "target": "es5", "noImplicitAny": false, "removeComments": false, "sourceMap": false, "moduleResolution": "node", "experimentalDecorators": true, "emitDecoratorMetadata": true }, "exclude": [ "node_modules" ], "files": [ "./src/ts/main.ts" ] } 

There is full source code in my github repository .

+5
source share

Source: https://habr.com/ru/post/1247973/


All Articles