更新时间:2023-10-03 14:15:46
在 Azure CI 构建期间,我也遇到了同样的事情:
This same thing is happening to me during an Azure CI build:
无法解析相对于 D:/a/7/s/src/app/app.module.ts 的 ngx-pagination.
找不到模块 'ngx-pagination'
Could not resolve ngx-pagination relative to D:/a/7/s/src/app/app.module.ts.
Cannot find module 'ngx-pagination'
app.module.ts:
app.module.ts:
// import { NgxPaginationModule } from 'ngx-pagination'; // <-- import the module
imports: [
BrowserModule,
FormsModule,
ReactiveFormsModule,
HttpClientModule,
AppRoutingModule,
NgbModule.forRoot(),
// NgxPaginationModule
],
在本地运行良好.