Please provide us with the following information:
- OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Linux, Ubuntu
- Versions. Please run
ng --version. If there's nothing outputted, please run
in a Terminal: node --version and paste the result here:
angular-cli: 1.0.0-beta.11-webpack.8
node: 6.5.0
os: linux x64
- Repro steps. Was this an app that wasn't created using the CLI? What change did you
do on your code? etc.
After install/update angular cli as in docs
ng serve
- The log given by the failure. Normally this include a stack trace and some
more information.
Cannot read property 'length' of undefined
TypeError: Cannot read property 'length' of undefined
at Object.getWebpackCommonConfig (/home/reneval/.nvm/versions/node/v6.5.0/lib/node_modules/angular-cli/addon/ng2/models/webpack-build-common.ts:23:25)
at new NgCliWebpackConfig (/home/reneval/.nvm/versions/node/v6.5.0/lib/node_modules/angular-cli/addon/ng2/models/webpack-config.ts:13:30)
at Class.run (/home/reneval/.nvm/versions/node/v6.5.0/lib/node_modules/angular-cli/addon/ng2/tasks/serve-webpack.ts:19:22)
at /home/reneval/.nvm/versions/node/v6.5.0/lib/node_modules/angular-cli/addon/ng2/commands/serve.ts:84:26
at process._tickCallback (internal/process/next_tick.js:103:7)
- Mention any other details that might be useful.
Basic code was generated with beta.11-webpack.3
Linux, Ubuntu
ng --version. If there's nothing outputted, please runin a Terminal:
node --versionand paste the result here:angular-cli: 1.0.0-beta.11-webpack.8
node: 6.5.0
os: linux x64
do on your code? etc.
After install/update angular cli as in docs
ng servemore information.
Basic code was generated with beta.11-webpack.3