angular cli: AOT does not work
See original GitHub issueI’m submitting a … (check one with “x”)
[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here
Current behavior when using the angular cli and AOT than the following error appears:
ERROR in ENOENT: no such file or directory, open ‘D:\ccviews*******\src\main\ui\node_modules@swimlane\ngx-dnd\release\components\container\container.component.html’
ng build works ng build --aot leads to the error
Expected behavior ng build should work with as well as without aot
“dependencies”: { “@ angular/animations”: “4.1.2”, “@ angular/common”: “4.1.2”, “@ angular/compiler”: “4.1.2”, “@ angular/core”: “4.1.2”, “@ angular/forms”: “4.1.2”, “@ angular/http”: “4.1.2”, “@ angular/platform-browser”: “4.1.2”, “@ angular/platform-browser-dynamic”: “4.1.2”, “@ angular/router”: “4.1.2”, “@ ng-bootstrap/ng-bootstrap”: “1.0.0-alpha.25”, “@swimlane/ngx-datatable”: “9.1.0”, “@swimlane/ngx-dnd”: “2.1.2”, “core-js”: “2.4.1”, “dragula”: “3.7.2”, “file-saver”: “1.3.3”, “ng2-dragula”: “1.3.1”, “rxjs”: “5.4.0”, “zone.js”: “0.8.10” }, “devDependencies”: { “@ angular/cli”: “1.0.3”, “@ angular/compiler-cli”: “4.1.2”, “@ types/jasmine”: “2.5.38”, “@ types/node”: “~6.0.60”, “@ types/file-saver”: “^0.0.0”, “codelyzer”: “2.0.1”, “jasmine-core”: “~2.5.2”, “jasmine-spec-reporter”: “~3.2.0”, “karma”: “~1.4.1”, “karma-chrome-launcher”: “~2.0.0”, “karma-cli”: “~1.0.1”, “karma-jasmine”: “~1.1.0”, “karma-jasmine-html-reporter”: “^0.2.2”, “karma-coverage-istanbul-reporter”: “^0.2.0”, “protractor”: “~5.1.0”, “ts-node”: “~2.0.0”, “tslint”: “4.5.1”, “typescript”: “2.2.2” }
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (3 by maintainers)

Top Related StackOverflow Question
Me neither, but had a quick look at the code and found this:
https://github.com/swimlane/ngx-dnd/blob/master/config/webpack.package.js#L77
commented out AOT code?
+ when I manually created some empty files as per screenshot, then
ng build --prodhas finished without errors…It seems to work when deployed…AoT should be working now with v3.0.