Closed
Description
OS?
Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Mac OSX El Capitan
Versions.
angular-cli: 1.0.0-beta.18
node: 6.4.0
os: darwin x64
Repro steps.
Was this an app that wasn't created using the CLI? What change did you do on your code? etc.
App was created using the CLI
Trying to do an AoT using:
<input type="number"" class="form-control" id="height" [(ngModel)]="model.height" name="height">
does not work.
The log given by the failure.
40% building modules 251/311 modules 60 active ...es/@angular/core/src/linker/errors.jsresolve '../../../node_modules/@angular/forms/src/directives/number_value_accessor.ngfactory' in '/Volumes/LB1731.2/course/examples/src/app/form/person-form-1'
using description file: /Volumes/LB1731.2/course/examples/package.json (relative path: ./src/app/form/person-form-1)
Field 'browser' doesn't contain a valid alias configuration
after using description file: /Volumes/LB1731.2/course/examples/package.json (relative path: ./src/app/form/person-form-1)
using description file: /Volumes/LB1731.2/course/examples/package.json (relative path: ./src/node_modules/@angular/forms/src/directives/number_value_accessor.ngfactory)
as directory
/Volumes/LB1731.2/course/examples/src/node_modules/@angular/forms/src/directives/number_value_accessor.ngfactory doesn't exist
no extension
Field 'browser' doesn't contain a valid alias configuration
/Volumes/LB1731.2/course/examples/src/node_modules/@angular/forms/src/directives/number_value_accessor.ngfactory doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
/Volumes/LB1731.2/course/examples/src/node_modules/@angular/forms/src/directives/number_value_accessor.ngfactory.ts doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/Volumes/LB1731.2/course/examples/src/node_modules/@angular/forms/src/directives/number_value_accessor.ngfactory.js doesn't exist
/Volumes/LB1731.2/course/examples/node_modules/webpack/lib/Compiler.js:220
if(err) return callback(err);
Mention any other details that might be useful.
Changing it to
<input type="text"" class="form-control" id="height" [(ngModel)]="model.height" name="height">
makes it work again