Closed
Description
OS?
Ubuntu 16.04
Versions
angular-cli: 1.0.0-beta.28.3
node: 7.4.0
os: linux x64
@angular/common: 2.4.5
@angular/compiler: 2.4.5
@angular/core: 2.4.5
@angular/forms: 2.4.5
@angular/http: 2.4.5
@angular/platform-browser: 2.4.5
@angular/platform-browser-dynamic: 2.4.5
@angular/router: 3.4.5
@angular/compiler-cli: 2.4.5
Repro steps.
Created the app with the angular-cli
(ng new
). Ran ng serve
to make sure everything was working. All was good, webpack worked and reported:
Hash: 7a95e8c73d53b9f210c7
Time: 8041ms
chunk {0} main.bundle.js, main.bundle.map (main) 17.2 kB {3} [initial] [rendered]
chunk {1} styles.bundle.js, styles.bundle.map (styles) 205 kB {4} [initial] [rendered]
chunk {2} scripts.bundle.js, scripts.bundle.map (scripts) 375 kB {4} [initial] [rendered]
chunk {3} vendor.bundle.js, vendor.bundle.map (vendor) 2.83 MB [initial] [rendered]
chunk {4} inline.bundle.js, inline.bundle.map (inline) 0 bytes [entry] [rendered]
webpack: Compiled successfully.
I was able to load the app in a browser. Made a small change to the app.component.ts
file (removed the trailing new line). Saved the file, webpack attempted to re-bundle the file, but failed.
The log given by the failure.
Hash: 7a95e8c73d53b9f210c7
Time: 613ms
chunk {0} main.bundle.js, main.bundle.map (main) 17.2 kB {3} [initial]
chunk {1} styles.bundle.js, styles.bundle.map (styles) 205 kB {4} [initial]
chunk {2} scripts.bundle.js, scripts.bundle.map (scripts) 375 kB {4} [initial]
chunk {3} vendor.bundle.js, vendor.bundle.map (vendor) 2.83 MB [initial]
chunk {4} inline.bundle.js, inline.bundle.map (inline) 0 bytes [entry]
ERROR in Cannot read property 'length' of undefined
webpack: Failed to compile.
Metadata
Metadata
Assignees
Labels
No labels