在创建了一个新组件之后,我在几乎所有的测试中都收到了这个错误: SampleComponent > should create
Failed: Component TuzGraphComponent is not part of any NgModule or the module has not been imported into your module.
Error: Component TuzGraphComponent is not part of any NgModule or the module has not been imported into your modul
我试图在模块中添加lazyload,方法是显示错误。
Error: [$injector:nomod] Module 'lazyLoad' is not available!
You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies
as the second argument.
我的代码是"angular.module('nouveau', ['laz
当我从primeng加载TableModule到我的组件模块文件并尝试运行'npm run packagr‘时,我遇到了以下错误: Maximum call stack size exceeded 我找到了这个解决方案,将我的primeng版本primeng12更改为primeng11.4.5。所以我这样做了,但现在我得到了以下错误: Angular structure loaded both synchronously and asynchronously 这是我的组件模块文件: import { NgModule } from '@angular/core';
i
我正在尝试将一个自定义共享组件库导入到一个从角4升级到角5的角应用程序中。
然而,我有一个我无法解决的问题。
错误如下:
compiler.js:485 Uncaught Error: Can't resolve all parameters for LibSharedComponentsModule: ([object Object], ?, ?).
at syntaxError (compiler.js:485)
at CompileMetadataResolver._getDependenciesMetadata (compiler.js:15692)
a
我的app.component.ts代码
import { Http, Response } from '@angular/http';
//import the do function to be used with the http library.
import "rxjs/add/operator/do";
import {FileUploadModule} from 'primeng/primeng';
//import the map function to be used with the http library
import &
我需要在中使用按钮并使用鼠标右键打开 by PrimeNG。我在中找到了用于打开菜单的“切换”和“显示”方法,但它不是打开的。当我调用该方法时,我为菜单设置了新的位置,但是属性“display”仍然有一个“none”,但有了一个新的位置。为了从typescript中的模板中获取组件'contextMenu‘,我使用了ViewChild by Angular。