My Angular 6/Visual studio, .net framework 4.6.2 application shows fine in Chrome but Not showing in IE 11. I did google the issue and as per [IE 11 compatibility errors using Angular 5 uncommented and did npm installs as recommended.
also as per: [Angular 2 / 4 / 5 not working in IE11 added
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<script src="https://npmcdn.com/angular2/es6/dev/src/testing/shims_for_IE.js"></script>
in the index.html under src and index.cshtml under Home.
When I do 'Inspect element' in IE, I get in console:
SCRIPT1010: Expected identifier
File: vendor.js, Line: 174472, Column: 9
vendor.js from lines 174466 - 174474 gives:
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
// License for the specific language governing permissions and limitations
// under the License.
Object.defineProperty(exports, "__esModule", { value: true });
174472 - >function* Forward(target) {
yield* target;
}
Please guide what to do?
P.S. This is my tsconfig.json:
{
"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"
]
}
}