Angular 2 Nested Component -


i getting following error when developing angularjs 2 application .

step 1: have created new component

step 2: have added component app.module.ts

step 3: added component existing markup .

now getting following error

enter image description here

not able find out reason error .

here code repository

your problem located in static js file:

https://github.com/vmurali100/angular2_error/blob/master/dist/app.module.js#l20

it not changed after running npm start

add tsconfig.json project contents like:

{   "compileroptions": {     "target": "es5",     "module": "commonjs",     "moduleresolution": "node",     "sourcemap": true,     "lib": [ "es2015", "dom" ],     "outdir": "dist", // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<  required     "emitdecoratormetadata": true,     "experimentaldecorators": true,     "removecomments": false,     "noimplicitany": false   },   "exclude": [     "node_modules"   ] } 

and should able update static js files. i don't understand why they in github repo.


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -