Skip to content

New project with webpack #1600

@mrfuxi

Description

@mrfuxi

Please provide us with the following information:

  1. OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
    Ubuntu 14.04
  2. 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
node: 6.3.1
os: linux x64
  1. Repro steps. Was this an app that wasn't created using the CLI? What change did you
    do on your code? etc.
$ ng new webtest
$ cd webtest
$ ng serve
  1. The log given by the failure. Normally this include a stack trace and some
    more information.
No angular-cli-build.js found. Please see the transition guide: https://github.com/angular-cli/angular-cli/blob/master/TRANSITION.md#user-content-brocfile-transition.
Error: No angular-cli-build.js found. Please see the transition guide: https://github.com/angular-cli/angular-cli/blob/master/TRANSITION.md#user-content-brocfile-transition.
    at Class.module.exports.Task.extend.setupBroccoliBuilder (PATH/webtest/node_modules/angular-cli/lib/models/builder.js:57:13)
    at Class.module.exports.Task.extend.init (PATH/webtest/node_modules/angular-cli/lib/models/builder.js:89:10)
    at new Class (PATH/webtest/node_modules/core-object/core-object.js:18:12)
    at Class.module.exports.Task.extend.run (PATH/webtest/node_modules/angular-cli/lib/tasks/serve.js:15:19)
    at PATH/webtest/node_modules/angular-cli/lib/commands/serve.js:64:24
    at lib$rsvp$$internal$$tryCatch (PATH/webtest/node_modules/rsvp/dist/rsvp.js:1036:16)
    at lib$rsvp$$internal$$invokeCallback (PATH/webtest/node_modules/rsvp/dist/rsvp.js:1048:17)
    at PATH/webtest/node_modules/rsvp/dist/rsvp.js:331:11
    at lib$rsvp$asap$$flush (PATH/webtest/node_modules/rsvp/dist/rsvp.js:1198:9)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
  1. Mention any other details that might be useful.

Running this solved the issue:

rm -rf node_modules dist tmp typings
npm install --save-dev angular-cli@webpack
npm install

Is that really necessary for brand new project? Did I missed anything?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions