I've developed an Angular 4 application using MVC and Visual Studio 2015.
Everything runs smoothly when I access the application on Chrome, but I encounter the following exception on IE 11:
XHR error: (404 Not Found) loading http://localhost/src/main.js
Instantiating http://localhost/src/main.js
Loading src/main.js
Here is my tsconfing.json configuration: -
{
"compileOnSave": true,
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": [ "es2015", "dom" ],
"noImplicitAny": false,
"suppressImplicitAnyIndexErrors": true,
"noStrictGenericChecks": true,
"skipLibCheck": true
},
"exclude": [
"node_modules/*"
]
}
My folder structure looks like this:
src
->app folder
main.ts
system.config.js
tsconfig.js
If anyone has encountered a similar issue, please share your insights. Thank you!