简体   繁体   English

角4:我生成组件并运行构建命令? 应该有一些错误?

[英]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.

相关问题 Angular - 我应该在测试前还是测试后运行生产构建 - Angular - should I run production build before test or after test 将应用程序迁移到Angular 6:但是在运行npm时出错,运行build --prod。 但是命令npm run build --env = prod成功运行 - Migrated application to Angular 6 : But getting errors while running npm run build --prod. But command npm run build --env=prod runs successfully 如果不是绝对必要的,我应该删除 Angular CLI 创建组件时生成的 OnInit 实现吗? - Should I remove the OnInit implementation which is generated when a component is created by the Angular CLI if it isn't strictly necessary? Angular2如果我想将某些组件限制为某些用户,应该使用什么概念。 - Angular2 What concept should I be using if I want to restrict some component to certain users. 从 Angular 4 组件运行 Linux 命令 - Run Linux command from Angular 4 component @babel/types 在 Angular 8.2.14 中的 ng build 命令上构建错误 - @babel/types build errors on ng build command in Angular 8.2.14 使用 npm run build:prerender 构建我的 angular 通用应用程序时出现一些错误 - I am getting some error when building my angular universal app with npm run build:prerender 我应该如何测试这个角度分量? - How should I test this angular component? 我应该直接在组件上使用Angular ngIf吗 - Should I use Angular ngIf directly on component 我应该为这个 Angular 组件编写哪些测试? - What tests should I write for this Angular Component?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM