Reputation: 339
I have been working through the hero tutorial from the angular.io site using Visual Studio 2017. I've tried adding a .ts file but no matching .map or .js files are created.
My tsconfig.json looks like this
{
"compileOnSave": true,
"buildOnSave": true,
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": [ "es2015", "dom" ],
"noImplicitAny": true,
"suppressImplicitAnyIndexErrors": true
},
"include": [
"./*"
],
"exclude": [
"node_modules",
"wwwroot"
]
}
If I remove this file to use the project's properties, rather than the config file, then the project won't compile, nor do the files build.
How do I get the .map and .js files to be created on build or on the creation of a new .ts file?
Upvotes: 0
Views: 770
Reputation: 499
I assume you are using Angular CLI since you are doing the hero tutorial.
Is webpack running smoothly? Can you please post the folder structure you have an the output of ng serve
?
We spoke in chat and discussed some architecture and setup.
Upvotes: 1