在angular-seed中安装了ngx-bootstrap
之后,我已经导入了app.modules.ts并在project.config.ts中添加了其他包
然后使用npm启动应用程序,启动它会返回意外令牌 app.modules.ts project.config.ts
import { AlertModule } from "ngx-bootstrap";
@NgModule({
imports: [
AlertModule.forRoot()
]})
import { SeedConfig } from './seed.config';
import { ExtendPackages } from './seed.config.interfaces';
export class ProjectConfig extends SeedConfig {
PROJECT_TASKS_DIR = join(process.cwd(), this.TOOLS_DIR, 'tasks', 'project');
constructor() {
super();
.....
const additionalPackages: ExtendPackages[] = [
// required for dev build
{
name: 'ngx-bootstrap',
path: 'node_modules/ngx-bootstrap',
packageMeta: {
main: 'bundles/ngx-bootstrap.umd.min.js',
defaultExtension: 'js'
}
}
];
this.addPackagesBundles(additionalPackages);
}
}