Closed
Description
Bug Report or Feature Request (mark with an x
)
- [x] bug report -> please search issues before submitting
- [ ] feature request
Versions.
angular-cli: 1.5.0-beta.3
Repro steps.
Upgraded angular-cli from 1.4.4 to 1.5.0-beta.3 and tried to build it with
ng build --prod --aot --build-optimizer
Using version 1.4.4 everything works.
The log given by the failure.
ERROR in ./src/main.ts
Module not found: Error: Can't resolve './app.ngfactory' in 'D:\Development\frontend\src'
resolve './app.ngfactory' in 'D:\Development\frontend\src'
using description file: D:\Development\frontend\package.json (relative path: ./src)
Field 'browser' doesn't contain a valid alias configuration
after using description file: D:\Development\frontend\package.json (relative path: ./src)
using description file: D:\Development\frontend\package.json (relative path: ./src/app.ngfactory)
no extension
Field 'browser' doesn't contain a valid alias configuration
D:\Development\frontend\src\app.ngfactory doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
D:\Development\frontend\src\app.ngfactory.ts doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
D:\Development\frontend\src\app.ngfactory.js doesn't exist
as directory
D:\Development\frontend\src\app.ngfactory doesn't exist
[D:\Development\frontend\src\app.ngfactory]
[D:\Development\frontend\src\app.ngfactory.ts]
[D:\Development\frontend\src\app.ngfactory.js]
[D:\Development\frontend\src\app.ngfactory]
@ ./src/main.ts 3:0-54
@ multi ./src/main.ts
Desired functionality.
AOT build should work.
Mention any other details that might be useful.
Angular 5.0.0-rc.0
yarn 1.1.0
Windows 10
node v8.1.4