My node version is v9.3.0 and the npm version is 5.5.1. I am trying to create and run a sample project using:
ng new test;
ng serve -o;
The the angular cli compiles the program successfully but my browser page is blank and the console log results in:
Uncaught SyntaxError: Use of const in strict mode.
Firstly, how can i avod this error ? How does the strict mode get enabled in this case ?
EDIT:
{
  "compileOnSave": false,
  "compilerOptions": {
    "outDir": "./dist/out-tsc",
    "sourceMap": true,
    "declaration": false,
    "moduleResolution": "node",
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "target": "es5",
    "typeRoots": [
      "node_modules/@types"
    ],
    "lib": [
      "es2017",
      "dom"
    ]
  }
}
 
    