I moved my Angular2 app from NodeJs to MVC5. While using NodeJs everything was good but with MVC5 Angular cannot get relative html and css paths. I cannot get html using './app.component.html', I should write './assets/app/app.component.html'(root path). If I write inline template it is working fine.
- You can see my tsconfig below.
- I use webpack.
- I do not use moduleId, it was working on NodeJs following this way.
Any help. Thanks
{
"compileOnSave": true,
"compilerOptions": {
"module": "commonjs",
"target": "es5",
"moduleResolution": "node",
"noImplicitAny": false,
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"types": [ "node", "core-js", "lodash" ] },
"exclude": [
"node_modules",
"public/js" ] }
via baris usanmaz
No comments:
Post a Comment