意外的值' jqxGridComponent'模块宣布' AppModule'

时间:2017-12-18 21:50:41

标签: angular

屏幕只是说"正在加载..."并且此错误显示在控制台中。

  

compiler.es5.js:16156未捕获错误:意外值   ' jqxGridComponent'由模块' AppModule'声明。请添加一个   @ Pipe / @ Directive / @ Component注释。       在ZoneAwareError(eval at webpackJsonp ... / .. / .. / .. / script-loader / addScript.js.module.exports   (addScript.js:9),:2571:38)       在syntaxError(compiler.es5.js:1694)       在compiler.es5.js:15590       在Array.forEach()       at CompileMetadataResolver.webpackJsonp ... / .. / .. / compiler/@angular/compiler.es5.js.CompileMetadataResolver.getNgModuleMetadata   (compiler.es5.js:15572)       在JitCompiler.webpackJsonp ... / .. / .. / compiler/@angular/compiler.es5.js.JitCompiler._loadModules   (compiler.es5.js:26958)       在JitCompiler.webpackJsonp ... / .. / ../ compiler /@angular/compiler.es5.js.JitCompiler。 compileModuleAndComponents   (compiler.es5.js:26931)       在JitCompiler.webpackJsonp ... / .. / ../ compiler /@angular/compiler.es5.js.JitCompiler.compileModuleAsync   (compiler.es5.js:26860)       在PlatformRef .webpackJsonp ... / .. / .. / core/@angular/core.es5.js.PlatformRef _。 bootstrapModuleWithZone   (core.es5.js:4535)       在PlatformRef .webpackJsonp ... / .. / .. / core/@angular/core.es5.js.PlatformRef_.bootstrapModule   (core.es5.js:4521)       at Object ... / .. / .. / .. / .. / src / main.ts(main.ts:10)       在 webpack_require (bootstrap e79c7d6b3fb8625d1438:54)       在Object.6(main.bundle.js:6516)       在 webpack_require (bootstrap e79c7d6b3fb8625d1438:54)       在webpackJsonpCallback(bootstrap e79c7d6b3fb8625d1438:25)

以下是使用它们的方式

App.module.ts

import { jqxGridComponent } from 'ng2jqxcomponents/angular_jqxgrid';

@NgModule({
 imports: [],


 declarations: [jqxGridComponent],
 bootstrap: [
        AppComponent
    ]
})
export class AppModule { }

examplepage.component.ts文件

/** jqWidgets imports */
import 'wrapperjqxcore';
import 'wrapperjqxgridui';
import 'wrapperjqxgrid';
/** jqxGrid Angular Plugin */
import { jqxGridComponent } from 'ng2jqxcomponents/angular_jqxgrid';
@Component({
 })
...

Wrapper是团队在我的工作场所开发的一个包装器,我们只是将其包含在package.json中,如下所示,继续进行开发。

package.json -

"dependencies": {
    "@fgo-/wrapperclient3": "^3.1.3",

0 个答案:

没有答案
相关问题