Skip to content

Angular aot build getting failed #8575

@sarathscs

Description

@sarathscs

Hi,

I am usingAngular 4 for my web application development. If I am using "ng build" it's working perfectly.
It's only getting failed in AOT build following is my package.json file. Please help it's because of any package. Please suggest!!!

ERROR:

PROJECT_FOLDER/src/$$_gendir/node_modules/angular2-modal/plugins/bootstrap/src/angular2-modal-bootstrap.ng-flat.ngfactory.ts (10,26): Cannot find module '../../../../../../../angular2-modal/plugins/bootstrap'.

Package.json

    "dependencies": {
        "@angular/animations": "4.0.0",
        "@angular/cdk": "2.0.0-beta.11",
        "@angular/common": "4.0.0",
        "@angular/compiler": "4.0.0",
        "@angular/core": "4.0.0",
        "@angular/forms": "4.0.0",
        "@angular/http": "4.0.0",
        "@angular/material": "2.0.0-beta.11",
        "@angular/platform-browser": "4.0.0",
        "@angular/platform-browser-dynamic": "4.0.0",
        "@angular/router": "4.0.0",
        "@ng-bootstrap/ng-bootstrap": "1.0.0-alpha.28",
        "angular2-drag-scroll": "1.4.4",
        "angular2-image-zoom": "1.2.1",
        "angular2-modal": "3.0.1",
        "angular2-moment": "1.7.0",
        "angular2-notifications": "0.7.8",
        "angularfire2": "4.0.0-rc.1",
        "aws-sdk": "2.88.0",
        "core-js": "2.4.1",
        "firebase": "3.6.6",
        "lodash": "4.17.4",
        "moment": "2.18.1",
        "ng2-auto-complete": "0.12.0",
        "ng2-canvas-whiteboard": "1.4.0",
        "ng2-file-upload": "1.2.1",
        "ng2-google-place-autocomplete": "1.4.2",
        "ng2-order-pipe": "0.1.5",
        "ng2-pagination": "2.0.2",
        "ng2-progressbar": "1.3.0",
        "ng2-toastr": "4.1.2",
        "ngx-infinite-scroll": "0.5.2",
        "ngx-pipes": "1.6.3",
        "ngx-rating": "0.0.9",
        "primeng": "4.1.0",
        "rxjs": "5.1.0",
        "time-ago-pipe": "1.2.1",
        "zone.js": "0.8.4"
    },
    "devDependencies": {
        "@angular/cli": "1.2.6",
        "@angular/compiler-cli": "4.0.0",
        "@angular/language-service": "4.0.0",
        "@types/jasmine": "~2.5.53",
        "@types/jasminewd2": "~2.0.2",
        "@types/node": "6.0.85",
        "codelyzer": "~3.0.1",
        "jasmine-core": "~2.6.2",
        "jasmine-spec-reporter": "~4.1.0",
        "karma": "~1.7.0",
        "karma-chrome-launcher": "~2.1.1",
        "karma-cli": "~1.0.1",
        "karma-coverage-istanbul-reporter": "1.2.1",
        "karma-jasmine": "~1.1.0",
        "karma-jasmine-html-reporter": "0.2.2",
        "protractor": "~5.1.2",
        "ts-node": "~3.0.4",
        "tslint": "~5.3.2",
        "typescript": "~2.3.3",
        "webpack": "3.7.1"
    }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions