[英]angular 4: I generated component and run the build command? there is should be some errors?
ERROR in /home/salim/Development/www/kpittu/src/$$_gendir/app/dashboard/dashboard.component.ngfactory.ts (32,32): Property 'admin' does not exist on type 'DashboardComponent'. /home/salim/Development/www/kpittu/src/$$_gendir/app/dashboard/dashboard.component.ngfactory.ts(32,32)中的错误:类型“ DashboardComponent”上不存在属性“ admin”。
ERROR in /home/salim/Development/www/kpittu/src/$$_gendir/app/dashboard/dashboard.component.ngfactory.ts (32,44): Property 'editor' does not exist on type 'DashboardComponent'. /home/salim/Development/www/kpittu/src/$$_gendir/app/dashboard/dashboard.component.ngfactory.ts(32,44)中的错误:类型“ DashboardComponent”上不存在属性“编辑器”。
ERROR in ./src/main.ts Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in '/home/salim/Development/www/kpittu/src' @ ./src/main.ts 3:0-74 @ multi ./src/main.ts ./src/main.ts中的错误找不到模块:错误:无法解析'/ home / salim / Development / www / kpittu / src'中的'./$$_gendir/app/app.module.ngfactory'@ ./src/main.ts 3:0-74 @多./src/main.ts
我希望您需要在Component和HTML文件中将变量“ admin-editor”重命名为“ admin_editor”。
<app-tinymce [elementId]="admin_editor" (onEditorKeyup)="keyupHandlerFunction($event)"> </app-tinymce>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.