5

I develop a web site using Angular2 + TypeScript. When I use Google Chrome, my application is properly working. But, when I use Safari, it displays the following message and my application doesn't work.

const keyword are not supported in strict mode

My tsconfig.json is:

{
  "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.

2
  • Hi did you got the solution for the same?
    – nilesh
    Commented Dec 10, 2017 at 16:50
  • 1
    Maybe take a look in this answer.
    – cooldave
    Commented Sep 12, 2018 at 12:34

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.