我正在使用NgXCreditCardsModule在我的angular6应用程序中进行信用卡验证,并且可以通过ng serve使用它。但是,当我尝试使用maven
构建war文件时,出现以下错误:
ERROR in : Unexpected value 'NgXCreditCardsModule in C:/Users/infouser/git/branches/Orion-App/orion-ui/node_modules/ngx-credit-cards/index.js' imported by the module 'PaypalPaymentModule in C:/Users/infouser/git/branches/Orion-App/orion-ui/src/app/modules/paypal-payment/paypal-payment.module.ts'. Please add a @NgModule annotation.
我正在附加我的角度模块的代码
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { PaymentFormComponent } from './components/payment-form/payment-form.component';
import { Routes, RouterModule } from '@angular/router';
import { HomeGuardService } from '../../shared/guards/home.guard';
import { MaterialModule } from '../material/material.module';
import { FlexLayoutModule } from '@angular/flex-layout';
import { ReactiveFormsModule } from '@angular/forms';
import { NgXCreditCardsModule } from 'ngx-credit-cards';
const routes: Routes = [{ path: '', component: PaymentFormComponent }];
@NgModule({
imports: [CommonModule, RouterModule.forChild(routes), MaterialModule, FlexLayoutModule, ReactiveFormsModule, NgXCreditCardsModule],
declarations: [PaymentFormComponent]
})
export class PaypalPaymentModule {}
有人可以告诉我如何解决构建问题