0

installed ngx-bootstrap in angular-seed after that i have imported in app.modules.ts and added additional package in project.config.ts then started app using npm start it return unexpected token < issue

app.modules.ts

    import { AlertModule } from "ngx-bootstrap";

    @NgModule({
    imports: [
     AlertModule.forRoot()
      ]})

project.config.ts


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);


  }

}

4

0 回答 0